Skip to content

Commit ea32814

Browse files
committed
Move the return to the correct location to save processing time (request #1058)
1 parent 5af4388 commit ea32814

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CodeSniffer/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
120120

121121
$phpcsFile->fixer->endChangeset();
122122
}
123-
124-
// We can return here because there is nothing else to check. All code
125-
// below can assume that the array is not empty.
126-
return;
127123
}
124+
125+
// We can return here because there is nothing else to check. All code
126+
// below can assume that the array is not empty.
127+
return;
128128
}
129129

130130
if ($tokens[$arrayStart]['line'] === $tokens[$arrayEnd]['line']) {

0 commit comments

Comments
 (0)