HtmlMin::minify()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 7
rs 10
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