Completed
Push — master ( dc181c...08db18 )
by recca
12s queued 10s
created

src/polyfill.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

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
The function Recca0120\LaravelTracy\escapeshellarg() has been defined more than once; this definition is ignored, only the first definition in this file (L6-9) is considered.

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.

/**
 * @ignore
 */
function getUser() {

}

function getUser($id, $realm) {

}

See also the PhpDoc documentation for @ignore.

Loading history...
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