@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | $children = array(); |
| 358 | - foreach ((array)$element['children'] as $child) { |
|
| 358 | + foreach ((array) $element['children'] as $child) { |
|
| 359 | 359 | $children[] = $this->getInstance($child, $parameters); |
| 360 | 360 | } |
| 361 | 361 | |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | |
| 418 | 418 | $current = $this->replaceParameters($current, $parameters); |
| 419 | 419 | |
| 420 | - foreach ((array)$current['extends'] as $extend) { |
|
| 420 | + foreach ((array) $current['extends'] as $extend) { |
|
| 421 | 421 | $extend = $this->resolveElement($extend, $parameters); |
| 422 | 422 | $current = $this->extendElement($extend, $current); |
| 423 | 423 | } |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | |
| 491 | 491 | foreach ($this->checks as $check) { |
| 492 | 492 | if (isset($current[$check])) { |
| 493 | - $currentCheck = (array)$current[$check]; |
|
| 493 | + $currentCheck = (array) $current[$check]; |
|
| 494 | 494 | |
| 495 | 495 | if (in_array($name, $currentCheck)) { |
| 496 | 496 | throw new InvalidElementException(sprintf( |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | |
| 558 | 558 | if (is_string($value)) { |
| 559 | 559 | foreach ($parameters as $parameter => $replace) { |
| 560 | - $value = str_replace('%' . $parameter . '%', $replace, $value); |
|
| 560 | + $value = str_replace('%'.$parameter.'%', $replace, $value); |
|
| 561 | 561 | } |
| 562 | 562 | |
| 563 | 563 | $element[$key] = $value; |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | { |
| 597 | 597 | foreach ($from as $key => $value) { |
| 598 | 598 | if (in_array($key, $this->mergeableAttributes) && isset($to[$key])) { |
| 599 | - $to[$key] = array_merge((array)$to[$key], (array)$value); |
|
| 599 | + $to[$key] = array_merge((array) $to[$key], (array) $value); |
|
| 600 | 600 | } elseif (!isset($to[$key])) { |
| 601 | 601 | $to[$key] = $value; |
| 602 | 602 | } elseif (is_array($value)) { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | public function __toString() |
| 35 | 35 | { |
| 36 | - return (string)$this->renderRoot(); |
|
| 36 | + return (string) $this->renderRoot(); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |