Code Duplication    Length = 15-15 lines in 2 locations

Sniffs/PHP/NewFunctionsSniff.php 1 location

@@ 1109-1123 (lines=15) @@
1106
     *
1107
     * @return array
1108
     */
1109
    public function register()
1110
    {
1111
        // Everyone has had a chance to figure out what forbidden functions
1112
        // they want to check for, so now we can cache out the list.
1113
        $this->forbiddenFunctionNames = array_keys($this->forbiddenFunctions);
1114
    
1115
        if ($this->patternMatch === true) {
1116
            foreach ($this->forbiddenFunctionNames as $i => $name) {
1117
                $this->forbiddenFunctionNames[$i] = '/'.$name.'/i';
1118
            }
1119
        }
1120
    
1121
        return array(T_STRING);
1122
    
1123
    }//end register()
1124
    
1125
    /**
1126
     * Processes this test, when one of its tokens is encountered.

Sniffs/PHP/DeprecatedFunctionsSniff.php 1 location

@@ 623-637 (lines=15) @@
620
     *
621
     * @return array
622
     */
623
    public function register()
624
    {
625
        // Everyone has had a chance to figure out what forbidden functions
626
        // they want to check for, so now we can cache out the list.
627
        $this->forbiddenFunctionNames = array_keys($this->forbiddenFunctions);
628
    
629
        if ($this->patternMatch === true) {
630
            foreach ($this->forbiddenFunctionNames as $i => $name) {
631
                $this->forbiddenFunctionNames[$i] = '/'.$name.'/i';
632
            }
633
        }
634
    
635
        return array(T_STRING);
636
    
637
    }//end register()
638
    
639
    
640
    /**