File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments