Completed
Push — master ( 59f1c7...d6d0c3 )
by Jean-Christophe
04:08
created
Ajax/semantic/html/elements/HtmlHeader.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@  discard block
 block discarded – undo
10 10
 use Ajax\semantic\html\base\traits\AttachedTrait;
11 11
 
12 12
 class HtmlHeader extends HtmlSemDoubleElement {
13
-	use TextAlignmentTrait,AttachedTrait;
13
+	use TextAlignmentTrait, AttachedTrait;
14 14
 	protected $image;
15 15
 
16 16
 	public function __construct($identifier, $niveau=1, $content=NULL, $type="page") {
17 17
 		parent::__construct($identifier, "div", "ui header");
18 18
 		$this->_template="<%tagName% %properties%>%image%%wrapContentBefore%%content%%wrapContentAfter%</%tagName%>";
19 19
 		if (isset($type)) {
20
-			if ($type == "page") {
20
+			if ($type=="page") {
21 21
 				$this->asPageHeader($niveau);
22 22
 			} else
23 23
 				$this->asContentHeader($niveau);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	}
27 27
 
28 28
 	public function asPageHeader($niveau) {
29
-		$this->tagName="h" . $niveau;
29
+		$this->tagName="h".$niveau;
30 30
 	}
31 31
 
32 32
 	public function asContentHeader($niveau) {
@@ -39,25 +39,25 @@  discard block
 block discarded – undo
39 39
 
40 40
 	public function asIcon($icon, $title, $subHeader=NULL) {
41 41
 		$this->addToProperty("class", "icon");
42
-		$this->image=new HtmlIcon("icon-" . $this->identifier, $icon);
42
+		$this->image=new HtmlIcon("icon-".$this->identifier, $icon);
43 43
 		return $this->asTitle($title, $subHeader);
44 44
 	}
45 45
 
46 46
 	public function asImage($src, $title, $subHeader=NULL) {
47
-		$this->image=new HtmlImg("img-" . $this->identifier, $src, $title);
47
+		$this->image=new HtmlImg("img-".$this->identifier, $src, $title);
48 48
 		return $this->asTitle($title, $subHeader);
49 49
 	}
50 50
 
51 51
 	public function asTitle($title, $subHeader=NULL) {
52 52
 		if (!\is_object($title)) {
53
-			$this->content=new HtmlDoubleElement("content-" . $this->identifier, "div");
53
+			$this->content=new HtmlDoubleElement("content-".$this->identifier, "div");
54 54
 			$this->content->setContent($title);
55 55
 		} else {
56 56
 			$this->content=$title;
57 57
 		}
58 58
 		$this->content->setClass("content");
59 59
 		if (isset($subHeader)) {
60
-			$sub=new HtmlDoubleElement("subheader-" . $this->identifier, "div");
60
+			$sub=new HtmlDoubleElement("subheader-".$this->identifier, "div");
61 61
 			$sub->setClass("sub header");
62 62
 			$sub->setContent($subHeader);
63 63
 			$this->content->addContent($sub);
Please login to merge, or discard this patch.