@@ -13,7 +13,7 @@ |
||
13 | 13 | $viewVars=$view->viewVars; |
14 | 14 | if (isset($viewVars["q"]) === false) { |
15 | 15 | $controls=array (); |
16 | - }else{ |
|
16 | + } else{ |
|
17 | 17 | $controls=$viewVars["q"]; |
18 | 18 | } |
19 | 19 | $controls[$identifier]=$content; |
@@ -12,8 +12,9 @@ discard block |
||
12 | 12 | |
13 | 13 | public function __construct($instance=NULL,$captions=NULL){ |
14 | 14 | $this->values=[]; |
15 | - if(isset($instance)) |
|
16 | - $this->setInstance($instance); |
|
15 | + if(isset($instance)) { |
|
16 | + $this->setInstance($instance); |
|
17 | + } |
|
17 | 18 | $this->setCaptions($captions); |
18 | 19 | } |
19 | 20 | |
@@ -75,10 +76,11 @@ discard block |
||
75 | 76 | foreach ($properties as $property){ |
76 | 77 | $showable=$this->showableProperty($property); |
77 | 78 | if($showable!==false){ |
78 | - if(\is_int($showable)) |
|
79 | - $this->properties[$showable]=$property; |
|
80 | - else |
|
81 | - $this->properties[]=$property; |
|
79 | + if(\is_int($showable)) { |
|
80 | + $this->properties[$showable]=$property; |
|
81 | + } else { |
|
82 | + $this->properties[]=$property; |
|
83 | + } |
|
82 | 84 | } |
83 | 85 | } |
84 | 86 | return $this; |