Skip to content

Commit 4625938

Browse files
freddenjrfnl
authored andcommitted
Correct error code in Squiz.ControlStructures.ForEachLoopDeclaration
From what we can determine, this is a typographical error / mistake. It seems that the intention here was to use the same error code for both sides of this if/else block.
1 parent 92c8ef5 commit 4625938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Standards/Squiz/Sniffs/ControlStructures/ForEachLoopDeclarationSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function process(File $phpcsFile, $stackPtr)
9090
$this->requiredSpacesAfterOpen,
9191
$spaceAfterOpen,
9292
];
93-
$fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen', $data);
93+
$fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterOpen', $data);
9494
if ($fix === true) {
9595
$padding = str_repeat(' ', $this->requiredSpacesAfterOpen);
9696
if ($spaceAfterOpen === 0) {

0 commit comments

Comments
 (0)