Completed
Branch master (554f93)
by Mark
02:16
created
Category
src/Shortcodes.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function parse($content)
50 50
     {
51
-        if (empty($this->shortcodeTags) || ! is_array($this->shortcodeTags)) {
51
+        if (empty($this->shortcodeTags) || !is_array($this->shortcodeTags)) {
52 52
             return $content;
53 53
         }
54 54
 
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
         $text = preg_replace("/[\x{00a0}\x{200b}]+/u", ' ', $text);
116 116
         if (preg_match_all($pattern, $text, $match, PREG_SET_ORDER)) {
117 117
             foreach ($match as $m) {
118
-                if (! empty($m[1])) {
118
+                if (!empty($m[1])) {
119 119
                     $atts[strtolower($m[1])] = stripcslashes($m[2]);
120
-                } elseif (! empty($m[3])) {
120
+                } elseif (!empty($m[3])) {
121 121
                     $atts[strtolower($m[3])] = stripcslashes($m[4]);
122
-                } elseif (! empty($m[5])) {
122
+                } elseif (!empty($m[5])) {
123 123
                     $atts[strtolower($m[5])] = stripcslashes($m[6]);
124 124
                 } elseif (isset($m[7]) and strlen($m[7])) {
125 125
                     $atts[] = stripcslashes($m[7]);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function stripShortcodes($content)
144 144
     {
145
-        if (empty($this->shortcodeTags) || ! is_array($this->shortcodeTags)) {
145
+        if (empty($this->shortcodeTags) || !is_array($this->shortcodeTags)) {
146 146
             return $content;
147 147
         }
148 148
 
Please login to merge, or discard this patch.