Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function processFile() |
||
25 | { |
||
26 | $cachedFile = Util::joinFile([$this->config->getCachePath(), $this->inputFile->getRelativePathname()]); |
||
27 | |||
28 | if (!Util::getFS()->exists($cachedFile)) { |
||
29 | $minifier = new Minify\CSS($this->inputFile->getPathname()); |
||
30 | $minified = $minifier->minify(); |
||
31 | \Cecil\Util::getFS()->dumpFile($cachedFile, $minified); |
||
32 | } |
||
33 | |||
34 | $this->outputFile = new \SplFileInfo($cachedFile); |
||
35 | } |
||
37 |