| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function startPurge(array $html) { |
||
| 43 | |||
| 44 | $i = 1; |
||
| 45 | $total = count($html); |
||
| 46 | |||
| 47 | |||
| 48 | foreach ($html as $value) { |
||
| 49 | $this->output->write("Loading HTML file ($i/$total)"); |
||
| 50 | $dom = DomFactory::build($value); |
||
| 51 | $this->output->writeln(" [<info>OK</info>]"); |
||
| 52 | |||
| 53 | $this->output->write("Purging CSS from HTML file ($i/$total)"); |
||
| 54 | $this->purger->purge($dom); |
||
| 55 | $this->output->writeln(" [<info>OK</info>]"); |
||
| 56 | |||
| 57 | $i++; |
||
| 58 | } |
||
| 59 | |||
| 60 | $this->output->writeln("Purge Successfully Completed!\n"); |
||
| 61 | } |
||
| 62 | |||
| 73 |