-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jrfnl/feature/test-is-bs-simplification
PSR2/UseDeclaration: simplify the fix
- Loading branch information
Showing
10 changed files
with
91 additions
and
8 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
2 changes: 2 additions & 0 deletions
2
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.11.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,2 @@ | ||
<?php | ||
use Foo\Bar; class Baz {} |
4 changes: 4 additions & 0 deletions
4
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.11.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,4 @@ | ||
<?php | ||
use Foo\Bar; | ||
|
||
class Baz {} |
9 changes: 9 additions & 0 deletions
9
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.12.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,9 @@ | ||
<?php | ||
use Foo\Bar; /* | ||
* This multi-line comment shouldn't be allowed here. | ||
*/ | ||
|
||
class Baz | ||
{ | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.12.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,11 @@ | ||
<?php | ||
use Foo\Bar; | ||
|
||
/* | ||
* This multi-line comment shouldn't be allowed here. | ||
*/ | ||
|
||
class Baz | ||
{ | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.13.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,10 @@ | ||
<?php | ||
use Foo\Bar; // trailing comment | ||
/* | ||
* This multi-line comment shouldn't be allowed here. | ||
*/ | ||
|
||
class Baz | ||
{ | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.13.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,11 @@ | ||
<?php | ||
use Foo\Bar; // trailing comment | ||
|
||
/* | ||
* This multi-line comment shouldn't be allowed here. | ||
*/ | ||
|
||
class Baz | ||
{ | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.14.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,8 @@ | ||
<?php | ||
use Foo\Bar; // trailing comment | ||
/* phpcs:ignore Standard.Category.Sniff -- for reasons */ | ||
|
||
class Baz | ||
{ | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.14.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,9 @@ | ||
<?php | ||
use Foo\Bar; // trailing comment | ||
|
||
/* phpcs:ignore Standard.Category.Sniff -- for reasons */ | ||
|
||
class Baz | ||
{ | ||
|
||
} |
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