Code Duplication    Length = 14-15 lines in 3 locations

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.

Sniffs/PHP/NewFunctionParametersSniff.php 1 location

@@ 728-741 (lines=14) @@
725
     *
726
     * @return array
727
     */
728
    public function register()
729
    {
730
        // Everyone has had a chance to figure out what forbidden functions
731
        // they want to check for, so now we can cache out the list.
732
        $this->newFunctionParametersNames = array_keys($this->newFunctionParameters);
733
734
        if ($this->patternMatch === true) {
735
            foreach ($this->newFunctionParametersNames as $i => $name) {
736
                $this->newFunctionParametersNames[$i] = '/'.$name.'/i';
737
            }
738
        }
739
740
        return array(T_STRING);
741
    }//end register()
742
743
    /**
744
     * Processes this test, when one of its tokens is encountered.