Passed
Push — master ( 79b252...216091 )
by Jean-Christophe
03:27
created
Ajax/Semantic.php 3 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 	private $language;
18 18
 
19
-    private $style;
19
+	private $style;
20 20
 
21 21
 	public function __construct($autoCompile=true) {
22 22
 		parent::__construct($autoCompile);
@@ -34,25 +34,25 @@  discard block
 block discarded – undo
34 34
 		}
35 35
 	}
36 36
 
37
-    public function compile($internal = false) {
38
-        if($this->style!=null){
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'");
43
-            $style=$this->style;
44
-            foreach ($this->components as $component) {
45
-                $component->addToProperty("class", $style);
46
-                $component->compile();
47
-            }
48
-        }
49
-    }
50
-
51
-    public function setStyle($style='inverted'){
52
-        $this->style=$style;
53
-    }
54
-
55
-    public function getStyle(){
56
-        return $this->style;
57
-    }
37
+	public function compile($internal = false) {
38
+		if($this->style!=null){
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'");
43
+			$style=$this->style;
44
+			foreach ($this->components as $component) {
45
+				$component->addToProperty("class", $style);
46
+				$component->compile();
47
+			}
48
+		}
49
+	}
50
+
51
+	public function setStyle($style='inverted'){
52
+		$this->style=$style;
53
+	}
54
+
55
+	public function getStyle(){
56
+		return $this->style;
57
+	}
58 58
 }
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 use Ajax\semantic\traits\SemanticWidgetsTrait;
12 12
 
13 13
 class Semantic extends BaseGui {
14
-	use SemanticComponentsTrait,SemanticHtmlElementsTrait,SemanticHtmlCollectionsTrait,
15
-	SemanticHtmlModulesTrait,SemanticHtmlViewsTrait,SemanticWidgetsTrait;
14
+	use SemanticComponentsTrait, SemanticHtmlElementsTrait, SemanticHtmlCollectionsTrait,
15
+	SemanticHtmlModulesTrait, SemanticHtmlViewsTrait, SemanticWidgetsTrait;
16 16
 
17 17
 	private $language;
18 18
 
@@ -23,22 +23,22 @@  discard block
 block discarded – undo
23 23
 	}
24 24
 
25 25
 
26
-	public function setLanguage($language){
27
-		if($language!==$this->language){
26
+	public function setLanguage($language) {
27
+		if ($language!==$this->language) {
28 28
 			$file=\realpath(dirname(__FILE__)."/semantic/components/validation/languages/".$language.".js");
29
-			if(\file_exists($file)){
29
+			if (\file_exists($file)) {
30 30
 				$script=\file_get_contents($file);
31
-				$this->js->exec($script,true);
31
+				$this->js->exec($script, true);
32 32
 				$this->language=$language;
33 33
 			}
34 34
 		}
35 35
 	}
36 36
 
37
-    public function compile($internal = false) {
38
-        if($this->style!=null){
37
+    public function compile($internal=false) {
38
+        if ($this->style!=null) {
39 39
             parent::compile($internal);
40
-        }else {
41
-            if ($internal === false && $this->autoCompile === true)
40
+        } else {
41
+            if ($internal===false && $this->autoCompile===true)
42 42
                 throw new \Exception("Impossible to compile if autoCompile is set to 'true'");
43 43
             $style=$this->style;
44 44
             foreach ($this->components as $component) {
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
         }
49 49
     }
50 50
 
51
-    public function setStyle($style='inverted'){
51
+    public function setStyle($style='inverted') {
52 52
         $this->style=$style;
53 53
     }
54 54
 
55
-    public function getStyle(){
55
+    public function getStyle() {
56 56
         return $this->style;
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.