Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current ruleset does not handle the combined use of unary and ternary operators.
Example Code
$success ? $context['results']['success']++ : $context['results']['error']++;
Result
Fails with: "A unary operator statement must not be followed by a single space."
Comments
Comment #2
klausiCoder 7.x-2.x is now frozen, this should work as expected with Coder 8.x-2.x which can also be used to check Drupal 7 code.
Comment #3
markdorison@klausi I am still seeing the same result when testing with the Coder 8.x-2.x branch.
Comment #5
klausiRight, committed a fix. Thanks for reporting!