Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b6b722a

Browse files
committed
Update PSR.md
1 parent 08c9a02 commit b6b722a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎PSR.md‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# PSR Recommendations
22

3-
* [PSR-0](http://www.php-fig.org/psr/psr-0/)
4-
53
* [PSR-1](http://www.php-fig.org/psr/psr-1/)
64

75
* [PSR-2](http://www.php-fig.org/psr/psr-2/), with the following exceptions:
86
* 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/)
1111

1212
* [PSR-5 Draft](https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc.md) for DocBlocks.
1313

14+
* [PSR-12 Draft](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md)
15+
1416

1517
## Summary of PSR-1/2 Recommendations
1618

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /