Hello, I'm a beginner in the group and I'm a computer student, I recently
met PHP-FIG, every time I program, I try to adopt good programming
practices, when I start studying PSR, I saw things I already practiced
In PSR-2, there is something that, in my opinion, is not very practical,
the "if, elseif and else".
Original Pattern
if ($a === $b) {
bar();
} elseif ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
Template that I use
if ($a === $b) {
bar();}
elseif ($a > $b) {
$foo->bar($arg1);}
else {
BazClass::bar($arg2, $arg3);}
The original standard in my view on files that have thousands of lines of
code gets a bit confusing and not organized in my opinion, I would like to
know from the community what you think of this?
OBS: Sorry for my English, because my native language is not English, and
my knowledge of English is much more technical.
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/c5b7e838-18ff-4e9e-936e-44a7c7c22c59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.