Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Commit 7a76aeb

Browse files
jasonvargahanspagel
authored andcommitted
code style
1 parent ddb9e4c commit 7a76aeb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Minify.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ public function process($html)
1515
$this->_replacementHash = 'MINIFYHTML' . md5($_SERVER['REQUEST_TIME']);
1616

1717
// replace PREs with placeholders
18-
$this->_html = preg_replace_callback('/\\s*<pre(\\b[^>]*?>[\\s\\S]*?<\\/pre>)\\s*/iu', array($this, '_removePreCB'), $this->_html);
18+
$this->_html = preg_replace_callback('/\\s*<pre(\\b[^>]*?>[\\s\\S]*?<\\/pre>)\\s*/iu', [$this, '_removePreCB'], $this->_html);
1919

2020
// trim each line.
2121
$this->_html = preg_replace('/^\\s+|\\s+$/mu', '', $this->_html);
2222

2323
// remove ws around block/undisplayed elements
2424
$this->_html = preg_replace('/\\s+(<\\/?(?:area|article|aside|base(?:font)?|blockquote|body'
25-
.'|canvas|caption|center|col(?:group)?|dd|dir|div|dl|dt|fieldset|figcaption|figure|footer|form'
26-
.'|frame(?:set)?|h[1-6]|head|header|hgroup|hr|html|legend|li|link|main|map|menu|meta|nav'
27-
.'|ol|opt(?:group|ion)|output|p|param|section|t(?:able|body|head|d|h||r|foot|itle)'
28-
.'|ul|video)\\b[^>]*>)/iu', '$1', $this->_html);
25+
. '|canvas|caption|center|col(?:group)?|dd|dir|div|dl|dt|fieldset|figcaption|figure|footer|form'
26+
. '|frame(?:set)?|h[1-6]|head|header|hgroup|hr|html|legend|li|link|main|map|menu|meta|nav'
27+
. '|ol|opt(?:group|ion)|output|p|param|section|t(?:able|body|head|d|h||r|foot|itle)'
28+
. '|ul|video)\\b[^>]*>)/iu', '$1', $this->_html);
2929

3030
// fill placeholders
3131
$this->_html = str_replace(

src/Renderer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use DOMElement;
66
use DOMDocument;
7-
use Minify_HTML;
87

98
class Renderer
109
{

0 commit comments

Comments
 (0)