Passed
Push — master ( 91b486...b6fcc1 )
by Бабичев
06:36 queued 02:56
created
src/AdvancedHtmlDom/AHTMLNode.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,12 +89,11 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $str = \preg_replace_callback(
91 91
             '/(^|[a-z])([A-Z])/',
92
-            function ($matches) {
92
+            function($matches) {
93 93
                 return
94 94
                     \strtolower(
95 95
                         \strlen($matches[1])
96
-                            ? $matches[1] . '_' . $matches[2] :
97
-                            $matches[2]
96
+                            ? $matches[1] . '_' . $matches[2] : $matches[2]
98 97
                     );
99 98
             },
100 99
             $str
@@ -133,7 +132,7 @@  discard block
 block discarded – undo
133 132
         if ($this->at('./preceding-sibling::' . $this->tag) || $this->at('./following-sibling::' . $this->tag) || ($key = $this->tag . 's'))
134 133
         {
135 134
             $count = $this->search('./preceding-sibling::' . $this->tag)->length + 1;
136
-            $tag   .= '_' . $count;
135
+            $tag .= '_' . $count;
137 136
         }
138 137
 
139 138
         if ($children->length == 0)
Please login to merge, or discard this patch.