Code Duplication    Length = 5-5 lines in 6 locations

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/NewScalarReturnTypeDeclarationsSniff.php 1 location

@@ 115-119 (lines=5) @@
112
                $typeName,
113
            );
114
115
            if ($isError === true) {
116
                $phpcsFile->addError($error, $stackPtr, 'Found', $data);
117
            } else {
118
                $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
119
            }
120
        }
121
122
    }//end addError()

Sniffs/PHP/NewIniDirectivesSniff.php 1 location

@@ 533-537 (lines=5) @@
530
                $data[] = $this->newIniDirectives[$filteredToken]['alternative'];
531
            }
532
533
            if ($isError === true) {
534
                $phpcsFile->addError($error, $iniToken['end'], 'Found', $data);
535
            } else {
536
                $phpcsFile->addWarning($error, $iniToken['end'], 'Found', $data);
537
            }
538
        }
539
540
    }//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

Sniffs/PHP/DeprecatedIniDirectivesSniff.php 1 location

@@ 283-287 (lines=5) @@
280
                $error .= " Use '" . $this->deprecatedIniDirectives[$filteredToken]['alternative'] . "' instead.";
281
            }
282
283
            if ($isError === true) {
284
                $phpcsFile->addError($error, $iniToken['end']);
285
            } else {
286
                $phpcsFile->addWarning($error, $iniToken['end']);
287
            }
288
        }
289
290
    }//end process()

Sniffs/PHP/ForbiddenBreakContinueOutsideLoopSniff.php 1 location

@@ 103-107 (lines=5) @@
100
            $error  .= ' and will throw a fatal error since PHP 7.0';
101
        }
102
103
        if ($isError === true) {
104
            $phpcsFile->addError($error, $stackPtr, 'Found', $data);
105
        } else {
106
            $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
107
        }
108
109
    }//end process()
110