Completed
Push — master ( e8c364...905ff3 )
by Tim
15s queued 13s
created
Classes/Service/CleanHtmlService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
             '/(<(?:[^<>]+(?:"[^"]*"|\'[^\']*\')?)+>)/',
192 192
             $html,
193 193
             -1,
194
-            \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY
194
+            \PREG_SPLIT_DELIM_CAPTURE|\PREG_SPLIT_NO_EMPTY
195 195
         );
196 196
 
197 197
         if (false === $htmlArrayTemp) {
Please login to merge, or discard this patch.
Classes/Service/SvgStoreService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         }
51 51
 
52 52
         // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes
53
-        $dom['body'] = preg_replace_callback('/<img(?<pre>[^>]*)src="(?<src>\/[^"]+\.svg)"(?<post>[^>]*?)[\s\/]*>(?!\s*<\/picture>)/s', function (array $match): string { // ^[/]
53
+        $dom['body'] = preg_replace_callback('/<img(?<pre>[^>]*)src="(?<src>\/[^"]+\.svg)"(?<post>[^>]*?)[\s\/]*>(?!\s*<\/picture>)/s', function(array $match): string { // ^[/]
54 54
             if (!isset($this->svgFileArr[$match['src']])) { // check usage
55 55
                 return $match[0];
56 56
             }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }, $dom['body']);
61 61
 
62 62
         // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object#attributes
63
-        $dom['body'] = preg_replace_callback('/<object(?<pre>[^>]*)data="(?<data>\/[^"]+\.svg)"(?<post>[^>]*?)[\s\/]*>(?:<\/object>)/s', function (array $match): string { // ^[/]
63
+        $dom['body'] = preg_replace_callback('/<object(?<pre>[^>]*)data="(?<data>\/[^"]+\.svg)"(?<post>[^>]*?)[\s\/]*>(?:<\/object>)/s', function(array $match): string { // ^[/]
64 64
             if (!isset($this->svgFileArr[$match['data']])) { // check usage
65 65
                 return $match[0];
66 66
             }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         //}, $svg);
113 113
 
114 114
         // https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg#attributes
115
-        $svg = preg_replace_callback('/([^>]*)\s*(?=>)/s', function (array $match) use (&$attr): string {
115
+        $svg = preg_replace_callback('/([^>]*)\s*(?=>)/s', function(array $match) use (&$attr): string {
116 116
             if (false === preg_match_all('/(?!\s)(?<attr>[\w\-]+)="\s*(?<value>[^"]+)\s*"/', $match[1], $matches)) {
117 117
                 return $match[0];
118 118
             }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
         $svg = preg_replace_callback(
165 165
             '/<use(?<pre>.*?)(?:xlink:)?href="(?<href>\/.+?\.svg)#[^"]+"(?<post>.*?)[\s\/]*>(?:<\/use>)?/s',
166
-            function (array $match): string {
166
+            function(array $match): string {
167 167
                 if (!isset($this->svgFileArr[$match['href']])) { // check usage
168 168
                     return $match[0];
169 169
                 }
Please login to merge, or discard this patch.