| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Taskforcedev\LaravelForum\Helpers; |
||
| 36 | public function removeBloat($html) |
||
| 37 | { |
||
| 38 | // @codingStandardsIgnoreStart |
||
| 39 | $removals = [ |
||
| 40 | '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">', |
||
| 41 | '<html>', |
||
| 42 | '<body>', |
||
| 43 | '</body>', |
||
| 44 | '</html>' |
||
| 45 | ]; |
||
| 46 | // @codingStandardsIgnoreEnd |
||
| 47 | |||
| 48 | foreach ($removals as $rem) { |
||
| 49 | $html = str_replace($rem, '', $html); |
||
| 50 | } |
||
| 51 | |||
| 52 | return $html; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |