Completed
Push — master ( 62631c...87f3d1 )
by recca
03:22
created

polyfill.php ➔ escapeshellarg()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Recca0120\Terminal
4
{
5
    if (function_exists('escapeshellarg') === true) {
6
        function escapeshellarg($input)
7
        {
8 1
            return \escapeshellarg($input);
9
        }
10
    } else {
11
        function escapeshellarg($input)
12
        {
13
            $input = str_replace('\'', '\\\'', $input);
14
15
            return '\''.$input.'\'';
16
        }
17
    }
18
}
19
20
namespace SebastianBergmann\Environment
21
{
22
    function escapeshellarg($input)
23
    {
24
        return \Recca0120\Terminal\escapeshellarg($input);
25
    }
26
}
27
28
namespace Symfony\Component\Console\Input
29
{
30
    function escapeshellarg($input)
31
    {
32 1
        return \Recca0120\Terminal\escapeshellarg($input);
33
    }
34
}
35
36
namespace Symfony\Component\HttpFoundation\File\MimeType
37
{
38
    function escapeshellarg($input)
39
    {
40
        return \Recca0120\Terminal\escapeshellarg($input);
41
    }
42
}
43
44
namespace Symfony\Component\Process
45
{
46
    function escapeshellarg($input)
47
    {
48
        return \Recca0120\Terminal\escapeshellarg($input);
49
    }
50
}
51