Skip to content

refactor: ECS code cleanup #5

refactor: ECS code cleanup

refactor: ECS code cleanup #5

Triggered via push April 28, 2024 20:35
Status Failure
Total duration 41s
Artifacts
Matrix: code_analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHPStan: src/services/Similar.php#L84
Else branch is unreachable because ternary operator condition is always true.
PHPStan: src/services/Similar.php#L89
Negated boolean expression is always false.
PHPStan: src/services/Similar.php#L94
Property nystudio107\similar\services\Similar::$preOrder (string) does not accept array.
PHPStan: src/services/Similar.php#L161
Ternary operator condition is always true.
PHPStan: src/services/Similar.php#L173
Access to an undefined property craft\base\ElementInterface::$id.
PHPStan: src/services/Similar.php#L173
Access to an undefined property craft\base\ElementInterface::$siteId.
PHPStan: src/services/Similar.php#L176
Access to an undefined property craft\base\ElementInterface::$count.
PHPStan: src/services/Similar.php#L182
Access to an undefined property craft\base\ElementInterface::$count.
PHPStan: src/services/Similar.php#L182
Access to an undefined property craft\base\ElementInterface::$count.
PHPStan: src/services/Similar.php#L201
Call to function is_array() with string will always evaluate to false.