I think your interpretation is correct:

endif and similar control structures are not allowed. 

Sent from my iPhone

> On Jul 15, 2021, at 5:20 PM, Liam Hennessy <l...@boxclever.ca> wrote:
> 
> 
> Greetings!
> 
> According to Section 5 of 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 php-fig+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/php-fig/f0d9e0c7-9957-45fe-9721-5d3e2f71b613n%40googlegroups.com.

-- 
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 php-fig+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/B56ABCB2-8AAD-4723-A4A3-7092DA3E366B%40gmail.com.

Reply via email to