Code Duplication    Length = 5-5 lines in 2 locations

Sniffs/PHP/RemovedFunctionParametersSniff.php 1 location

@@ 171-175 (lines=5) @@
168
                $function,
169
            );
170
171
            if ($isError === true) {
172
                $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
173
            } else {
174
                $phpcsFile->addWarning($error, $stackPtr, $errorCode, $data);
175
            }
176
        }
177
178
    }//end addError()

Sniffs/PHP/RemovedHashAlgorithmsSniff.php 1 location

@@ 167-171 (lines=5) @@
164
        // Remove the last 'and' from the message.
165
        $error = substr($error, 0, strlen($error) - 5);
166
167
        if ($errorInfo['error'] === true) {
168
            $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
169
        } else {
170
            $phpcsFile->addWarning($error, $stackPtr, $errorCode, $data);
171
        }
172
173
    }//end addError()
174