Code Duplication    Length = 8-8 lines in 2 locations

src/Pipes/Styles.php 2 locations

@@ 28-35 (lines=8) @@
25
        }
26
    }
27
28
    public function hideTools($trix)
29
    {
30
        $trix->html .= collect(Arr::get($trix->config, 'hideTools', []))
31
            ->map(function ($tool) use ($trix) {
32
                return "#container-{$trix->config['id']} .trix-button-group--$tool";
33
            })
34
            ->implode(',').(Arr::get($trix->config, 'hideTools', []) ? '{display:none;}' : '');
35
    }
36
37
    public function hideButtonIcons($trix)
38
    {
@@ 37-44 (lines=8) @@
34
            ->implode(',').(Arr::get($trix->config, 'hideTools', []) ? '{display:none;}' : '');
35
    }
36
37
    public function hideButtonIcons($trix)
38
    {
39
        $trix->html .= collect(Arr::get($trix->config, 'hideButtonIcons', []))
40
            ->map(function ($iconClass) use ($trix) {
41
                return "#container-{$trix->config['id']} .trix-button--icon-$iconClass";
42
            })
43
            ->implode(',').(Arr::get($trix->config, 'hideButtonIcons', []) ? '{display:none;}' : '');
44
    }
45
}
46