@@ -89,12 +89,11 @@ discard block |
||
| 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 |
||
| 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) |