Pádraic Brady
unread,Jan 23, 2015, 11:19:18 AM1/23/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Demon...@gmail.com, Paul M. Jones, Greg Sherwood, php-f...@googlegroups.com
In thinking about it some more, I believe the appropriate approach is
to effectively remain silent and let the user use whichever they
prefer. I'm thinking about likely formatting:
<html>
<head>
...
<?php echo $foo ?>
<?php echo $bar ?>
<?php echo $baz ?>
Intermediate content...
<?php echo $foo ?>
I can see how enforcing the removal of that closing tag in the last
template position could become irritating. In a one-liner style it may
be inconsistent to try applying a PSR intended for PHP code to
template markup. In the above, it's not simply enough to remove the
closing tag, you then also need to add the implicit semi-colon to
terminate the final statement.
In any case, as Paul indicated, since we are indeed silent on this (we
explicitly state that we're silent even!), it has no place is a PSR2
ruleset.
Paddy