You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PSR.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,18 @@
1
1
# PSR Recommendations
2
2
3
-
*[PSR-0](http://www.php-fig.org/psr/psr-0/)
4
-
5
3
*[PSR-1](http://www.php-fig.org/psr/psr-1/)
6
4
7
5
*[PSR-2](http://www.php-fig.org/psr/psr-2/), with the following exceptions:
8
6
* Template code (intermingling PHP with HTML) is permitted to use the short-open tag (i.e., `<?`).
9
-
* Line lengths have a HARD LIMIT of 120 characters. (Better than 80, but still not ridiculous.)
10
-
* Extra line breaks are encouraged for readability.
7
+
* Line lengths have a HARD LIMIT of 120 characters.
8
+
* Closures MUST NOT be declared with a space after the `function` keyword. White space should follow the same rules as when defining methods and functions.
9
+
10
+
*[PSR-4](http://www.php-fig.org/psr/psr-4/)
11
11
12
12
*[PSR-5 Draft](https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md) for DocBlocks.
0 commit comments