Skip to content

Commit d44b114

Browse files
committed
Squiz/OperatorBracket: remove some redundancy
The `%` modulus token is included in the `Tokens::$operators` array. No need to add it separately.
1 parent 9981876 commit d44b114

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ public function process(File $phpcsFile, $stackPtr)
148148
T_DOUBLE_COLON,
149149
T_OPEN_SQUARE_BRACKET,
150150
T_CLOSE_SQUARE_BRACKET,
151-
T_MODULUS,
152151
T_NONE,
153152
T_BITWISE_NOT,
154153
];
@@ -290,7 +289,6 @@ public function addMissingBracketsError($phpcsFile, $stackPtr)
290289
T_OBJECT_OPERATOR => true,
291290
T_NULLSAFE_OBJECT_OPERATOR => true,
292291
T_DOUBLE_COLON => true,
293-
T_MODULUS => true,
294292
T_ISSET => true,
295293
T_ARRAY => true,
296294
T_NONE => true,

0 commit comments

Comments
 (0)