Completed
Push — master ( 73e21a...085edf )
by Jean-Christophe
04:37
created
Ajax/bootstrap/html/HtmlBreadcrumbs.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
 		if(is_array($element)){
68 68
 			$elm=new HtmlLink("lnk-".$this->identifier."-".$size);
69 69
 			$elm->fromArray($element);
70
-		}else if($element instanceof HtmlLink){
70
+		} else if($element instanceof HtmlLink){
71 71
 			$elm=$element;
72
-		}else{
72
+		} else{
73 73
 			$elm=new HtmlLink("lnk-".$this->identifier."-".$size,$href,$element);
74 74
 			if(isset($glyph)){
75 75
 				$elm->wrapContentWithGlyph($glyph);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 		}
117 117
 		if($this->absolutePaths===true){
118 118
 			return $this->_hrefFunction($this->content[$index]);
119
-		}else{
119
+		} else{
120 120
 			return $this->root.implode($separator, array_slice(array_map(function($e){return $this->_hrefFunction($e);}, $this->content),0,$index+1));
121 121
 		}
122 122
 	}
Please login to merge, or discard this patch.
Ajax/bootstrap/html/content/HtmlGridRow.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Ajax\bootstrap\html\base\CssSize;
5 5
 use Ajax\JsUtils;
6
-
7 6
 use Ajax\bootstrap\html\base\HtmlBsDoubleElement;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlCarousel.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Ajax\bootstrap\html\base\CssRef;
8 8
 use Ajax\bootstrap\html\base\HtmlBsDoubleElement;
9 9
 use Ajax\bootstrap\html\content\HtmlCarouselItem;
10
-
11 10
 use Ajax\common\html\BaseHtml;
12 11
 /**
13 12
  * Composant Twitter Bootstrap Carousel
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlForm.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Ajax\bootstrap\html\base\HtmlBsDoubleElement;
6 6
 use Ajax\JsUtils;
7
-
8 7
 use Ajax\common\html\html5\HtmlSelect;
9 8
 
10 9
 class HtmlForm extends HtmlBsDoubleElement {
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlProgressbar.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Ajax\bootstrap\html\base\HtmlBsDoubleElement;
6 6
 use Ajax\JsUtils;
7
-
8 7
 use Ajax\bootstrap\html\base\CssRef;
9 8
 use Ajax\service\JArray;
10 9
 
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormFields.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Ajax\semantic\html\base\HtmlSemCollection;
6 6
 use Ajax\semantic\html\base\constants\Wide;
7 7
 use Ajax\JsUtils;
8
-
9 8
 use Ajax\semantic\html\base\HtmlSemDoubleElement;
10 9
 use Ajax\semantic\html\collections\form\traits\FieldsTrait;
11 10
 
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlBreadcrumb.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Ajax\semantic\html\base\HtmlSemNavElement;
6 6
 use Ajax\semantic\html\base\HtmlSemDoubleElement;
7
-
8 7
 use Ajax\semantic\html\elements\HtmlIcon;
9 8
 use Ajax\JsUtils;
10 9
 
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlTable.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Ajax\semantic\html\content\table\HtmlTableContent;
7 7
 use Ajax\semantic\html\base\constants\Variation;
8 8
 use Ajax\JsUtils;
9
-
10 9
 use Ajax\service\JArray;
11 10
 
12 11
 /**
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlAbsractItem.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Ajax\semantic\html\base\HtmlSemDoubleElement;
6 6
 use Ajax\semantic\html\elements\HtmlIcon;
7 7
 use Ajax\JsUtils;
8
-
9 8
 use Ajax\service\JArray;
10 9
 use Ajax\semantic\html\elements\html5\HtmlImg;
11 10
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,9 @@  discard block
 block discarded – undo
60 60
 
61 61
 	public function asLink($href=NULL,$part=NULL){
62 62
 		$this->setTagName("a");
63
-		if(isset($href))
64
-			$this->setProperty("href", $href);
63
+		if(isset($href)) {
64
+					$this->setProperty("href", $href);
65
+		}
65 66
 		return $this;
66 67
 	}
67 68
 
@@ -72,8 +73,9 @@  discard block
 block discarded – undo
72 73
 	 * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile()
73 74
 	 */
74 75
 	public function compile(JsUtils $js=NULL, $view=NULL) {
75
-		if(\is_array($this->content))
76
-			$this->content=JArray::sortAssociative($this->content, [ "icon","image","content" ]);
76
+		if(\is_array($this->content)) {
77
+					$this->content=JArray::sortAssociative($this->content, [ "icon","image","content" ]);
78
+		}
77 79
 		return parent::compile($js, $view);
78 80
 	}
79 81
 }
80 82
\ No newline at end of file
Please login to merge, or discard this patch.