Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | protected function buildCommand() |
||
21 | { |
||
22 | $command = parent::buildCommand(); |
||
23 | |||
24 | $inputKey = array_search(Arr::first($this->getInputs()), $command) - 1; |
||
25 | |||
26 | foreach ($this->getInputs() as $key => $path) { |
||
27 | $headers = $this->headers[$key]; |
||
28 | |||
29 | if (empty($headers)) { |
||
30 | $inputKey += 2; |
||
31 | continue; |
||
32 | } |
||
33 | |||
34 | $command = static::mergeBeforeKey($command, $inputKey, static::compileHeaders($headers)); |
||
35 | $inputKey += 4; |
||
36 | } |
||
37 | |||
38 | return $command; |
||
39 | } |
||
41 |