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