Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function processFile() |
||
40 | { |
||
41 | $cachedFile = Util::joinFile([$this->config->getCachePath(), $this->inputFile->getRelativePathname()]); |
||
42 | |||
43 | if (!Util::getFS()->exists($cachedFile)) { |
||
44 | Util::getFS()->mkdir(Util::joinFile([$this->config->getCachePath(), $this->inputFile->getRelativePath()])); |
||
45 | /** @var Optimizer $processor */ |
||
46 | $this->processor->optimize($this->inputFile->getPathname(), $cachedFile); |
||
47 | } |
||
48 | |||
49 | $this->outputFile = new \SplFileInfo($cachedFile); |
||
50 | } |
||
52 |