Completed
Push — master ( 5df1fc...70601d )
by Jean-Christophe
03:41
created
Ajax/semantic/html/collections/menus/HtmlMenu.php 1 patch
Braces   +11 added lines, -9 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
 			$item=$itemO;
58 58
 		}
59 59
 		$item=parent::addItem($item);
60
-		if(!$item instanceof HtmlMenu)
61
-			$item->addToPropertyCtrl("class", "item",array("item"));
62
-		else{
60
+		if(!$item instanceof HtmlMenu) {
61
+					$item->addToPropertyCtrl("class", "item",array("item"));
62
+		} else{
63 63
 			$this->setSecondary();
64 64
 		}
65 65
 		return $item;
@@ -129,8 +129,9 @@  discard block
 block discarded – undo
129 129
 
130 130
 	public function asTab($vertical=false){
131 131
 		$this->apply(function(HtmlDoubleElement &$item){$item->setTagName("a");});
132
-		if($vertical===true)
133
-			$this->setVertical();
132
+		if($vertical===true) {
133
+					$this->setVertical();
134
+		}
134 135
 		return $this->addToProperty("class", "tabular");
135 136
 	}
136 137
 
@@ -156,10 +157,11 @@  discard block
 block discarded – undo
156 157
 	 */
157 158
 	public function fromDatabaseObject($object, $function) {
158 159
 		$return=$function($object);
159
-		if(\is_array($return))
160
-			$this->addItems($return);
161
-		else
162
-		$this->addItem($return);
160
+		if(\is_array($return)) {
161
+					$this->addItems($return);
162
+		} else {
163
+				$this->addItem($return);
164
+		}
163 165
 	}
164 166
 
165 167
 	/**
Please login to merge, or discard this patch.