ForkedExecutor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
c 0
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildCommandLine() 0 4 1
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