Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug #20310 : PSR2 does not check for space after function name

  • Loading branch information...
commit 7867133054f698ec14f945a5600e495310ecfc9b 1 parent 1835d18
Greg Sherwood gsherwood authored
1  CodeSniffer/Standards/Squiz/Sniffs/Functions/FunctionDeclarationSniff.php
View
@@ -44,6 +44,7 @@ protected function getPatterns()
{
return array(
'function abc(...);',
+ 'function abc(...)',
'abstract function abc(...);',
);
4 CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc
View
@@ -63,4 +63,6 @@ function recurseCreateTree(
$lastOffset=0
) {
}
-?>
+
+
+function test ( ){}
1  CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php
View
@@ -44,6 +44,7 @@ public function getErrorList()
{
return array(
55 => 1,
+ 68 => 1,
);
}//end getErrorList()
1  package.xml
View
@@ -36,6 +36,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
-- Thanks to Ole Martin Handeland for the patch
- Fixed bug #20268 : Incorrect documentation titles in PEAR documentation
- Fixed bug #20296 : new array notion in function comma check fails
+ - Fixed bug #20310 : PSR2 does not check for space after function name
</notes>
<contents>
<dir name="/">
Please sign in to comment.
Something went wrong with that request. Please try again.