Skip to content

Commit

Permalink
Fixed changelog and PSR2 standard: both changes accidently omitted fr…
Browse files Browse the repository at this point in the history
…om previous commits
  • Loading branch information
gsherwood committed Jul 23, 2012
1 parent b32e6d8 commit 1e493d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CodeSniffer/Standards/PSR2/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,12 @@

<!-- 6. Closures -->

<!-- Closures MUST be declared with a space after the function keyword, and a space before and after the use keyword. -->

<!-- The opening brace MUST go on the same line, and the closing brace MUST go on the next line following the body.
<!-- Closures MUST be declared with a space after the function keyword, and a space before and after the use keyword.
The opening brace MUST go on the same line, and the closing brace MUST go on the next line following the body.
There MUST NOT be a space after the opening parenthesis of the argument list or variable list, and there MUST NOT be a space before the closing parenthesis of the argument list or variable list.
In the argument list and variable list, there MUST NOT be a space before each comma, and there MUST be one space after each comma.
Closure arguments with default values MUST go at the end of the argument list.
Argument lists and variable lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument or variable per line.
When the ending list (whether or arguments or variables) is split across multiple lines, the closing parenthesis and opening brace MUST be placed together on their own line with one space between them. -->
<!-- SAME AS FUNCTION RULES? -->
<!-- checked in Squiz.Functions.MultiLineFunctionDeclaration -->
</ruleset>
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Added PSR1 and PSR2 coding standards that can be used to check your code against these guidelines
- Squiz FunctionDeclarationArgumentSpacingSniff now supports closures
- Squiz OperatorSpacingSniff no longer throws an error for negative values inside an inline THEN statement
-- Thanks to Klaus Purer for the patch
- Fixed bug #19508 : switch+return: Closing brace indented incorrectly
</notes>
<contents>
Expand Down

0 comments on commit 1e493d4

Please sign in to comment.