-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add priority to AlignMultilineCommentFixer
It should run after ArrayIndentationFixer.
- Loading branch information
1 parent
dcc87d5
commit bd51b51
Showing
3 changed files
with
35 additions
and
0 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
25 changes: 25 additions & 0 deletions
25
tests/Fixtures/Integration/priority/array_indentation,align_multiline_comment.test
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 @@ | ||
--TEST-- | ||
Integration of fixers: array_indentation,align_multiline_comment. | ||
--RULESET-- | ||
{"array_indentation": true, "align_multiline_comment": {"comment_type": "all_multiline"}} | ||
--EXPECT-- | ||
<?php | ||
|
||
$array = [ | ||
/* | ||
* Aligned with the values | ||
*/ | ||
'this' => 'is a bug', | ||
'but' => 'this is too', | ||
]; | ||
|
||
--INPUT-- | ||
<?php | ||
|
||
$array = [ | ||
/* | ||
* Aligned with the values | ||
*/ | ||
'this' => 'is a bug', | ||
'but' => 'this is too', | ||
]; |