-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cover methods, interfaces and traits with space after attributes
Plus fix some `#[\Attribute(` wrong constructors by renaming to custom one.
- Loading branch information
Showing
5 changed files
with
62 additions
and
9 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
14 changes: 14 additions & 0 deletions
14
...mmenting/fixtures/MissingDocblock/interface_only_with_attributes_incorrect_whitespace.php
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,14 @@ | ||
<?php | ||
|
||
namespace MoodleHQ\MoodleCS\moodle\Tests\Sniffs\PHPUnit; | ||
|
||
use example; | ||
|
||
/** | ||
* Interface level docblock. | ||
*/ | ||
#[example_attribute] | ||
#[with_multiple_attributes, and_another_attribute] | ||
|
||
interface interface_only_with_attributes_incorrect_whitespace { | ||
} |
14 changes: 14 additions & 0 deletions
14
...s/Commenting/fixtures/MissingDocblock/trait_only_with_attributes_incorrect_whitespace.php
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,14 @@ | ||
<?php | ||
|
||
namespace MoodleHQ\MoodleCS\moodle\Tests\Sniffs\PHPUnit; | ||
|
||
use example; | ||
|
||
/** | ||
* Trait level docblock. | ||
*/ | ||
#[example_attribute] | ||
#[with_multiple_attributes, and_another_attribute] | ||
|
||
trait trait_only_with_attributes_incorrect_whitespace { | ||
} |