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