Skip to content

Commit e8b10e0

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 9e60cd5 commit e8b10e0

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
@@ -133,7 +133,6 @@ public function process(File $phpcsFile, $stackPtr)
133133
T_DOUBLE_COLON,
134134
T_OPEN_SQUARE_BRACKET,
135135
T_CLOSE_SQUARE_BRACKET,
136-
T_MODULUS,
137136
T_NONE,
138137
T_BITWISE_NOT,
139138
];
@@ -283,7 +282,6 @@ public function addMissingBracketsError($phpcsFile, $stackPtr)
283282
T_OBJECT_OPERATOR => true,
284283
T_NULLSAFE_OBJECT_OPERATOR => true,
285284
T_DOUBLE_COLON => true,
286-
T_MODULUS => true,
287285
T_ISSET => true,
288286
T_ARRAY => true,
289287
T_NONE => true,

0 commit comments

Comments
 (0)