Completed
Push — master ( b7a7dd...b1fd35 )
by Jean-Christophe
03:34
created
Ajax/semantic/html/elements/HtmlReveal.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 		}
24 24
 		if($content instanceof HtmlSemDoubleElement){
25 25
 			$content=new HtmlSemDoubleElement($this->identifier."-".$index,"div","",$content);
26
-		}elseif ($content instanceof HtmlImg){
26
+		} elseif ($content instanceof HtmlImg){
27 27
 			$this->addToPropertyCtrl("class", "image", array("image"));
28 28
 		}
29 29
 		$content->addToProperty("class",(($index===0)?"visible":"hidden")." content");
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlHeader.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,9 @@
 block discarded – undo
19 19
 		if (isset($type)) {
20 20
 			if ($type == "page") {
21 21
 				$this->asPageHeader($niveau);
22
-			} else
23
-				$this->asContentHeader($niveau);
22
+			} else {
23
+							$this->asContentHeader($niveau);
24
+			}
24 25
 		}
25 26
 		$this->content=$content;
26 27
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlAccordionItem.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,8 +31,9 @@  discard block
 block discarded – undo
31 31
 	protected function createTitleElement(){
32 32
 		$element=new HtmlSemDoubleElement("title-".$this->identifier,"div","title");
33 33
 		$element->setContent(array(new HtmlIcon("", $this->_icon),$this->_title));
34
-		if($this->_active===true)
35
-			$element->addToProperty("class", "active");
34
+		if($this->_active===true) {
35
+					$element->addToProperty("class", "active");
36
+		}
36 37
 		return $element;
37 38
 	}
38 39
 
@@ -43,10 +44,11 @@  discard block
 block discarded – undo
43 44
 
44 45
 	public function setActive($value=true){
45 46
 		$this->_active=$value;
46
-		if($value===true)
47
-			$this->addToPropertyCtrl("class", "active", array("active"));
48
-		else
49
-			$this->removePropertyValue("class", "active");
47
+		if($value===true) {
48
+					$this->addToPropertyCtrl("class", "active", array("active"));
49
+		} else {
50
+					$this->removePropertyValue("class", "active");
51
+		}
50 52
 		return $this;
51 53
 	}
52 54
 }
53 55
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/content/table/HtmlTR.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -105,17 +105,20 @@  discard block
 block discarded – undo
105 105
 			$max=\min($colIndex, $rows[$i]->count());
106 106
 			for($j=0; $j < $max; $j++) {
107 107
 				$rowspan=$rows[$i]->getItem($j)->getRowspan();
108
-				if ($rowspan + $i > $this->_row)
109
-					$pos++;
108
+				if ($rowspan + $i > $this->_row) {
109
+									$pos++;
110
+				}
110 111
 			}
111 112
 		}
112
-		if ($pos > $colIndex)
113
-			return NULL;
113
+		if ($pos > $colIndex) {
114
+					return NULL;
115
+		}
114 116
 		$count=$this->count();
115 117
 		for($i=0; $i < $count; $i++) {
116 118
 			$pos+=$this->content[$i]->getColspan();
117
-			if ($pos >= $colIndex + 1)
118
-				return $i;
119
+			if ($pos >= $colIndex + 1) {
120
+							return $i;
121
+			}
119 122
 		}
120 123
 		return null;
121 124
 	}
@@ -138,8 +141,9 @@  discard block
 block discarded – undo
138 141
 	public function containsStr($needle) {
139 142
 		$cells=$this->content;
140 143
 		foreach ( $cells as $cell ) {
141
-			if (\strpos($cell->getContent(), $needle) !== false)
142
-				return true;
144
+			if (\strpos($cell->getContent(), $needle) !== false) {
145
+							return true;
146
+			}
143 147
 		}
144 148
 		return false;
145 149
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/content/table/HtmlTD.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,15 +66,17 @@
 block discarded – undo
66 66
 
67 67
 	public function getColspan() {
68 68
 		$colspan=1;
69
-		if (\array_key_exists("colspan", $this->properties))
70
-			$colspan=$this->getProperty("colspan");
69
+		if (\array_key_exists("colspan", $this->properties)) {
70
+					$colspan=$this->getProperty("colspan");
71
+		}
71 72
 		return $colspan;
72 73
 	}
73 74
 
74 75
 	public function getRowspan() {
75 76
 		$rowspan=1;
76
-		if (\array_key_exists("rowspan", $this->properties))
77
-			$rowspan=$this->getProperty("rowspan");
77
+		if (\array_key_exists("rowspan", $this->properties)) {
78
+					$rowspan=$this->getProperty("rowspan");
79
+		}
78 80
 		return $rowspan;
79 81
 	}
80 82
 
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlGridRow.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,10 +29,11 @@
 block discarded – undo
29 29
 		if(isset($numCols)){
30 30
 			$numCols=min(16,$numCols);
31 31
 			$numCols=max(1,$numCols);
32
-			if($colSizing)
33
-				$width=(int)(16/$numCols);
34
-			else
35
-				$this->_colSize=16/$numCols;
32
+			if($colSizing) {
33
+							$width=(int)(16/$numCols);
34
+			} else {
35
+							$this->_colSize=16/$numCols;
36
+			}
36 37
 			for ($i=0;$i<$numCols;$i++){
37 38
 				$this->addItem($width);
38 39
 			}
Please login to merge, or discard this patch.
Ajax/bootstrap/components/Tabs.php 1 patch
Braces   +15 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,8 +36,9 @@  discard block
 block discarded – undo
36 36
 	}
37 37
 
38 38
 	public function getTab($index) {
39
-		if ($index>0&&$index<sizeof($this->tabs))
40
-			return $this->tabs [$index];
39
+		if ($index>0&&$index<sizeof($this->tabs)) {
40
+					return $this->tabs [$index];
41
+		}
41 42
 	}
42 43
 
43 44
 	public function show($index) {
@@ -53,8 +54,9 @@  discard block
 block discarded – undo
53 54
 	 */
54 55
 	public function onShow($index, $jsCode) {
55 56
 		$tab=$this->getTab($index);
56
-		if (isset($tab))
57
-			return $tab->onShow($jsCode);
57
+		if (isset($tab)) {
58
+					return $tab->onShow($jsCode);
59
+		}
58 60
 	}
59 61
 
60 62
 	/**
@@ -65,8 +67,9 @@  discard block
 block discarded – undo
65 67
 	 */
66 68
 	public function onShown($index, $jsCode) {
67 69
 		$tab=$this->getTab($index);
68
-		if (isset($tab))
69
-			return $tab->onShown($jsCode);
70
+		if (isset($tab)) {
71
+					return $tab->onShown($jsCode);
72
+		}
70 73
 	}
71 74
 
72 75
 	/**
@@ -77,8 +80,9 @@  discard block
 block discarded – undo
77 80
 	 */
78 81
 	public function onHide($index, $jsCode) {
79 82
 		$tab=$this->getTab($index);
80
-		if (isset($tab))
81
-			return $tab->onShow($jsCode);
83
+		if (isset($tab)) {
84
+					return $tab->onShow($jsCode);
85
+		}
82 86
 	}
83 87
 
84 88
 	/**
@@ -89,7 +93,8 @@  discard block
 block discarded – undo
89 93
 	 */
90 94
 	public function onHidden($index, $jsCode) {
91 95
 		$tab=$this->getTab($index);
92
-		if (isset($tab))
93
-			return $tab->onShow($jsCode);
96
+		if (isset($tab)) {
97
+					return $tab->onShow($jsCode);
98
+		}
94 99
 	}
95 100
 }
96 101
\ No newline at end of file
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/HtmlForm.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,9 @@
 block discarded – undo
99 99
 	}
100 100
 
101 101
 	public function addGroup($identifier="") {
102
-		if ($identifier==="")
103
-			$identifier="form-".$this->identifier;
102
+		if ($identifier==="") {
103
+					$identifier="form-".$this->identifier;
104
+		}
104 105
 		$group=new HtmlBsDoubleElement($identifier);
105 106
 		$group->setTagName("div");
106 107
 		$group->setClass("form-group");
Please login to merge, or discard this patch.