Code Duplication    Length = 5-5 lines in 4 locations

Sniffs/PHP/DeprecatedIniDirectivesSniff.php 1 location

@@ 264-268 (lines=5) @@
261
                $error .= " Use '" . $this->deprecatedIniDirectives[$filteredToken]['alternative'] . "' instead.";
262
            }
263
264
            if ($isError === true) {
265
                $phpcsFile->addError($error, $iniToken['end']);
266
            } else {
267
                $phpcsFile->addWarning($error, $iniToken['end']);
268
            }
269
        }
270
271
    }//end process()

Sniffs/PHP/NewIniDirectivesSniff.php 1 location

@@ 524-528 (lines=5) @@
521
                $data[] = $this->newIniDirectives[$filteredToken]['alternative'];
522
            }
523
524
            if ($isError === true) {
525
                $phpcsFile->addError($error, $iniToken['end'], 'Found', $data);
526
            } else {
527
                $phpcsFile->addWarning($error, $iniToken['end'], 'Found', $data);
528
            }
529
        }
530
531
    }//end process()

Sniffs/PHP/RemovedGlobalVariablesSniff.php 1 location

@@ 95-99 (lines=5) @@
92
                $error .= ' - use %s instead.';
93
                $data[] = $versionList['alternative'];
94
            }
95
            if ($isError === true) {
96
                $phpcsFile->addError($error, $stackPtr, 'Found', $data);
97
            } else {
98
                $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
99
            }
100
        }
101
102
    }//end process()

Sniffs/PHP/LongArraysSniff.php 1 location

@@ 110-114 (lines=5) @@
107
            $tokens[$stackPtr]['content']
108
        );
109
110
        if ($isError === true) {
111
            $phpcsFile->addError($error, $stackPtr, 'Found', $data);
112
        } else {
113
            $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
114
        }
115
    }
116
}
117