Completed
Push — master ( 0ed595...25ea1a )
by Jean-Christophe
03:24
created
Ajax/bootstrap/html/HtmlTabs.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 
18 18
 class HtmlTabs extends HtmlBsDoubleElement {
19
-	protected $tabs=array ();
19
+	protected $tabs=array();
20 20
 	protected $_tabsType="tabs";
21 21
 	protected $stacked="";
22 22
 
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 	}
28 28
 
29 29
 	protected function addTab_($tab, $index=null) {
30
-		if($tab instanceof HtmlDropdown){
30
+		if ($tab instanceof HtmlDropdown) {
31 31
 			$tab->setMTagName("li");
32 32
 		}
33 33
 		if (isset($index)) {
34
-			$inserted=array (
34
+			$inserted=array(
35 35
 					$tab
36 36
 			);
37 37
 			array_splice($this->tabs, $index, 0, $inserted);
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 			$this->tabs []=$tab;
40 40
 	}
41 41
 
42
-	public function setActive($index){
43
-		for ($i=0;$i<sizeof($this->tabs);$i++){
42
+	public function setActive($index) {
43
+		for ($i=0; $i<sizeof($this->tabs); $i++) {
44 44
 			$this->tabs[$i]->setActive($i==$index);
45 45
 		}
46 46
 	}
47 47
 
48
-	public function disable($index){
48
+	public function disable($index) {
49 49
 		$this->tabs[$index]->disable();
50 50
 	}
51 51
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	}
77 77
 
78 78
 	public function addTabs($tabs) {
79
-		foreach ( $tabs as $tab ) {
79
+		foreach ($tabs as $tab) {
80 80
 			$this->addTab($tab);
81 81
 		}
82 82
 		return $this;
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 */
107 107
 	public function run(JsUtils $js) {
108 108
 		$this->_bsComponent=new Tabs($js);
109
-		foreach ( $this->tabs as $tab ) {
109
+		foreach ($this->tabs as $tab) {
110 110
 			$this->_bsComponent->addTab($tab->run($js));
111 111
 		}
112 112
 		$this->addEventsOnRun($js);
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
 
116 116
 	public function createTabContents() {
117 117
 		$tabContent=new HtmlTabContent("tabcontent-".$this->identifier);
118
-		foreach ( $this->tabs as $tab ) {
118
+		foreach ($this->tabs as $tab) {
119 119
 			if ($tab instanceof HtmlTabItem)
120 120
 				$tabContent->addTabItem($tab->getHref());
121 121
 			elseif ($tab instanceof HtmlDropdown) {
122
-				foreach ( $tab->getItems() as $dropdownItem ) {
122
+				foreach ($tab->getItems() as $dropdownItem) {
123 123
 					$tabContent->addTabItem($dropdownItem->getHref());
124 124
 				}
125 125
 			}
@@ -154,21 +154,21 @@  discard block
 block discarded – undo
154 154
 		if (sizeof($this->content->getTabItems())>0) {
155 155
 			$this->content->getTabItem(0)->addToProperty("class", "fade in");
156 156
 			$size=sizeof($this->tabs);
157
-			for($index=0; $index<$size; $index++) {
157
+			for ($index=0; $index<$size; $index++) {
158 158
 				$this->content->getTabItem($index)->addToProperty("class", "fade");
159 159
 			}
160 160
 		}
161 161
 	}
162 162
 	
163
-	public function on($event, $jsCode,$stopPropagation=false,$preventDefault=false){
164
-		foreach ($this->tabs as $tab){
165
-			$tab->on($event,$jsCode,$stopPropagation,$preventDefault);
163
+	public function on($event, $jsCode, $stopPropagation=false, $preventDefault=false) {
164
+		foreach ($this->tabs as $tab) {
165
+			$tab->on($event, $jsCode, $stopPropagation, $preventDefault);
166 166
 		}
167 167
 		return $this;
168 168
 	}
169 169
 
170
-	public function setStacked($stacked=true){
171
-		if($stacked)
170
+	public function setStacked($stacked=true) {
171
+		if ($stacked)
172 172
 			$this->stacked="nav-stacked";
173 173
 		else $this->stacked="";
174 174
 	}
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlCarousel.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@  discard block
 block discarded – undo
16 16
  * @version 1.001
17 17
  */
18 18
 class HtmlCarousel extends BaseHtml {
19
-	protected $indicators=array ();
20
-	protected $slides=array ();
19
+	protected $indicators=array();
20
+	protected $slides=array();
21 21
 	protected $leftControl="";
22 22
 	protected $rightControl="";
23 23
 	protected $_base="";
24
-	protected $_glyphs=array ();
24
+	protected $_glyphs=array();
25 25
 
26 26
 	public function __construct($identifier, $images=NULL) {
27 27
 		parent::__construct($identifier);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	}
39 39
 
40 40
 	public function setBase($_base) {
41
-		foreach ($this->slides as $slide){
41
+		foreach ($this->slides as $slide) {
42 42
 			$imgSrc=$slide->getImageSrc();
43 43
 			$slide->setImageSrc(str_replace($this->_base.$imgSrc, $_base.$imgSrc, $imgSrc));
44 44
 		}
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
 	}
94 94
 
95 95
 	public function addImage($imageSrc, $imageAlt="", $caption=NULL, $description=NULL) {
96
-		if(is_array($imageSrc)){
97
-			$this->addImage($imageSrc[0],@$imageSrc[1],@$imageSrc[2],@$imageSrc[3]);
98
-		}else{
96
+		if (is_array($imageSrc)) {
97
+			$this->addImage($imageSrc[0], @$imageSrc[1], @$imageSrc[2], @$imageSrc[3]);
98
+		} else {
99 99
 			$image=new HtmlCarouselItem("item-".$this->identifier);
100 100
 			$image->setImageSrc($this->_base.$imageSrc);
101 101
 			$image->setImageAlt($imageAlt);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 */
119 119
 	public function fromArray($array) {
120 120
 		if (is_array($array) && sizeof($array)>0) {
121
-			foreach ( $array as $value ) {
121
+			foreach ($array as $value) {
122 122
 				if (is_array($value)) {
123 123
 					$this->addImage($value ["src"], @$value ["alt"], @$value ["caption"], @$value ["description"]);
124 124
 				} else {
Please login to merge, or discard this patch.
Ajax/bootstrap/html/base/HtmlBsDoubleElement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@
 block discarded – undo
23 23
 		return $this;
24 24
 	}
25 25
 
26
-	public function addGlyph($glyphicon,$before=true){
26
+	public function addGlyph($glyphicon, $before=true) {
27 27
 		$glyph=new HtmlGlyphicon("");
28 28
 		$glyph->setGlyphicon($glyphicon);
29
-		$this->addContent($glyph,$before);
29
+		$this->addContent($glyph, $before);
30 30
 		return $this;
31 31
 	}
32 32
 
33
-	public function wrapContentWithGlyph($glyphBefore,$glyphAfter=""){
33
+	public function wrapContentWithGlyph($glyphBefore, $glyphAfter="") {
34 34
 		$before=HtmlGlyphicon::getGlyphicon($glyphBefore)."&nbsp;";
35 35
 		$after="";
36
-		if($glyphAfter!==""){
36
+		if ($glyphAfter!=="") {
37 37
 			$after="&nbsp;".HtmlGlyphicon::getGlyphicon($glyphAfter);
38 38
 		}
39
-		return $this->wrapContent($before,$after);
39
+		return $this->wrapContent($before, $after);
40 40
 	}
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/bootstrap/html/base/HtmlElementAsContent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@
 block discarded – undo
32 32
 	}
33 33
 
34 34
 	public function addBadge($caption, $leftSeparator="&nbsp;") {
35
-		return $this->element->addBadge($caption,$leftSeparator);
35
+		return $this->element->addBadge($caption, $leftSeparator);
36 36
 	}
37 37
 
38 38
 	public function addLabel($caption, $style="label-default", $leftSeparator="&nbsp;") {
39
-		return $this->element->addLabel($caption,$style,$leftSeparator);
39
+		return $this->element->addLabel($caption, $style, $leftSeparator);
40 40
 	}
41 41
 
42 42
 	public function run(JsUtils $js) {
Please login to merge, or discard this patch.
Ajax/bootstrap/html/base/HtmlNavElement.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 	protected $attr;
20 20
 
21 21
 
22
-	public function __construct($identifier,$tagName){
23
-		parent::__construct($identifier,$tagName);
22
+	public function __construct($identifier, $tagName) {
23
+		parent::__construct($identifier, $tagName);
24 24
 		$this->root="";
25 25
 		$this->attr="data-ajax";
26 26
 	}
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 	 * @param string $attr the html attribute used to build the elements url
33 33
 	 * @return HtmlNavElement
34 34
 	 */
35
-	public function autoGetOnClick($targetSelector){
36
-		return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr));
35
+	public function autoGetOnClick($targetSelector) {
36
+		return $this->getOnClick($this->root, $targetSelector, array("attr"=>$this->attr));
37 37
 	}
38 38
 
39
-	public function contentAsString(){
39
+	public function contentAsString() {
40 40
 		return implode("", $this->content);
41 41
 	}
42 42
 
@@ -44,15 +44,15 @@  discard block
 block discarded – undo
44 44
 	 * Generate the jquery script to set the elements to the HtmlNavElement
45 45
 	 * @param JsUtils $jsUtils
46 46
 	 */
47
-	public function jsSetContent(JsUtils $jsUtils){
48
-		$jsUtils->html("#".$this->identifier,str_replace("\"","'", $this->contentAsString()),true);
47
+	public function jsSetContent(JsUtils $jsUtils) {
48
+		$jsUtils->html("#".$this->identifier, str_replace("\"", "'", $this->contentAsString()), true);
49 49
 	}
50 50
 
51 51
 	public function getRoot() {
52 52
 		return $this->root;
53 53
 	}
54 54
 	public function setRoot($root) {
55
-		$this->root = $root;
55
+		$this->root=$root;
56 56
 		return $this;
57 57
 	}
58 58
 	public function getAttr() {
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 	 * @return HtmlNavElement
66 66
 	 */
67 67
 	public function setAttr($attr) {
68
-		$this->attr = $attr;
68
+		$this->attr=$attr;
69 69
 		return $this;
70 70
 	}
71 71
 
72 72
 	public function __call($method, $args) {
73
-		if(isset($this->$method) && is_callable($this->$method)) {
73
+		if (isset($this->$method) && is_callable($this->$method)) {
74 74
 			return call_user_func_array(
75 75
 					$this->$method,
76 76
 					$args
@@ -78,6 +78,6 @@  discard block
 block discarded – undo
78 78
 		}
79 79
 	}
80 80
 
81
-	public abstract function fromDispatcher(JsUtils $js,$dispatcher,$startIndex=0);
81
+	public abstract function fromDispatcher(JsUtils $js, $dispatcher, $startIndex=0);
82 82
 
83 83
 }
84 84
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/bootstrap/html/base/CssRef.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	const CSS_DEFAULT="-default", CSS_PRIMARY="-primary", CSS_SUCCESS="-success", CSS_INFO="-info", CSS_WARNING="-warning", CSS_DANGER="-danger", CSS_LINK="-link";
15 15
 
16 16
 	public static function buttonStyles() {
17
-		return array (
17
+		return array(
18 18
 				"btn-default",
19 19
 				"btn-primary",
20 20
 				"btn-success",
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	}
27 27
 
28 28
 	public static function Styles($prefix="btn") {
29
-		return array (
29
+		return array(
30 30
 				$prefix."-default",
31 31
 				$prefix."-primary",
32 32
 				$prefix."-success",
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	}
38 38
 
39 39
 	public static function sizes($prefix="btn") {
40
-		return array (
40
+		return array(
41 41
 				$prefix."-lg",
42 42
 				"",
43 43
 				$prefix."-sm",
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	public static function position() {
49
-		return array (
49
+		return array(
50 50
 				"top",
51 51
 				"left",
52 52
 				"right",
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	}
57 57
 
58 58
 	public static function alignment($prefix="") {
59
-		return array (
59
+		return array(
60 60
 				$prefix."",
61 61
 				$prefix."left",
62 62
 				$prefix."right",
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	}
67 67
 
68 68
 	public static function navbarZoneClasses() {
69
-		return array (
69
+		return array(
70 70
 				"navbar-nav",
71 71
 				"navbar-left",
72 72
 				"navbar-right",
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	}
76 76
 
77 77
 	public static function glyphIcons() {
78
-		return array (
78
+		return array(
79 79
 				"glyphicon-asterisk",
80 80
 				"glyphicon-plus",
81 81
 				"glyphicon-euro",
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 	public static function getStyle($cssStyle, $prefix) {
348 348
 		if (is_int($cssStyle)) {
349 349
 			$styles=CssRef::Styles($prefix);
350
-			if ($cssStyle<sizeof($styles)&&$cssStyle>=0) {
350
+			if ($cssStyle<sizeof($styles) && $cssStyle>=0) {
351 351
 				return CssRef::styles($prefix)[$cssStyle];
352 352
 			} else {
353 353
 				throw new \Exception("La valeur passée a propriété `Style` ne fait pas partie des valeurs possibles : index '".$cssStyle."' inexistant");
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlPagination.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -45,70 +45,70 @@  discard block
 block discarded – undo
45 45
 	/**
46 46
 	 * @param string $identifier
47 47
 	 */
48
-	public function __construct($identifier,$from=1,$to=1,$active=NULL,$countVisible=NULL){
49
-		parent::__construct($identifier,"ul");
48
+	public function __construct($identifier, $from=1, $to=1, $active=NULL, $countVisible=NULL) {
49
+		parent::__construct($identifier, "ul");
50 50
 		$this->setProperty("class", "pagination");
51 51
 		$this->active=$active;
52 52
 		$this->from=$from;
53 53
 		$this->to=$to;
54 54
 		$this->urlMask="%page%";
55
-		if(!isset($countVisible))
55
+		if (!isset($countVisible))
56 56
 			$this->countVisible=$to-$from+1;
57 57
 		else
58 58
 			$this->countVisible=$countVisible;
59 59
 		$this->createContent();
60 60
 	}
61 61
 
62
-	private function createElement($num,$content,$disabled=false,$current=false){
62
+	private function createElement($num, $content, $disabled=false, $current=false) {
63 63
 		$count=sizeof($this->content)+1;
64
-		$elem=new HtmlBsDoubleElement("li-".$this->identifier."-".$count,"li");
65
-		if($disabled){
64
+		$elem=new HtmlBsDoubleElement("li-".$this->identifier."-".$count, "li");
65
+		if ($disabled) {
66 66
 			$elem->setProperty("class", "disabled");
67 67
 		}
68
-		if($current){
68
+		if ($current) {
69 69
 			$content.="<span class='sr-only'>(current)</span>";
70 70
 			$elem->setProperty("class", "active");
71 71
 		}
72
-		if(!$disabled){
72
+		if (!$disabled) {
73 73
 			$url=$this->getUrl($num);
74
-			$href=new HtmlLink("a-".$this->identifier."-".$count,$url,$content);
74
+			$href=new HtmlLink("a-".$this->identifier."-".$count, $url, $content);
75 75
 			$href->setProperty($this->attr, $url);
76 76
 			$elem->setContent($href);
77
-		}else{
77
+		} else {
78 78
 			$elem->setContent($content);
79 79
 		}
80 80
 		$this->content[]=$elem;
81 81
 		return $this;
82 82
 	}
83 83
 
84
-	protected function createContent(){
84
+	protected function createContent() {
85 85
 		$this->content=array();
86
-		$this->createElement($this->active-1,"<span aria-hidden='true'>&laquo;</span>",$this->active===1);
86
+		$this->createElement($this->active-1, "<span aria-hidden='true'>&laquo;</span>", $this->active===1);
87 87
 		$start=$this->getStart();
88
-		$end=min($start+$this->countVisible-1,$this->to);
89
-		for($index=$start;$index<=$end;$index++){
90
-			$this->createElement($index,$index,false,$index===$this->active);
88
+		$end=min($start+$this->countVisible-1, $this->to);
89
+		for ($index=$start; $index<=$end; $index++) {
90
+			$this->createElement($index, $index, false, $index===$this->active);
91 91
 		}
92
-		$this->createElement($this->active+1,"<span aria-hidden='true'>&raquo;</span>",$this->active===$this->to);
92
+		$this->createElement($this->active+1, "<span aria-hidden='true'>&raquo;</span>", $this->active===$this->to);
93 93
 	}
94 94
 
95
-	protected function half(){
95
+	protected function half() {
96 96
 		return (int)($this->countVisible/2);
97 97
 	}
98 98
 
99
-	protected function getStart(){
99
+	protected function getStart() {
100 100
 		$result=1;
101
-		if($this->countVisible!==$this->to-$this->from+1){
102
-			$result=max($this->active-$this->half(),$result);
101
+		if ($this->countVisible!==$this->to-$this->from+1) {
102
+			$result=max($this->active-$this->half(), $result);
103 103
 		}
104 104
 		return $result;
105 105
 	}
106 106
 
107 107
 	public function _addEvent($event, $jsCode) {
108
-		foreach ($this->content as $li){
108
+		foreach ($this->content as $li) {
109 109
 			$content=$li->getContent();
110
-			if($content instanceof BaseHtml)
111
-				$content->_addEvent($event,$jsCode);
110
+			if ($content instanceof BaseHtml)
111
+				$content->_addEvent($event, $jsCode);
112 112
 		}
113 113
 	}
114 114
 	/**
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
 	 * @param Dispatcher $dispatcher the request dispatcher
118 118
 	 * @return \Ajax\bootstrap\html\HtmlPagination
119 119
 	 */
120
-	public function fromDispatcher(JsUtils $js,$dispatcher,$startIndex=0){
120
+	public function fromDispatcher(JsUtils $js, $dispatcher, $startIndex=0) {
121 121
 		$items=$js->fromDispatcher($dispatcher);
122 122
 		$url=implode("/", $items);
123
-		if($this->urlMask==="%page%"){
123
+		if ($this->urlMask==="%page%") {
124 124
 			$this->urlMask=preg_replace("/[0-9]/", "%page%", $url);
125 125
 		}
126
-		for($index=$this->from;$index<=$this->to;$index++){
127
-			if($this->getUrl($index)==$url){
126
+		for ($index=$this->from; $index<=$this->to; $index++) {
127
+			if ($this->getUrl($index)==$url) {
128 128
 				$this->setActive($index);
129 129
 				break;
130 130
 			}
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 		return $this;
133 133
 	}
134 134
 
135
-	public function getUrl($index){
135
+	public function getUrl($index) {
136 136
 		return str_ireplace("%page%", $index, $this->urlMask);
137 137
 	}
138 138
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		if (is_int($size)) {
147 147
 			return $this->addToPropertyUnique("class", CssRef::sizes("pagination")[$size], CssRef::sizes("pagination"));
148 148
 		}
149
-		if(!PhalconUtils::startsWith($size, "pagination-") && $size!=="")
149
+		if (!PhalconUtils::startsWith($size, "pagination-") && $size!=="")
150 150
 			$size="pagination-".$size;
151 151
 		return $this->addToPropertyCtrl("class", $size, CssRef::sizes("pagination"));
152 152
 	}
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 		return $this->from;
156 156
 	}
157 157
 	public function setFrom($from) {
158
-		$this->from = $from;
158
+		$this->from=$from;
159 159
 		$this->createContent();
160 160
 		return $this;
161 161
 	}
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 		return $this->to;
164 164
 	}
165 165
 	public function setTo($to) {
166
-		$this->to = $to;
166
+		$this->to=$to;
167 167
 		$this->createContent();
168 168
 		return $this;
169 169
 	}
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		return $this->active;
172 172
 	}
173 173
 	public function setActive($active) {
174
-		$this->active = $active;
174
+		$this->active=$active;
175 175
 		$this->createContent();
176 176
 		return $this;
177 177
 	}
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 		return $this->urlMask;
180 180
 	}
181 181
 	public function setUrlMask($urlMask) {
182
-		$this->urlMask = $urlMask;
182
+		$this->urlMask=$urlMask;
183 183
 		$this->createContent();
184 184
 		return $this;
185 185
 	}
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 		return $this->countVisible;
188 188
 	}
189 189
 	public function setCountVisible($countVisible) {
190
-		$this->countVisible = $countVisible;
190
+		$this->countVisible=$countVisible;
191 191
 		$this->createContent();
192 192
 		return $this;
193 193
 	}
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlListgroup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 	public function __construct($identifier, $tagName="ul") {
17 17
 		parent::__construct($identifier, $tagName);
18
-		$this->content=array ();
18
+		$this->content=array();
19 19
 		$this->_template='<%tagName% %properties%>%content%</%tagName%>';
20 20
 		$this->setProperty("class", "list-group");
21 21
 	}
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 		if (is_object($text)) {
25 25
 			$element=$text;
26 26
 		} else {
27
-			switch($this->tagName) {
27
+			switch ($this->tagName) {
28 28
 				case "ul":
29 29
 					$element=new HtmlBsDoubleElement("list-gi-".$this->identifier);
30 30
 					$element->setTagName("li");
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 
47 47
 	public function addItems($items) {
48
-		foreach ( $items as $item ) {
48
+		foreach ($items as $item) {
49 49
 			if (is_string($item)) {
50 50
 				$this->addItem($item);
51 51
 			} else
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=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.