Skip to content

Commit

Permalink
Generic/ArbitraryParenthesesSpacing: minor clean up
Browse files Browse the repository at this point in the history
As `declare()` is recognized as a parentheses owner, there is no need for it to be listed in the "additional tokens indicating that parenthesis are not arbitrary" list.

Tested via an existing test: https://github.com/squizlabs/PHP_CodeSniffer/blob/master/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.inc#L29
  • Loading branch information
jrfnl committed Mar 17, 2020
1 parent caddfde commit 79ffe3f
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public function register()
$this->ignoreTokens[T_CLOSE_SHORT_ARRAY] = T_CLOSE_SHORT_ARRAY;

$this->ignoreTokens[T_USE] = T_USE;
$this->ignoreTokens[T_DECLARE] = T_DECLARE;
$this->ignoreTokens[T_THROW] = T_THROW;
$this->ignoreTokens[T_YIELD] = T_YIELD;
$this->ignoreTokens[T_YIELD_FROM] = T_YIELD_FROM;
Expand Down

0 comments on commit 79ffe3f

Please sign in to comment.