-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into fixer-conflict/PS…
…R12.ControlStructures.ControlStructureSpacing
- Loading branch information
Showing
34 changed files
with
668 additions
and
23 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -47,6 +47,7 @@ public function getErrorList() | |
162 => 1, | ||
171 => 1, | ||
183 => 1, | ||
197 => 1, | ||
]; | ||
|
||
}//end getErrorList() | ||
|
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.2.inc
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,7 @@ | ||
<?php | ||
|
||
// Intentional parse error. This has to be the last (and only) test in the file. | ||
// Live coding test. The sniff should stay silent. | ||
class ParseErrors { | ||
const A|(B PARSE_ERROR = null; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.3.inc
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,5 @@ | ||
<?php | ||
|
||
// Intentional parse error. This has to be the last (and only) test in the file. | ||
// Live coding test. The sniff should stay silent. | ||
$a = [10, 20] + [ |
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
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.2.inc
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,5 @@ | ||
<?php | ||
|
||
// Intentional parse error. This has to be the last (and only) test in the file. | ||
// Live coding test. The sniff should stay silent. | ||
function |
5 changes: 5 additions & 0 deletions
5
src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.3.inc
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,5 @@ | ||
<?php | ||
|
||
// Intentional parse error. This has to be the last (and only) test in the file. | ||
// Live coding test. The sniff should stay silent. | ||
function // Comment. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<? | ||
|
||
// This test case file MUST always start with a open PHP tag set (with this comment) to prevent | ||
// the tests running into the "first PHP open tag excepted" condition breaking the tests. | ||
// Tests related to that "first PHP open tag excepted" condition should go in separate files. | ||
|
||
// This test case file only deals with SHORT OPEN TAGS. | ||
|
||
?> | ||
|
||
<? | ||
/* Contrary to the long open tag token, the short open tag token does not contain a space after the | ||
tag and the sniff should handle it accordingly. The test below protects against regressions | ||
related to https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/588. */ | ||
?> | ||
<? echo 'one space after short open tag'; ?> | ||
|
||
<? echo 'two spaces after short open tag'; ?> | ||
|
||
<?echo 'without space after short open tag'; ?> | ||
|
||
<? | ||
// This test case file MUST always end with an unclosed open PHP tag (with this comment) to prevent | ||
// the tests running into the "last PHP closing tag excepted" condition breaking tests. | ||
// Tests related to that "last PHP closing tag excepted" condition should go in separate files. |
25 changes: 25 additions & 0 deletions
25
src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.24.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,25 @@ | ||
<? | ||
|
||
// This test case file MUST always start with a open PHP tag set (with this comment) to prevent | ||
// the tests running into the "first PHP open tag excepted" condition breaking the tests. | ||
// Tests related to that "first PHP open tag excepted" condition should go in separate files. | ||
|
||
// This test case file only deals with SHORT OPEN TAGS. | ||
|
||
?> | ||
|
||
<? | ||
/* Contrary to the long open tag token, the short open tag token does not contain a space after the | ||
tag and the sniff should handle it accordingly. The test below protects against regressions | ||
related to https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/588. */ | ||
?> | ||
<? echo 'one space after short open tag'; ?> | ||
|
||
<? echo 'two spaces after short open tag'; ?> | ||
|
||
<? echo 'without space after short open tag'; ?> | ||
|
||
<? | ||
// This test case file MUST always end with an unclosed open PHP tag (with this comment) to prevent | ||
// the tests running into the "last PHP closing tag excepted" condition breaking tests. | ||
// Tests related to that "last PHP closing tag excepted" condition should go in separate files. |
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
Oops, something went wrong.