From 79ffe3fbb5b252b4a3b959deaf132f44a18453f8 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 16 Mar 2019 18:47:17 +0100 Subject: [PATCH] Generic/ArbitraryParenthesesSpacing: minor clean up 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 --- .../Sniffs/WhiteSpace/ArbitraryParenthesesSpacingSniff.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Standards/Generic/Sniffs/WhiteSpace/ArbitraryParenthesesSpacingSniff.php b/src/Standards/Generic/Sniffs/WhiteSpace/ArbitraryParenthesesSpacingSniff.php index 7a7c5d8eee..09aea5436e 100644 --- a/src/Standards/Generic/Sniffs/WhiteSpace/ArbitraryParenthesesSpacingSniff.php +++ b/src/Standards/Generic/Sniffs/WhiteSpace/ArbitraryParenthesesSpacingSniff.php @@ -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;