| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function handle() |
||
| 16 | { |
||
| 17 | // Since we have $this->task property set, |
||
| 18 | // we can simply call its method to retrieve |
||
| 19 | // data instead of passing it to constructor. |
||
| 20 | |||
| 21 | $command = [ |
||
| 22 | 'git clone -b %s --depth=1 %s %s', |
||
| 23 | $this->task->getBranch(), |
||
| 24 | $this->task->getGitUrl(), |
||
| 25 | $this->task->getRootPath(), |
||
| 26 | ]; |
||
| 27 | |||
| 28 | exec(call_user_func_array('sprintf', $command)); |
||
| 29 | |||
| 30 | return true; |
||
| 31 | } |
||
| 33 |