Code Duplication    Length = 14-15 lines in 4 locations

Sniffs/PHP/DeprecatedFunctionsSniff.php 1 location

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

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/NewFunctionsSniff.php 1 location

@@ 1197-1211 (lines=15) @@
1194
     *
1195
     * @return array
1196
     */
1197
    public function register()
1198
    {
1199
        // Everyone has had a chance to figure out what forbidden functions
1200
        // they want to check for, so now we can cache out the list.
1201
        $this->forbiddenFunctionNames = array_keys($this->forbiddenFunctions);
1202
    
1203
        if ($this->patternMatch === true) {
1204
            foreach ($this->forbiddenFunctionNames as $i => $name) {
1205
                $this->forbiddenFunctionNames[$i] = '/'.$name.'/i';
1206
            }
1207
        }
1208
    
1209
        return array(T_STRING);
1210
    
1211
    }//end register()
1212
    
1213
    /**
1214
     * Processes this test, when one of its tokens is encountered.

Sniffs/PHP/RemovedFunctionParametersSniff.php 1 location

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