| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 4 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 38 | 15 | public function clean($html) |
|
| 39 | { |
||
| 40 | // Tokenize |
||
| 41 | 15 | $tokenizer = new Tokenizer($this->configuration); |
|
| 42 | 15 | $tokenContainer = $tokenizer->tokenize($html); |
|
| 43 | |||
| 44 | // Clean |
||
| 45 | 15 | $tokenContainer->clean($this->logger); |
|
| 46 | |||
| 47 | // Output |
||
| 48 | $outputClassName = 'Groundskeeper\\Output\\' . |
||
| 49 | 15 | ucfirst($this->configuration->get('output')); |
|
| 50 | 15 | $output = new $outputClassName(); |
|
| 51 | |||
| 52 | 15 | return $output($tokenContainer); |
|
| 53 | } |
||
| 54 | |||
| 65 |