Passed
Pull Request — master (#5)
by
unknown
03:44
created
src/EntityDecoder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                     $entitytext .= $stopChar;
208 208
                     array_pop($openedEntities);
209 209
                     array_pop($openedEntities);
210
-                    if(empty($openedEntities))
210
+                    if (empty($openedEntities))
211 211
                     {
212 212
                         $entitiesArray[] = $entitytext;
213 213
                         $entitytext = "";
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                     $stopChar = $this->getEntityStopString($stEntity);
219 219
                     $entitytext .= $stopChar;
220 220
                     array_pop($openedEntities);
221
-                    if(empty($openedEntities))
221
+                    if (empty($openedEntities))
222 222
                     {
223 223
                         $entitiesArray[] = $entitytext;
224 224
                         $entitytext = "";
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
             if ($entityCheckStart === false && $entityCheckStop === false)
229 229
             {
230 230
                 $isEntityOpen = !empty($openedEntities);
231
-                if($isEntityOpen)
231
+                if ($isEntityOpen)
232 232
                 {
233 233
                     $entitytext .= $this->escapeSpecialChars($arrayText[$i]['char'], $isEntityOpen, $openedEntities);
234 234
                 }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
             }
364 364
 
365 365
             if ($isPreOpen) {
366
-                return (in_array($char, ['`', '\\']) ? '\\' . $char : $char);
366
+                return (in_array($char, ['`', '\\']) ? '\\'.$char : $char);
367 367
             }
368 368
 
369 369
             return (in_array($char, ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!', '\\']) ? '\\'.$char : $char);
Please login to merge, or discard this patch.