Passed
Push — master ( 8412f6...d463f7 )
by Jean-Christophe
02:28
created
Ajax/common/Widget.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -291,8 +291,9 @@  discard block
 block discarded – undo
291 291
 	 */
292 292
 	public function addItemInToolbar($caption, $icon = NULL, $callback = NULL) {
293 293
 		$result = $this->addInToolbar($caption, $callback);
294
-		if (isset($icon) && method_exists($result, "addIcon"))
295
-			$result->addIcon($icon);
294
+		if (isset($icon) && method_exists($result, "addIcon")) {
295
+					$result->addIcon($icon);
296
+		}
296 297
 		return $result;
297 298
 	}
298 299
 
@@ -481,8 +482,9 @@  discard block
 block discarded – undo
481 482
 	protected function _compileForm() {
482 483
 		if (isset($this->_form)) {
483 484
 			$noValidate = "";
484
-			if (\sizeof($this->_form->getValidationParams()) > 0)
485
-				$noValidate = "novalidate";
485
+			if (\sizeof($this->_form->getValidationParams()) > 0) {
486
+							$noValidate = "novalidate";
487
+			}
486 488
 			$this->wrapContent("<form class='" . $this->_form->getProperty('class') . "' id='frm-" . $this->identifier . "' name='frm-" . $this->identifier . "' " . $noValidate . ">", "</form>");
487 489
 		}
488 490
 	}
Please login to merge, or discard this patch.