Skip to content

Commit 59c0d4f

Browse files
author
Lars Roettig
committed
#24 Review and static fixes
1 parent e453814 commit 59c0d4f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Magento/Sniffs/Functions/StaticFunctionSniff.php

-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ public function process(File $phpcsFile, $stackPtr)
4545
$tokens = array_slice($phpcsFile->getTokens(), $stackPtr, $posOfFunction - $stackPtr);
4646

4747
$allowedTypes = [T_STATIC => true, T_WHITESPACE => true, T_FUNCTION => true];
48-
4948
foreach ($tokens as $token) {
50-
5149
$code = $token['code'];
5250
if (!array_key_exists($code, $allowedTypes)) {
5351
break;

0 commit comments

Comments
 (0)