Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | protected function buildCommand() |
||
30 | { |
||
31 | $command = parent::buildCommand(); |
||
32 | |||
33 | $inputKey = array_search(Arr::first($this->getInputs()), $command) - 1; |
||
34 | |||
35 | foreach ($this->getInputs() as $key => $path) { |
||
36 | $headers = $this->headers[$key]; |
||
37 | |||
38 | if (empty($headers)) { |
||
39 | $inputKey += 2; |
||
40 | continue; |
||
41 | } |
||
42 | |||
43 | $command = static::mergeBeforeKey($command, $inputKey, static::compileHeaders($headers)); |
||
44 | $inputKey += 4; |
||
45 | } |
||
46 | |||
47 | return $command; |
||
48 | } |
||
50 |