Completed
Push — master ( cc6e0a...23f378 )
by Бабичев
03:47
created
src/AdvancedHtmlDom/AHTMLNode.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
73 73
         if ($ref_node = $this->node->nextSibling)
74 74
         {
75 75
             $this->node->parentNode->insertBefore($fragment, $ref_node);
76
-        }
77
-        else
76
+        } else
78 77
         {
79 78
             $this->node->parentNode->appendChild($fragment);
80 79
         }
@@ -139,8 +138,7 @@  discard block
 block discarded – undo
139 138
         if ($children->length == 0)
140 139
         {
141 140
             $ret[$this->decamelize(\implode(' ', \array_filter(array($key, $tag))))] = $this->text;
142
-        }
143
-        else
141
+        } else
144 142
         {
145 143
             $flatten = [];
146 144
             foreach ($children as $child)
Please login to merge, or discard this patch.
src/AdvancedHtmlDom/Str.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
         if ($replacement instanceof \Closure)
61 61
         {
62 62
             $val = \preg_replace_callback($regex, $replacement, $this->text, $limit);
63
-        }
64
-        else
63
+        } else
65 64
         {
66 65
             $val = \preg_replace($regex, $replacement, $this->text, $limit);
67 66
         }
Please login to merge, or discard this patch.
src/AdvancedHtmlDom/CSS.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -119,8 +119,7 @@  discard block
 block discarded – undo
119 119
                 $tokens[] = '((last()-position()+1) mod ' . abs($a) . ') = 0';
120 120
             }
121 121
 
122
-        }
123
-        else
122
+        } else
124 123
         {
125 124
 
126 125
             if ($a === null)
@@ -188,8 +187,7 @@  discard block
 block discarded – undo
188 187
             {
189 188
                 $tokens[] = "((last()-position()+1) mod " . abs($a) . ") = 0";
190 189
             }
191
-        }
192
-        else
190
+        } else
193 191
         {
194 192
             if ($a === null)
195 193
             {
@@ -483,8 +481,7 @@  discard block
 block discarded – undo
483 481
                     if (!isset($first_nav))
484 482
                     {
485 483
                         $first_nav = $token;
486
-                    }
487
-                    else
484
+                    } else
488 485
                     {
489 486
                         $retval[] = self::translate_nav(\trim($token));
490 487
                     }
@@ -524,8 +521,7 @@  discard block
 block discarded – undo
524 521
             {
525 522
                 $retval[] = \trim($item);
526 523
                 $item     = '';
527
-            }
528
-            else
524
+            } else
529 525
             {
530 526
                 $item .= $token;
531 527
             }
Please login to merge, or discard this patch.
src/AdvancedHtmlDom/AdvancedHtmlDom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             $html = \preg_replace('/xmlns=".*?"/ ', '', $html);
73 73
         }
74 74
 
75
-        $this->dom->loadHTML($html,LIBXML_NOWARNING | LIBXML_NOERROR);
75
+        $this->dom->loadHTML($html, LIBXML_NOWARNING | LIBXML_NOERROR);
76 76
         $this->xpath = new \DOMXPath($this->dom);
77 77
         //$this->root = new AHTMLNode($this->dom->documentElement, $this->doc);
78 78
         $this->root = $this->at('body');
Please login to merge, or discard this patch.