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.
For control structures like:
if (something):
endif;
The spacing check on at the if
is not performed. So the following is considering OK:
if(something):
endif;
When using the "curly brace" approach, the spacing is enforced.
Comments
Comment #1
klausiCoder 7.x is frozen now and will not receive updates. Coder 8.x-2.x can be used to check code for any Drupal version, Coder 8.x-2.x also supports the phpcbf command to automatically fix conding standard errors. Please check if this issue is still relevant and reopen against that version if necessary.