Code Duplication    Length = 10-12 lines in 2 locations

Sniffs/PHP/DeprecatedFunctionsSniff.php 1 location

@@ 724-735 (lines=12) @@
721
        $previousVersionStatus = null;
722
        foreach ($this->forbiddenFunctions[$pattern] as $version => $forbidden) {
723
            if ($this->supportsAbove($version)) {
724
                if ($version != 'alternative') {
725
                    if ($previousVersionStatus !== $forbidden) {
726
                        $previousVersionStatus = $forbidden;
727
                        if ($forbidden === true) {
728
                            $this->error = true;
729
                            $error .= 'forbidden';
730
                        } else {
731
                            $error .= 'discouraged';
732
                        }
733
                        $error .=  ' from PHP version ' . $version . ' and ';
734
                    }
735
                }
736
            }
737
        }
738
        if (strlen($error) > 0) {

Sniffs/PHP/DeprecatedIniDirectivesSniff.php 1 location

@@ 188-197 (lines=10) @@
185
186
        foreach ($this->deprecatedIniDirectives[str_replace("'", "", $tokens[$iniToken]['content'])] as $version => $forbidden)
187
        {
188
            if ($this->supportsAbove($version)) {
189
                if ($forbidden === true) {
190
                    $isError = true;
191
                    $error .= " forbidden";
192
                } else {
193
                    $isError = false;
194
                    $error .= " deprecated";
195
                }
196
                $error .= " from PHP " . $version . " and";
197
            }
198
        }
199
200
        if (strlen($error) > 0) {