Skip to content

Commit e810f31

Browse files
committed
Various: remove some redundant return statements
... when the `return` is at the end of the function without a value, and therefore not needed.
1 parent 821974c commit e810f31

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

src/Sniffs/AbstractScopeSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ final public function process(File $phpcsFile, $stackPtr)
148148
return min($skipTokens);
149149
}
150150

151-
return;
152-
153151
}//end process()
154152

155153

src/Standards/Squiz/Sniffs/WhiteSpace/MemberVarSpacingSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ protected function processMemberVar(File $phpcsFile, $stackPtr)
212212
return $endOfStatement;
213213
}
214214

215-
return;
216-
217215
}//end processMemberVar()
218216

219217

tests/Standards/AbstractSniffUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ public function generateFailureMessages(LocalFile $file)
433433
*/
434434
public function setCliValues($filename, $config)
435435
{
436-
return;
437436

438437
}//end setCliValues()
439438

0 commit comments

Comments
 (0)