Completed
Push — master ( b0560a...f1cdc4 )
by Jean-Christophe
03:54
created
Ajax/semantic/html/collections/form/HtmlForm.php 1 patch
Braces   +18 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,8 +29,9 @@  discard block
 block discarded – undo
29 29
 
30 30
 	public function addHeader($title, $niveau=1, $dividing=true) {
31 31
 		$header=new HtmlHeader("", $niveau, $title);
32
-		if ($dividing)
33
-			$header->setDividing();
32
+		if ($dividing) {
33
+					$header->setDividing();
34
+		}
34 35
 		return $this->addItem($header);
35 36
 	}
36 37
 
@@ -43,14 +44,16 @@  discard block
 block discarded – undo
43 44
 					if (\is_string($end)) {
44 45
 						$label=$end;
45 46
 						\array_pop($fields);
46
-					} else
47
-						$label=NULL;
47
+					} else {
48
+											$label=NULL;
49
+					}
48 50
 				}
49 51
 				$this->_fields=\array_merge($this->_fields, $fields);
50 52
 				$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count(), $fields);
51 53
 			}
52
-			if (isset($label))
53
-				$fields=new HtmlFormField("", $fields, $label);
54
+			if (isset($label)) {
55
+							$fields=new HtmlFormField("", $fields, $label);
56
+			}
54 57
 		} else {
55 58
 			$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count());
56 59
 		}
@@ -103,12 +106,15 @@  discard block
 block discarded – undo
103 106
 	 */
104 107
 	public function addMessage($identifier, $content, $header=NULL, $icon=NULL, $type=NULL) {
105 108
 		$message=new HtmlMessage($identifier, $content);
106
-		if (isset($header))
107
-			$message->addHeader($header);
108
-		if (isset($icon))
109
-			$message->setIcon($icon);
110
-		if (isset($type))
111
-			$message->setStyle($type);
109
+		if (isset($header)) {
110
+					$message->addHeader($header);
111
+		}
112
+		if (isset($icon)) {
113
+					$message->setIcon($icon);
114
+		}
115
+		if (isset($type)) {
116
+					$message->setStyle($type);
117
+		}
112 118
 		return $this->addItem($message);
113 119
 	}
114 120
 
Please login to merge, or discard this patch.
Ajax/semantic/html/base/HtmlSemDoubleElement.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@  discard block
 block discarded – undo
27 27
 	}
28 28
 
29 29
 	public function setPopupAttributes($variation=NULL, $popupEvent=NULL) {
30
-		if (isset($this->_popup))
31
-			$this->_popup->setAttributes($variation, $popupEvent);
30
+		if (isset($this->_popup)) {
31
+					$this->_popup->setAttributes($variation, $popupEvent);
32
+		}
32 33
 	}
33 34
 
34 35
 	public function addPopup($title="", $content="", $variation=NULL, $params=array()) {
@@ -44,8 +45,9 @@  discard block
 block discarded – undo
44 45
 	}
45 46
 
46 47
 	public function compile(JsUtils $js=NULL, View $view=NULL) {
47
-		if (isset($this->_popup))
48
-			$this->_popup->compile();
48
+		if (isset($this->_popup)) {
49
+					$this->_popup->compile();
50
+		}
49 51
 		return parent::compile($js, $view);
50 52
 	}
51 53
 
Please login to merge, or discard this patch.