| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function getExecutable(Target $target) { |
||
| 39 | if (null === $this->executable) { |
||
| 40 | 3 | $this->executable = new Compressor($target->getCompressor()->getCommand(), $this->pathToCommand); |
|
| 41 | 3 | $this->executable->force(true)->compressFile($this->path); |
|
| 42 | 1 | } |
|
| 43 | 1 | return $this->executable; |
|
| 44 | 1 | } |
|
| 45 | 1 | ||
| 58 |