ForkedExecutor::buildCommandLine()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace Db3v4l\Core\SqlExecutor\Forked;
4
5
use Db3v4l\Core\SqlExecutor\BaseExecutor;
6
7
abstract class ForkedExecutor extends BaseExecutor
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class ForkedExecutor
Loading history...
8
{
9
    const EXECUTE_COMMAND = 0;
10
    const EXECUTE_FILE = 1;
11
12
    public function buildCommandLine($command, array $arguments = array())
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function buildCommandLine()
Loading history...
13
    {
14
        $arguments = array_map('escapeshellarg', $arguments);
15
        return escapeshellcmd($command) . ' ' . implode(' ', $arguments);
16
    }
17
}
18