Skip to content

Commit 81824ab

Browse files
committed
Coding standard fixes
1 parent 01754d9 commit 81824ab

File tree

9 files changed

+1
-16
lines changed

9 files changed

+1
-16
lines changed

CodeSniffer/Standards/AbstractPatternSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,6 @@ protected function processSupplementary(
769769
PHP_CodeSniffer_File $phpcsFile,
770770
$stackPtr
771771
) {
772-
return;
773772

774773
}//end processSupplementary()
775774

CodeSniffer/Standards/AbstractScopeSniff.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract class PHP_CodeSniffer_Standards_AbstractScopeSniff implements PHP_CodeS
5050
/**
5151
* The token types that this test wishes to listen to within the scope.
5252
*
53-
* @var array()
53+
* @var array
5454
*/
5555
private $_tokens = array();
5656

@@ -192,7 +192,6 @@ protected function processTokenOutsideScope(
192192
PHP_CodeSniffer_File $phpcsFile,
193193
$stackPtr
194194
) {
195-
return;
196195

197196
}//end processTokenOutsideScope()
198197

CodeSniffer/Standards/Generic/Sniffs/Functions/CallTimePassByReferenceSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
129129
// In these cases T_BITWISE_AND represents
130130
// the bitwise and operator.
131131
continue;
132-
break;
133132

134133
default:
135134
// T_BITWISE_AND represents a pass-by-reference.

CodeSniffer/Standards/Generic/Sniffs/Metrics/CyclomaticComplexitySniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
121121
$phpcsFile->addWarning($warning, $stackPtr, 'TooHigh', $data);
122122
}
123123

124-
return;
125-
126124
}//end process()
127125

128126

CodeSniffer/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
9090
protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
9191
{
9292
// We don't care about normal variables.
93-
return;
9493

9594
}//end processVariable()
9695

@@ -106,7 +105,6 @@ protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
106105
protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
107106
{
108107
// We don't care about normal variables.
109-
return;
110108

111109
}//end processVariableInString()
112110

CodeSniffer/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
9191
protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
9292
{
9393
// We don't care about normal variables.
94-
return;
9594

9695
}//end processVariable()
9796

@@ -107,7 +106,6 @@ protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
107106
protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
108107
{
109108
// We don't care about normal variables.
110-
return;
111109

112110
}//end processVariableInString()
113111

CodeSniffer/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ protected function processSees($commentStart)
320320
*/
321321
protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
322322
{
323-
return;
324323

325324
}//end processVariable()
326325

@@ -338,7 +337,6 @@ protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
338337
*/
339338
protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
340339
{
341-
return;
342340

343341
}//end processVariableInString()
344342

CodeSniffer/Standards/Squiz/Sniffs/Scope/MemberVarScopeSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
6666
protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
6767
{
6868
// We don't care about normal variables.
69-
return;
7069

7170
}//end processVariable()
7271

@@ -82,7 +81,6 @@ protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
8281
protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
8382
{
8483
// We don't care about normal variables.
85-
return;
8684

8785
}//end processVariableInString()
8886

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
9696
protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
9797
{
9898
// We don't care about normal variables.
99-
return;
10099

101100
}//end processVariable()
102101

@@ -112,7 +111,6 @@ protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
112111
protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
113112
{
114113
// We don't care about normal variables.
115-
return;
116114

117115
}//end processVariableInString()
118116

0 commit comments

Comments
 (0)