@@ -68,7 +68,7 @@ protected function processReturn(File $phpcsFile, $stackPtr, $commentStart)
68
68
$ phpcsFile ->addError ($ error , $ return , 'MissingReturnType ' );
69
69
} else {
70
70
// Support both a return type and a description.
71
- $ split = preg_match ('`^((?:\|?(?:array\([^\)]*\)|[ \\\\a-z0-9\[\]]+))*)( .*)?`i ' , $ content , $ returnParts );
71
+ preg_match ('`^((?:\|?(?:array\([^\)]*\)|[ \\\\a-z0-9\[\]]+))*)( .*)?`i ' , $ content , $ returnParts );
72
72
if (isset ($ returnParts [1 ]) === false ) {
73
73
return ;
74
74
}
@@ -78,7 +78,7 @@ protected function processReturn(File $phpcsFile, $stackPtr, $commentStart)
78
78
// Check return type (can be multiple, separated by '|').
79
79
$ typeNames = explode ('| ' , $ returnType );
80
80
$ suggestedNames = array ();
81
- foreach ($ typeNames as $ i => $ typeName ) {
81
+ foreach ($ typeNames as $ typeName ) {
82
82
$ suggestedName = Common::suggestType ($ typeName );
83
83
if (in_array ($ suggestedName , $ suggestedNames ) === false ) {
84
84
$ suggestedNames [] = $ suggestedName ;
@@ -460,7 +460,7 @@ protected function processParams(File $phpcsFile, $stackPtr, $commentStart)
460
460
$ phpcsFile ->fixer ->replaceToken (($ param ['tag ' ] + 2 ), $ content );
461
461
462
462
// Fix up the indent of additional comment lines.
463
- foreach ($ param ['commentLines ' ] as $ lineNum => $ line ) {
463
+ foreach ($ param ['commentLines ' ] as $ lineNum ) {
464
464
if ($ lineNum === 0
465
465
|| $ param ['commentLines ' ][$ lineNum ]['indent ' ] === 0
466
466
) {
0 commit comments