These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Recca0120\LaravelTracy |
||
4 | { |
||
5 | if (function_exists('escapeshellarg') === true) { |
||
6 | function escapeshellarg($input) |
||
7 | { |
||
8 | return \escapeshellarg($input); |
||
9 | } |
||
10 | } else { |
||
11 | function escapeshellarg($input) |
||
0 ignored issues
–
show
|
|||
12 | { |
||
13 | $input = str_replace('\'', '\\\'', $input); |
||
14 | |||
15 | return '\''.$input.'\''; |
||
16 | } |
||
17 | } |
||
18 | } |
||
19 | |||
20 | namespace Tracy |
||
21 | { |
||
22 | function escapeshellarg($input) |
||
23 | { |
||
24 | return \Recca0120\LaravelTracy\escapeshellarg($input); |
||
25 | } |
||
26 | } |
||
27 |
This check looks for functions that have already been defined in the same file.
Some Codebases, like WordPress, make a practice of defining functions multiple times. This may lead to problems with the detection of function parameters and types. If you really need to do this, you can mark the duplicate definition with the
@ignore
annotation.See also the PhpDoc documentation for @ignore.