Code Duplication    Length = 11-15 lines in 2 locations

Sniffs/PHP/NewScalarReturnTypeDeclarationsSniff.php 1 location

@@ 78-88 (lines=11) @@
75
     *
76
     * @return void
77
     */
78
    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
79
    {
80
        $tokens = $phpcsFile->getTokens();
81
82
        if (isset($this->newTypes[$tokens[$stackPtr]['content']]) === true) {
83
            $itemInfo = array(
84
                'name'   => $tokens[$stackPtr]['content'],
85
            );
86
            $this->handleFeature($phpcsFile, $stackPtr, $itemInfo);
87
        }
88
    }//end process()
89
90
91
    /**

Sniffs/PHP/RemovedGlobalVariablesSniff.php 1 location

@@ 59-73 (lines=15) @@
56
     *
57
     * @return void
58
     */
59
    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
60
    {
61
        $tokens  = $phpcsFile->getTokens();
62
        $varName = substr($tokens[$stackPtr]['content'], 1);
63
64
        if (isset($this->removedGlobalVariables[$varName]) === false) {
65
            return;
66
        }
67
68
        $itemInfo = array(
69
            'name' => $varName,
70
        );
71
        $this->handleFeature($phpcsFile, $stackPtr, $itemInfo);
72
73
    }//end process()
74
75
76
    /**