Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function processFile() |
||
39 | { |
||
40 | $cachedFile = Util::joinFile([$this->config->getCachePath(), $this->inputFile->getRelativePathname()]); |
||
41 | |||
42 | if (!Util::getFS()->exists($cachedFile)) { |
||
43 | $minifier = new Minify\JS($this->inputFile->getPathname()); |
||
44 | $minified = $minifier->minify(); |
||
45 | \Cecil\Util::getFS()->dumpFile($cachedFile, $minified); |
||
46 | } |
||
47 | |||
48 | $this->outputFile = new \SplFileInfo($cachedFile); |
||
49 | } |
||
51 |