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