Skip to content

Commit e4761e7

Browse files
authored
Merge pull request #1 from bavix/scrutinizer-patch-1
Scrutinizer Auto-Fixes
2 parents 088ea99 + 55b0875 commit e4761e7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/AdvancedHtmlDom/AHTMLNode.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ public function decamelize($str)
8989
{
9090
$str = \preg_replace_callback(
9191
'/(^|[a-z])([A-Z])/',
92-
function ($matches) {
92+
function($matches) {
9393
return
9494
\strtolower(
9595
\strlen($matches[1])
96-
? $matches[1] . '_' . $matches[2] :
97-
$matches[2]
96+
? $matches[1] . '_' . $matches[2] : $matches[2]
9897
);
9998
},
10099
$str
@@ -133,7 +132,7 @@ public function flatten($key = null, $level = 1)
133132
if ($this->at('./preceding-sibling::' . $this->tag) || $this->at('./following-sibling::' . $this->tag) || ($key = $this->tag . 's'))
134133
{
135134
$count = $this->search('./preceding-sibling::' . $this->tag)->length + 1;
136-
$tag .= '_' . $count;
135+
$tag .= '_' . $count;
137136
}
138137

139138
if ($children->length == 0)

0 commit comments

Comments
 (0)