Passed
Push — master ( e7448c...858380 )
by Jean-Christophe
01:44
created
Ajax/common/BaseGui.php 1 patch
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,8 +42,9 @@  discard block
 block discarded – undo
42 42
 	}
43 43
 
44 44
 	public function compile($internal=false) {
45
-		if ($internal===false&&$this->autoCompile===true)
46
-			throw new \Exception("Impossible to compile if autoCompile is set to 'true'");
45
+		if ($internal===false&&$this->autoCompile===true) {
46
+					throw new \Exception("Impossible to compile if autoCompile is set to 'true'");
47
+		}
47 48
 		foreach ( $this->components as $component ) {
48 49
 			$component->compile();
49 50
 		}
@@ -60,13 +61,14 @@  discard block
 block discarded – undo
60 61
 					$this->components [$attachTo]=$component;
61 62
 				}
62 63
 				$component->attach($attachTo);
63
-			}else{
64
+			} else{
64 65
 				$this->components []=$component;
65 66
 			}
66 67
 		}
67
-		if (isset($params))
68
-			if (\is_array($params))
68
+		if (isset($params)) {
69
+					if (\is_array($params))
69 70
 				$component->setParams($params);
71
+		}
70 72
 		return $component;
71 73
 	}
72 74
 
Please login to merge, or discard this patch.