forked from squizlabs/PHP_CodeSniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squiz.WhiteSpace.LanguageConstructSpacing no longer checks for spaces…
… if parenthesis are being used (request squizlabs#1062)
- Loading branch information
Showing
5 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc.fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
echo $blah; | ||
echo $blah; | ||
echo($blah); | ||
|
||
print $blah; | ||
print $blah; | ||
print($blah); | ||
|
||
include $blah; | ||
include $blah; | ||
include($blah); | ||
|
||
include_once $blah; | ||
include_once $blah; | ||
include_once($blah); | ||
|
||
require $blah; | ||
require $blah; | ||
require($blah); | ||
|
||
require_once $blah; | ||
require_once $blah; | ||
require_once($blah); | ||
|
||
$obj = new MyClass(); | ||
$obj = new MyClass(); | ||
|
||
return; | ||
return $blah; | ||
return $blah; | ||
return($blah); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters