Completed
Push — master ( 349ff5...40080a )
by Jean-Christophe
03:11
created
Ajax/common/Widget.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Ajax/semantic/widgets/InstanceViewer.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,8 +12,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.