| Conditions | 4 |
| Paths | 5 |
| Total Lines | 21 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function handle(Request $request, Closure $next) |
||
| 20 | { |
||
| 21 | $response = $next($request); |
||
| 22 | |||
| 23 | if (!$this->compressionPossible($request, $response)) { |
||
| 24 | return $response; |
||
| 25 | } |
||
| 26 | |||
| 27 | $html = $response->getContent(); |
||
| 28 | |||
| 29 | if (class_exists('\BeyondCode\ServerTiming\Facades\ServerTiming')) { |
||
| 30 | \BeyondCode\ServerTiming\Facades\ServerTiming::start('Minification'); |
||
|
|
|||
| 31 | } |
||
| 32 | |||
| 33 | $htmlMin = HtmlMin::minify($html); |
||
| 34 | |||
| 35 | if (class_exists('\BeyondCode\ServerTiming\Facades\ServerTiming')) { |
||
| 36 | \BeyondCode\ServerTiming\Facades\ServerTiming::stop('Minification'); |
||
| 37 | } |
||
| 38 | |||
| 39 | return $response->setContent($htmlMin); |
||
| 40 | } |
||
| 68 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths