HtmlMin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A minify() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Abordage\LaravelHtmlMin;
6
7
use Abordage\HtmlMin\HtmlMin as BaseHtmlMin;
8
9
class HtmlMin extends BaseHtmlMin
10
{
11
    public function minify(string $html): string
12
    {
13
        $this->findDoctypeInDocument((bool)config('html-min.find_doctype_in_document'));
14
        $this->removeWhitespaceBetweenTags((bool)config('html-min.remove_whitespace_between_tags'));
15
        $this->removeBlankLinesInScriptElements((bool)config('html-min.remove_blank_lines_in_script_elements'));
16
17
        return parent::minify($html);
18
    }
19
}
20