Code Duplication    Length = 19-19 lines in 2 locations

PHPCompatibility/Sniffs/PHP/NewConstantsSniff.php 1 location

@@ 2063-2081 (lines=19) @@
2060
     *
2061
     * @return void
2062
     */
2063
    public function process(\PHP_CodeSniffer_File $phpcsFile, $stackPtr)
2064
    {
2065
        $tokens       = $phpcsFile->getTokens();
2066
        $constantName = $tokens[$stackPtr]['content'];
2067
2068
        if (isset($this->newConstants[$constantName]) === false) {
2069
            return;
2070
        }
2071
2072
        if ($this->isUseOfGlobalConstant($phpcsFile, $stackPtr) === false) {
2073
            return;
2074
        }
2075
2076
        $itemInfo = array(
2077
            'name' => $constantName,
2078
        );
2079
        $this->handleFeature($phpcsFile, $stackPtr, $itemInfo);
2080
2081
    }//end process()
2082
2083
2084
    /**

PHPCompatibility/Sniffs/PHP/RemovedConstantsSniff.php 1 location

@@ 74-92 (lines=19) @@
71
     *
72
     * @return void
73
     */
74
    public function process(\PHP_CodeSniffer_File $phpcsFile, $stackPtr)
75
    {
76
        $tokens       = $phpcsFile->getTokens();
77
        $constantName = $tokens[$stackPtr]['content'];
78
79
        if (isset($this->removedConstants[$constantName]) === false) {
80
            return;
81
        }
82
83
        if ($this->isUseOfGlobalConstant($phpcsFile, $stackPtr) === false) {
84
            return;
85
        }
86
87
        $itemInfo = array(
88
            'name' => $constantName,
89
        );
90
        $this->handleFeature($phpcsFile, $stackPtr, $itemInfo);
91
92
    }//end process()
93
94
95
    /**