Greetings!

According to Section 5 of PSR-12 <https://www.php-fig.org/psr/psr-12/> (Control 
Structures):

*The body of each structure MUST be enclosed by braces. This standardizes 
how the structures look and reduces the likelihood of introducing errors as 
new lines get added to the body.*

Does this mean that *endif, endwhile, endfor, endforeach, *and *endswitch* 
are not permitted by PSR-12?

It would be helpful if PSR-12 was more explicit about this, even if the 
consensus is that you MAY use them, as it is easy to overlook this point 
completely or misinterpret this point as a strict exclusion.

As a new member, please accept my thanks for your time and effort.

Regards,

Liam

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/f0d9e0c7-9957-45fe-9721-5d3e2f71b613n%40googlegroups.com.

Reply via email to