| Conditions | 1 |
| Paths | 1 |
| Total Lines | 42 |
| Code Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | function call_user_func_array($name, $args) |
||
| 45 | { |
||
| 46 | static $iterations; |
||
| 47 | |||
| 48 | $iteration = $iterations[$name] ?? 0; |
||
| 49 | $iterations[$name]++; |
||
| 50 | |||
| 51 | $return = [ |
||
| 52 | 'ftp_nlist' => [ |
||
| 53 | ['foo.txt', 'bar.txt', 'fiz', 'baz'], |
||
| 54 | ], |
||
| 55 | 'ftp_pwd' => [ |
||
| 56 | '/root', |
||
| 57 | ], |
||
| 58 | 'ftp_chdir' => [ |
||
| 59 | false, |
||
| 60 | false, |
||
| 61 | true, |
||
| 62 | true, |
||
| 63 | true, |
||
| 64 | true, |
||
| 65 | ], |
||
| 66 | 'ftp_mdtm' => [ |
||
| 67 | '20180101123055', |
||
| 68 | '20180101123056', |
||
| 69 | '20180101123057', |
||
| 70 | '20180101123058' |
||
| 71 | ], |
||
| 72 | 'ftp_size' => [ |
||
| 73 | 100, |
||
| 74 | 200, |
||
| 75 | 1, |
||
| 76 | 1, |
||
| 77 | 1, |
||
| 78 | 1, |
||
| 79 | ], |
||
| 80 | 'ftp_put' => [ |
||
| 81 | true, |
||
| 82 | ], |
||
| 83 | ]; |
||
| 84 | |||
| 85 | return $return[$name][$iteration] ?? true; |
||
| 86 | } |
||
| 87 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.