@@ -26,8 +26,9 @@ discard block |
||
| 26 | 26 | public function asIcon($icon, $title, $subHeader = NULL) { |
| 27 | 27 | $header = new HtmlHeader("header-" . $this->identifier); |
| 28 | 28 | $header->asIcon($icon, $title, $subHeader); |
| 29 | - if ($this->_inverted === false) |
|
| 30 | - $header->setInverted(); |
|
| 29 | + if ($this->_inverted === false) { |
|
| 30 | + $header->setInverted(); |
|
| 31 | + } |
|
| 31 | 32 | return $this->setContent($header); |
| 32 | 33 | } |
| 33 | 34 | |
@@ -51,8 +52,9 @@ discard block |
||
| 51 | 52 | } |
| 52 | 53 | |
| 53 | 54 | public function jsShow() { |
| 54 | - if (isset($this->_container)) |
|
| 55 | - return '$("#.' . $this->_container->getIdentifier() . ').dimmer("show");'; |
|
| 55 | + if (isset($this->_container)) { |
|
| 56 | + return '$("#.' . $this->_container->getIdentifier() . ').dimmer("show");'; |
|
| 57 | + } |
|
| 56 | 58 | } |
| 57 | 59 | |
| 58 | 60 | public function setBlurring() { |
@@ -45,8 +45,9 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function compile($internal = false) { |
| 48 | - if ($internal === false && $this->autoCompile === true) |
|
| 49 | - throw new \Exception("Impossible to compile if autoCompile is set to 'true'"); |
|
| 48 | + if ($internal === false && $this->autoCompile === true) { |
|
| 49 | + throw new \Exception("Impossible to compile if autoCompile is set to 'true'"); |
|
| 50 | + } |
|
| 50 | 51 | foreach ($this->components as $component) { |
| 51 | 52 | $component->compile(); |
| 52 | 53 | } |
@@ -69,9 +70,10 @@ discard block |
||
| 69 | 70 | $this->components[] = $component; |
| 70 | 71 | } |
| 71 | 72 | } |
| 72 | - if (isset($params)) |
|
| 73 | - if (\is_array($params)) |
|
| 73 | + if (isset($params)) { |
|
| 74 | + if (\is_array($params)) |
|
| 74 | 75 | $component->setParams($params); |
| 76 | + } |
|
| 75 | 77 | return $component; |
| 76 | 78 | } |
| 77 | 79 | |