Completed
Push — master ( 32ad89...fdc0c0 )
by Jean-Christophe
03:20
created
Ajax/semantic/html/base/HtmlSemNavElement.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,10 +96,11 @@
 block discarded – undo
96 96
 
97 97
 	protected function setDivider($divider,$index){
98 98
 		if(isset($index)){
99
-			if(\is_array($this->_contentSeparator)===false)
100
-				$this->_contentSeparator=array_fill (0, $this->count()-1,$this->_contentSeparator);
99
+			if(\is_array($this->_contentSeparator)===false) {
100
+							$this->_contentSeparator=array_fill (0, $this->count()-1,$this->_contentSeparator);
101
+			}
101 102
 			$this->_contentSeparator[$index]=$divider;
102
-		}else{
103
+		} else{
103 104
 			$this->_contentSeparator=$divider;
104 105
 		}
105 106
 		return $this;
Please login to merge, or discard this patch.
Ajax/service/JArray.php 1 patch
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,15 +13,17 @@  discard block
 block discarded – undo
13 13
 			return $array [$key];
14 14
 		}
15 15
 		$values=array_values($array);
16
-		if ($pos<sizeof($values))
17
-			return $values [$pos];
16
+		if ($pos<sizeof($values)) {
17
+					return $values [$pos];
18
+		}
18 19
 	}
19 20
 
20 21
 	public static function getDefaultValue($array, $key, $default) {
21 22
 		if (array_key_exists($key, $array)) {
22 23
 			return $array [$key];
23
-		} else
24
-			return $default;
24
+		} else {
25
+					return $default;
26
+		}
25 27
 	}
26 28
 
27 29
 	public static function implode($glue,$pieces){
@@ -34,7 +36,7 @@  discard block
 block discarded – undo
34 36
 				}
35 37
 				$result.=$pieces[$size-1];
36 38
 			}
37
-		}else{
39
+		} else{
38 40
 			$result=\implode($glue, $pieces);
39 41
 		}
40 42
 		return $result;
Please login to merge, or discard this patch.
Ajax/JsUtils.php 1 patch
Braces   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,8 +50,9 @@  discard block
 block discarded – undo
50 50
 
51 51
 	protected function _setDi($di) {
52 52
 		$this->_di=$di;
53
-		if ($this->js!=null&&$di!=null)
54
-			$this->js->setDi($di);
53
+		if ($this->js!=null&&$di!=null) {
54
+					$this->js->setDi($di);
55
+		}
55 56
 	}
56 57
 
57 58
 	/**
@@ -1130,12 +1131,14 @@  discard block
 block discarded – undo
1130 1131
 					$result[1]=$cdn;
1131 1132
 					break;
1132 1133
 				case "Ajax\lib\CDNCoreCss":
1133
-					if($cdn->getFramework()==="Bootstrap")
1134
-						$hasBootstrap=true;
1135
-					elseif($cdn->getFramework()==="Semantic")
1136
-						$hasSemantic=true;
1137
-					if($hasSemantic || $hasBootstrap)
1138
-						$result[2]=$cdn;
1134
+					if($cdn->getFramework()==="Bootstrap") {
1135
+											$hasBootstrap=true;
1136
+					} elseif($cdn->getFramework()==="Semantic") {
1137
+											$hasSemantic=true;
1138
+					}
1139
+					if($hasSemantic || $hasBootstrap) {
1140
+											$result[2]=$cdn;
1141
+					}
1139 1142
 					break;
1140 1143
 			}
1141 1144
 		}
Please login to merge, or discard this patch.