Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
58 | public function cloneRepo($url, $branch = NULL, $dir = NULL) |
||
59 | { |
||
60 | $command = escapeshellarg($this->gitExecutable) . " clone"; |
||
61 | $command .= " --depth 1 --recursive $url"; |
||
62 | $command .= ($branch ? " --branch $branch" : ''); |
||
63 | $command .= ($dir ? ' ' . escapeshellarg($dir) : ''); |
||
64 | $this->setCommand($command); |
||
65 | } |
||
66 | |||
81 | } |