Passed
Push — master ( aa8b2f...66cf9e )
by Sebastian
04:39
created
src/HTMLHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
     {
34 34
         preg_match_all('%<([A-Z][A-Z0-9]*)\b[^>]*>(.*?)</\1>%si', $html, $result, PREG_PATTERN_ORDER);
35 35
 
36
-        if(empty($result[1])) {
36
+        if (empty($result[1])) {
37 37
             return '<p>'.$text.'</p>';
38 38
         }
39 39
 
40 40
         $tagName = array_pop($result[1]);
41 41
         $pos = strrpos($html, '</'.$tagName.'>');
42 42
 
43
-        if(in_array(strtolower($tagName), self::$newParaTags)) {
43
+        if (in_array(strtolower($tagName), self::$newParaTags)) {
44 44
             $replace = '</'.$tagName.'><p>'.$text.'</p>';
45 45
         } else {
46 46
             $replace = $text.'</'.$tagName.'>';
Please login to merge, or discard this patch.