Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function processFile() |
||
26 | { |
||
27 | $cachedFile = Util::joinFile([$this->config->getCachePath(), $this->inputFile->getRelativePathname()]); |
||
28 | |||
29 | if (!Util::getFS()->exists($cachedFile)) { |
||
30 | Util::getFS()->mkdir(Util::joinFile([$this->config->getCachePath(), $this->inputFile->getRelativePath()])); |
||
31 | /** @var Optimizer $processor */ |
||
32 | $this->processor->optimize($this->inputFile->getPathname(), $cachedFile); |
||
33 | } |
||
34 | |||
35 | $this->outputFile = new \SplFileInfo($cachedFile); |
||
36 | } |
||
38 |