Code Duplication    Length = 14-15 lines in 3 locations

Sniffs/PHP/NewFunctionParametersSniff.php 1 location

@@ 80-93 (lines=14) @@
77
     *
78
     * @return array
79
     */
80
    public function register()
81
    {
82
        // Everyone has had a chance to figure out what forbidden functions
83
        // they want to check for, so now we can cache out the list.
84
        $this->newFunctionParametersNames = array_keys($this->newFunctionParameters);
85
86
        if ($this->patternMatch === true) {
87
            foreach ($this->newFunctionParametersNames as $i => $name) {
88
                $this->newFunctionParametersNames[$i] = '/'.$name.'/i';
89
            }
90
        }
91
92
        return array(T_STRING);
93
    }//end register()
94
95
    /**
96
     * Processes this test, when one of its tokens is encountered.

Sniffs/PHP/DeprecatedFunctionsSniff.php 1 location

@@ 644-658 (lines=15) @@
641
     *
642
     * @return array
643
     */
644
    public function register()
645
    {
646
        // Everyone has had a chance to figure out what forbidden functions
647
        // they want to check for, so now we can cache out the list.
648
        $this->forbiddenFunctionNames = array_keys($this->forbiddenFunctions);
649
650
        if ($this->patternMatch === true) {
651
            foreach ($this->forbiddenFunctionNames as $i => $name) {
652
                $this->forbiddenFunctionNames[$i] = '/'.$name.'/i';
653
            }
654
        }
655
656
        return array(T_STRING);
657
658
    }//end register()
659
660
661
    /**

Sniffs/PHP/RemovedFunctionParametersSniff.php 1 location

@@ 78-91 (lines=14) @@
75
     *
76
     * @return array
77
     */
78
    public function register()
79
    {
80
        // Everyone has had a chance to figure out what forbidden functions
81
        // they want to check for, so now we can cache out the list.
82
        $this->removedFunctionParametersNames = array_keys($this->removedFunctionParameters);
83
84
        if ($this->patternMatch === true) {
85
            foreach ($this->removedFunctionParametersNames as $i => $name) {
86
                $this->removedFunctionParametersNames[$i] = '/'.$name.'/i';
87
            }
88
        }
89
90
        return array(T_STRING);
91
    }//end register()
92
93
    /**
94
     * Processes this test, when one of its tokens is encountered.