Code Duplication    Length = 5-5 lines in 2 locations

PHPCompatibility/Sniffs/FunctionParameters/SetlocaleStringSniff.php 1 location

@@ 86-90 (lines=5) @@
83
            $errorCode = 'Deprecated';
84
            $data      = array($targetParam['raw']);
85
86
            if ($this->supportsAbove('7.0') === true) {
87
                $message  .= ' and is removed since PHP 7.0';
88
                $isError   = true;
89
                $errorCode = 'Removed';
90
            }
91
92
            $message .= '; Pass one of the LC_* constants instead. Found: %s';
93

PHPCompatibility/Sniffs/PHP/DeprecatedNewReferenceSniff.php 1 location

@@ 68-72 (lines=5) @@
65
        $isError   = false;
66
        $errorCode = 'Deprecated';
67
68
        if ($this->supportsAbove('7.0') === true) {
69
            $error    .= ' and has been removed in PHP 7.0';
70
            $isError   = true;
71
            $errorCode = 'Removed';
72
        }
73
74
        $this->addMessage($phpcsFile, $error, $stackPtr, $isError, $errorCode);
75