Completed
Push — master ( f67f6a...20645f )
by Matt
02:44
created
src/Parsers/DefaultParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             .'\\[\\/\\2\\]'     // Closing shortcode tag
74 74
             .')?'
75 75
             .')'
76
-            .'(\\]?)';          // 6: Optional second closing brocket for escaping shortcodes: [[tag]]
76
+            .'(\\]?)'; // 6: Optional second closing brocket for escaping shortcodes: [[tag]]
77 77
     }
78 78
 
79 79
     /**
@@ -96,12 +96,12 @@  discard block
 block discarded – undo
96 96
         ]);
97 97
         $pattern = "/{$patterns}/";
98 98
         $text = preg_replace("/[\x{00a0}\x{200b}]+/u", ' ', $text);
99
-        if (preg_match_all($pattern, (string) $text, $match, PREG_SET_ORDER)) {
99
+        if (preg_match_all($pattern, (string)$text, $match, PREG_SET_ORDER)) {
100 100
 
101 101
             // Reject any unclosed HTML elements
102 102
             foreach ($this->generateAttributes($match) as $att => $value) {
103
-                if ($value !== true && strpos((string) $value, '<') !== false) {
104
-                    if (preg_match('/^[^<]*+(?:<[^>]*+>[^<]*+)*+$/', (string) $value) !== 1) {
103
+                if ($value !== true && strpos((string)$value, '<') !== false) {
104
+                    if (preg_match('/^[^<]*+(?:<[^>]*+>[^<]*+)*+$/', (string)$value) !== 1) {
105 105
                         $value = '';
106 106
                     }
107 107
                 }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     private function generateCallback(Closure $callback): Closure
156 156
     {
157
-        return function ($match) use ($callback) {
157
+        return function($match) use ($callback) {
158 158
             if ($match[1] == '[' && $match[6] == ']') {
159 159
                 return substr($match[0], 1, -1);
160 160
             }
Please login to merge, or discard this patch.