@@ -387,7 +387,7 @@ |
||
| 387 | 387 | |
| 388 | 388 | return (string) preg_replace_callback( |
| 389 | 389 | '/(^|[^\p{L}\'])([\p{Ll}])/u', |
| 390 | - function ($matches) { |
|
| 390 | + function($matches) { |
|
| 391 | 391 | return $matches[1] . ucfirst($matches[2]); |
| 392 | 392 | }, |
| 393 | 393 | ucwords($variable) |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | } else { |
| 121 | 121 | $first = reset($variable); |
| 122 | 122 | if ($first !== false && is_array($first) && array_key_exists($property, $first)) { |
| 123 | - uasort($variable, function ($a, $b) use ($property) { |
|
| 123 | + uasort($variable, function($a, $b) use ($property) { |
|
| 124 | 124 | return $a[$property] <=> $b[$property]; |
| 125 | 125 | }); |
| 126 | 126 | } |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | return $variable; |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - return array_map(function ($element) use ($property) { |
|
| 177 | + return array_map(function($element) use ($property) { |
|
| 178 | 178 | if (is_callable($element)) { |
| 179 | 179 | return $element(); |
| 180 | 180 | } elseif (is_array($element) && array_key_exists($property, $element)) { |
@@ -196,8 +196,8 @@ discard block |
||
| 196 | 196 | 'index0' => $index, |
| 197 | 197 | 'rindex' => $length - $index, |
| 198 | 198 | 'rindex0' => $length - $index - 1, |
| 199 | - 'first' => ((int)$index === 0), |
|
| 200 | - 'last' => ((int)$index === ($length - 1)), |
|
| 199 | + 'first' => ((int) $index === 0), |
|
| 200 | + 'last' => ((int) $index === ($length - 1)), |
|
| 201 | 201 | ]); |
| 202 | 202 | |
| 203 | 203 | $result .= $this->renderAll($this->nodeList, $context); |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | $offset = 0; |
| 247 | 247 | if (isset($this->attributes['offset'])) { |
| 248 | 248 | $forRegister = $context->getRegister('for'); |
| 249 | - $offset = ($this->attributes['offset'] === 'continue') |
|
| 249 | + $offset = ($this->attributes['offset'] === 'continue') |
|
| 250 | 250 | ? (isset($forRegister[$this->name]) |
| 251 | 251 | ? (int) $forRegister[$this->name] |
| 252 | 252 | : 0) |
@@ -283,8 +283,8 @@ discard block |
||
| 283 | 283 | 'index0' => $index, |
| 284 | 284 | 'rindex' => $length - $index, |
| 285 | 285 | 'rindex0' => $length - $index - 1, |
| 286 | - 'first' => ((int)$index === 0), |
|
| 287 | - 'last' => ((int)$index === ($length - 1)), |
|
| 286 | + 'first' => ((int) $index === 0), |
|
| 287 | + 'last' => ((int) $index === ($length - 1)), |
|
| 288 | 288 | ]); |
| 289 | 289 | |
| 290 | 290 | $result .= $this->renderAll($this->nodeList, $context); |