Code Duplication    Length = 10-10 lines in 2 locations

Sniffs/PHP/DeprecatedFunctionsSniff.php 1 location

@@ 721-730 (lines=10) @@
718
        foreach ($this->forbiddenFunctions[$pattern] as $version => $forbidden) {
719
            if ($this->supportsAbove($version)) {
720
                if ($version != 'alternative') {
721
                    if ($previousVersionStatus !== $forbidden) {
722
                        $previousVersionStatus = $forbidden;
723
                        if ($forbidden === true) {
724
                            $this->error = true;
725
                            $error .= 'forbidden';
726
                        } else {
727
                            $error .= 'discouraged';
728
                        }
729
                        $error .=  ' from PHP version ' . $version . ' and ';
730
                    }
731
                }
732
            }
733
        }

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) {