Completed
Push — master ( b9a8b8...3e8704 )
by Jean-Christophe
03:43
created
Ajax/Semantic.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 			foreach ($icons as $icon=>$size){
37 37
 				$group->addIcon($icon,$size);
38 38
 			}
39
-		}else{
39
+		} else{
40 40
 			foreach ($icons as $icon){
41 41
 				$group->addIcon($icon);
42 42
 			}
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlProgressbar.php 1 patch
Braces   +21 added lines, -17 removed lines patch added patch discarded remove patch
@@ -33,11 +33,12 @@  discard block
 block discarded – undo
33 33
 			foreach ($this->content as $pb){
34 34
 				$pb->setActive($value);
35 35
 			}
36
-		}else{
37
-			if ($value===true)
38
-				$this->active="active";
39
-			else
40
-				$this->active="";
36
+		} else{
37
+			if ($value===true) {
38
+							$this->active="active";
39
+			} else {
40
+							$this->active="";
41
+			}
41 42
 		}
42 43
 		return $this;
43 44
 	}
@@ -47,11 +48,12 @@  discard block
 block discarded – undo
47 48
 			foreach ($this->content as $pb){
48 49
 				$pb->setStriped($value);
49 50
 			}
50
-		}else{
51
-			if ($value===true)
52
-				$this->striped="progress-bar-striped";
53
-			else
54
-				$this->striped="";
51
+		} else{
52
+			if ($value===true) {
53
+							$this->striped="progress-bar-striped";
54
+			} else {
55
+							$this->striped="";
56
+			}
55 57
 		}
56 58
 		return $this;
57 59
 	}
@@ -61,11 +63,12 @@  discard block
 block discarded – undo
61 63
 			foreach ($this->content as $pb){
62 64
 				$pb->showCaption($value);
63 65
 			}
64
-		}else{
65
-			if ($value===true)
66
-				$this->caption="%value%%";
67
-			else
68
-				$this->caption='<span class="sr-only">%value%% Complete (%style%)</span>';
66
+		} else{
67
+			if ($value===true) {
68
+							$this->caption="%value%%";
69
+			} else {
70
+							$this->caption='<span class="sr-only">%value%% Complete (%style%)</span>';
71
+			}
69 72
 		}
70 73
 		return $this;
71 74
 	}
@@ -137,8 +140,9 @@  discard block
 block discarded – undo
137 140
 		if(isset($this->styleLimits)&& JArray::isAssociative($this->styleLimits)){
138 141
 			foreach ($this->styleLimits as $k=>$v){
139 142
 				$actualStyle=$k;
140
-				if($v>$this->value)
141
-					break;
143
+				if($v>$this->value) {
144
+									break;
145
+				}
142 146
 			}
143 147
 		}
144 148
 		$this->style=$actualStyle;
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlBreadcrumbs.php 1 patch
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
 		if(is_array($element)){
66 66
 			$elm=new HtmlLink("lnk-".$this->identifier."-".$size);
67 67
 			$elm->fromArray($element);
68
-		}else if($element instanceof HtmlLink){
68
+		} else if($element instanceof HtmlLink){
69 69
 			$elm=$element;
70
-		}else{
70
+		} else{
71 71
 			$elm=new HtmlLink("lnk-".$this->identifier."-".$size,$href,$element);
72 72
 			if(isset($glyph)){
73 73
 				$elm->wrapContentWithGlyph($glyph);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 		}
115 115
 		if($this->absolutePaths===true){
116 116
 			return $this->_hrefFunction($this->content[$index]);
117
-		}else{
117
+		} else{
118 118
 			return $this->root.implode($separator, array_slice(array_map(function($e){return $this->_hrefFunction($e);}, $this->content),$this->startIndex,$index+1));
119 119
 		}
120 120
 	}
@@ -204,8 +204,9 @@  discard block
 block discarded – undo
204 204
 		if(\sizeof($params)>0 || \strtolower($action)!="index" ){
205 205
 			$items[]=$action;
206 206
 			foreach ($params as $p){
207
-				if(\is_object($p)==false)
208
-				$items[]=$p;
207
+				if(\is_object($p)==false) {
208
+								$items[]=$p;
209
+				}
209 210
 			}
210 211
 		}
211 212
 		return $this->addElements($items);
Please login to merge, or discard this patch.
Ajax/common/html/HtmlDoubleElement.php 1 patch
Braces   +10 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,15 +29,17 @@
 block discarded – undo
29 29
 
30 30
 	public function addContent($content,$before=false) {
31 31
 		if (is_array($this->content)===false) {
32
-			if(isset($this->content))
33
-				$this->content=array ($this->content);
34
-			else
35
-				$this->content=array();
32
+			if(isset($this->content)) {
33
+							$this->content=array ($this->content);
34
+			} else {
35
+							$this->content=array();
36
+			}
37
+		}
38
+		if($before) {
39
+					array_unshift($this->content,$content);
40
+		} else {
41
+					$this->content []=$content;
36 42
 		}
37
-		if($before)
38
-			array_unshift($this->content,$content);
39
-		else
40
-			$this->content []=$content;
41 43
 		return $this;
42 44
 	}
43 45
 
Please login to merge, or discard this patch.
Ajax/semantic/html/HtmlIcon.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,8 +92,9 @@  discard block
 block discarded – undo
92 92
 
93 93
 	public function setCircular($inverted=false){
94 94
 		$invertedStr="";
95
-		if($inverted)
96
-			$invertedStr=" inverted";
95
+		if($inverted) {
96
+					$invertedStr=" inverted";
97
+		}
97 98
 		return $this->addToMember($this->attributes, "circular".$invertedStr);
98 99
 	}
99 100
 
@@ -110,8 +111,9 @@  discard block
 block discarded – undo
110 111
 	 */
111 112
 	public function setBordered($inverted=false){
112 113
 		$invertedStr="";
113
-		if($inverted)
114
-			$invertedStr=" inverted";
114
+		if($inverted) {
115
+					$invertedStr=" inverted";
116
+		}
115 117
 			return $this->addToMember($this->attributes, "bordered".$invertedStr);
116 118
 	}
117 119
 
Please login to merge, or discard this patch.