@@ -37,9 +37,10 @@ |
||
37 | 37 | public function compile($internal = false) { |
38 | 38 | if($this->style!=null){ |
39 | 39 | parent::compile($internal); |
40 | - }else { |
|
41 | - if ($internal === false && $this->autoCompile === true) |
|
42 | - throw new \Exception("Impossible to compile if autoCompile is set to 'true'"); |
|
40 | + } else { |
|
41 | + if ($internal === false && $this->autoCompile === true) { |
|
42 | + throw new \Exception("Impossible to compile if autoCompile is set to 'true'"); |
|
43 | + } |
|
43 | 44 | $style=$this->style; |
44 | 45 | foreach ($this->components as $component) { |
45 | 46 | $component->addToProperty("class", $style); |