Closed tautrimas closed 9 years ago
+1 for .
with spaces around
Well, maybe we should follow other operators convention because now it's the same like
if ($a+$b) {
So why to use $a.'_'
when with spaces it will look much cleaner?
$a.'_';
$a . '_';
Here are the results:
Framework | Is space |
---|---|
CakePHP | true |
Laravel | false |
Phalcon | true |
Silex | false |
Symfony | false |
YII | true |
Zend 2 | true |
Statistics are approximately the same, therefore we leave spaces due to argument above.
Investigate, if more often than not spaces are left or removed around
.
operator in most popular frameworks.