Completed
Push — master ( 5b3666...b3a3fe )
by Jean-Christophe
04:35
created
Ajax/bootstrap/html/content/HtmlDropdownItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 		$glyph->setGlyphicon($glyphicon);
150 150
 		if ($left) {
151 151
 			$this->content=$glyph->compile().$separator.$this->content;
152
-		} else {
152
+		}else {
153 153
 			$this->content.=$separator.$glyph->compile();
154 154
 		}
155 155
 		return $this;
Please login to merge, or discard this patch.
Ajax/bootstrap/html/content/HtmlListgroupItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 		$element=new HtmlDoubleElement("", "p");
72 72
 		$element->setContent($content);
73 73
 		$element->setClass("list-group-item-text");
74
-		$this->element->setContent(array (
74
+		$this->element->setContent(array(
75 75
 				$elementHeader,
76 76
 				$element
77 77
 		));
Please login to merge, or discard this patch.
Ajax/bootstrap/html/content/HtmlNavzone.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		parent::__construct($identifier);
28 28
 		$this->tagName="ul";
29 29
 		$this->_template='<%tagName% class="nav navbar-nav %class%">%elements%</%tagName%>';
30
-		$this->elements=array ();
30
+		$this->elements=array();
31 31
 	}
32 32
 
33 33
 	public function setClass($value) {
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
 	}
36 36
 
37 37
 	public function addElement($element) {
38
-		if($element instanceof HtmlLink){
38
+		if ($element instanceof HtmlLink) {
39 39
 			$this->addLink($element);
40
-		} else if (is_object($element)) {
40
+		}else if (is_object($element)) {
41 41
 			$this->elements []=$element;
42
-		} else if (is_array($element)) {
42
+		}else if (is_array($element)) {
43 43
 			$this->addLink(array_pop($element), array_pop($element));
44
-		} else {
44
+		}else {
45 45
 			$this->addLink($element);
46 46
 		}
47 47
 	}
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
 	public function addElements($elements) {
57 57
 		if (is_array($elements)) {
58
-			foreach ( $elements as $key => $element ) {
58
+			foreach ($elements as $key => $element) {
59 59
 				$iid=$this->getElementsCount()+1;
60 60
 				if ($element instanceof HtmlDropdownItem)
61 61
 					$this->elements []=$element;
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
 						$dropdown->setBtnCaption($key);
67 67
 						$dropdown->setMTagName("li");
68 68
 						$this->addElement($dropdown);
69
-					} else {
69
+					}else {
70 70
 						$this->addLink(array_pop($element), array_pop($element));
71 71
 					}
72
-				} else if (is_object($element)) {
72
+				}else if (is_object($element)) {
73 73
 					$this->addElement($element);
74
-				} else if (is_string($element)) {
74
+				}else if (is_string($element)) {
75 75
 					$this->addLink($element);
76 76
 				}
77 77
 				// TODO A vérifier
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
 	public function addLink($caption, $href="#") {
84 84
 		$iid=$this->getElementsCount()+1;
85 85
 		$li=new HtmlDoubleElement($this->identifier."-li-".$iid, "li");
86
-		if($caption instanceof HtmlLink){
86
+		if ($caption instanceof HtmlLink) {
87 87
 			$link=$caption;
88
-		}else{
88
+		}else {
89 89
 			$link=new HtmlLink($this->identifier."-link-".$iid, $href, $caption);
90 90
 		}
91 91
 		$li->setContent($link);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	}
114 114
 
115 115
 	public function run(JsUtils $js) {
116
-		foreach ( $this->elements as $element ) {
116
+		foreach ($this->elements as $element) {
117 117
 			$element->run($js);
118 118
 		}
119 119
 	}
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 * @param int $index
135 135
 	 * @return BaseHtml
136 136
 	 */
137
-	public function getElement($index){
137
+	public function getElement($index) {
138 138
 		return $this->elements[$index];
139 139
 	}
140 140
 }
141 141
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/bootstrap/html/content/HtmlTabContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 	public function __construct($identifier, $tagName="div") {
15 15
 		parent::__construct($identifier, $tagName);
16 16
 		$this->setProperty("class", "tab-content");
17
-		$this->content=array (); // HtmlTabContentItem
17
+		$this->content=array(); // HtmlTabContentItem
18 18
 	}
19 19
 
20 20
 	public function addTabItem($identifier) {
Please login to merge, or discard this patch.
Ajax/bootstrap/html/content/HtmlTabItem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,15 +62,15 @@
 block discarded – undo
62 62
 	 */
63 63
 	public function setIdentifier($identifier) {
64 64
 		parent::setIdentifier($identifier);
65
-		if($this->content instanceof HtmlLink){
65
+		if ($this->content instanceof HtmlLink) {
66 66
 			$this->content->setIdentifier("link-".$identifier);
67 67
 		}
68 68
 	}
69
-	public function setActive($value=true){
70
-		$this->setProperty("class", ($value)?"active":"");
69
+	public function setActive($value=true) {
70
+		$this->setProperty("class", ($value) ? "active" : "");
71 71
 	}
72 72
 
73
-	public function disable(){
73
+	public function disable() {
74 74
 		$this->setProperty("class", "disabled");
75 75
 	}
76 76
 }
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/bootstrap/html/phalcon/PhBsForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 	public function compile(JsUtils $js=NULL, View $view=NULL) {
31 31
 		$result="";
32
-		foreach ( $this->_elements as $element ) {
32
+		foreach ($this->_elements as $element) {
33 33
 			if ($element instanceof PhBsElement)
34 34
 				$result.=$element->compile($js, $view);
35 35
 		}
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	}
38 38
 
39 39
 	public function run(JsUtils $js) {
40
-		foreach ( $this->_elements as $element ) {
40
+		foreach ($this->_elements as $element) {
41 41
 			if ($element instanceof PhBsElement)
42 42
 				$element->run($js);
43 43
 		}
Please login to merge, or discard this patch.
Ajax/bootstrap/html/phalcon/PhBsRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
 	public function render($attributes=null) {
53 53
 		$attrs=$this->element->getAttributes();
54
-		foreach ( $attrs as $key => $value ) {
54
+		foreach ($attrs as $key => $value) {
55 55
 			$this->htmlElement->setProperty($key, $value);
56 56
 		}
57 57
 		if (isset($attributes))
Please login to merge, or discard this patch.
Ajax/bootstrap/html/phalcon/PhBsSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 		parent::__construct($name, $attributes);
14 14
 		$list=new HtmlSelect($name);
15 15
 		$list->setTagName("select");
16
-		$this->renderer=new PhBsRenderer(new Select($name, array (), $attributes), $list);
16
+		$this->renderer=new PhBsRenderer(new Select($name, array(), $attributes), $list);
17 17
 		$this->setOptions($options);
18 18
 	}
19 19
 
Please login to merge, or discard this patch.
Ajax/common/BaseGui.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 
28 28
 	public function __construct($autoCompile=true) {
29 29
 		$this->autoCompile=$autoCompile;
30
-		$this->components=array ();
31
-		$this->htmlComponents=array ();
30
+		$this->components=array();
31
+		$this->htmlComponents=array();
32 32
 	}
33 33
 
34 34
 	public function isAutoCompile() {
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 	}
42 42
 
43 43
 	public function compile($internal=false) {
44
-		if ($internal===false&&$this->autoCompile===true)
44
+		if ($internal===false && $this->autoCompile===true)
45 45
 			throw new \Exception("Impossible to compile if autoCompile is set to 'true'");
46
-		foreach ( $this->components as $component ) {
46
+		foreach ($this->components as $component) {
47 47
 			$component->compile();
48 48
 		}
49 49
 	}
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	}
71 71
 
72 72
 	public function compileHtml(JsUtils $js=NULL, View $view=NULL) {
73
-		foreach ( $this->htmlComponents as $htmlComponent ) {
73
+		foreach ($this->htmlComponents as $htmlComponent) {
74 74
 			$htmlComponent->compile($js, $view);
75 75
 		}
76 76
 	}
Please login to merge, or discard this patch.