Code Duplication    Length = 19-19 lines in 2 locations

PHPCompatibility/Sniffs/PHP/RemovedConstantsSniff.php 1 location

@@ 299-317 (lines=19) @@
296
     *
297
     * @return void
298
     */
299
    public function process(\PHP_CodeSniffer_File $phpcsFile, $stackPtr)
300
    {
301
        $tokens       = $phpcsFile->getTokens();
302
        $constantName = $tokens[$stackPtr]['content'];
303
304
        if (isset($this->removedConstants[$constantName]) === false) {
305
            return;
306
        }
307
308
        if ($this->isUseOfGlobalConstant($phpcsFile, $stackPtr) === false) {
309
            return;
310
        }
311
312
        $itemInfo = array(
313
            'name' => $constantName,
314
        );
315
        $this->handleFeature($phpcsFile, $stackPtr, $itemInfo);
316
317
    }//end process()
318
319
320
    /**

PHPCompatibility/Sniffs/PHP/NewConstantsSniff.php 1 location

@@ 2967-2985 (lines=19) @@
2964
     *
2965
     * @return void
2966
     */
2967
    public function process(\PHP_CodeSniffer_File $phpcsFile, $stackPtr)
2968
    {
2969
        $tokens       = $phpcsFile->getTokens();
2970
        $constantName = $tokens[$stackPtr]['content'];
2971
2972
        if (isset($this->newConstants[$constantName]) === false) {
2973
            return;
2974
        }
2975
2976
        if ($this->isUseOfGlobalConstant($phpcsFile, $stackPtr) === false) {
2977
            return;
2978
        }
2979
2980
        $itemInfo = array(
2981
            'name' => $constantName,
2982
        );
2983
        $this->handleFeature($phpcsFile, $stackPtr, $itemInfo);
2984
2985
    }//end process()
2986
2987
2988
    /**