Completed
Push — master ( 8310f7...eb7f5d )
by Jean-Christophe
02:57
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,14 +39,14 @@  discard block
 block discarded – undo
39 39
 			$this->tabs []=$tab;
40 40
 	}
41 41
 
42
-	public function setActive($index){
42
+	public function setActive($index) {
43 43
 		$size=\sizeof($this->tabs);
44
-		for ($i=0;$i<$size;$i++){
44
+		for ($i=0; $i<$size; $i++) {
45 45
 			$this->tabs[$i]->setActive($i==$index);
46 46
 		}
47 47
 	}
48 48
 
49
-	public function disable($index){
49
+	public function disable($index) {
50 50
 		$this->tabs[$index]->disable();
51 51
 	}
52 52
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	}
78 78
 
79 79
 	public function addTabs($tabs) {
80
-		foreach ( $tabs as $tab ) {
80
+		foreach ($tabs as $tab) {
81 81
 			$this->addTab($tab);
82 82
 		}
83 83
 		return $this;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 */
108 108
 	public function run(JsUtils $js) {
109 109
 		$this->_bsComponent=new Tabs($js);
110
-		foreach ( $this->tabs as $tab ) {
110
+		foreach ($this->tabs as $tab) {
111 111
 			$this->_bsComponent->addTab($tab->run($js));
112 112
 		}
113 113
 		$this->addEventsOnRun($js);
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
 
117 117
 	public function createTabContents() {
118 118
 		$tabContent=new HtmlTabContent("tabcontent-".$this->identifier);
119
-		foreach ( $this->tabs as $tab ) {
119
+		foreach ($this->tabs as $tab) {
120 120
 			if ($tab instanceof HtmlTabItem)
121 121
 				$tabContent->addTabItem($tab->getHref());
122 122
 			elseif ($tab instanceof HtmlDropdown) {
123
-				foreach ( $tab->getItems() as $dropdownItem ) {
123
+				foreach ($tab->getItems() as $dropdownItem) {
124 124
 					$tabContent->addTabItem($dropdownItem->getHref());
125 125
 				}
126 126
 			}
@@ -155,21 +155,21 @@  discard block
 block discarded – undo
155 155
 		if (sizeof($this->content->getTabItems())>0) {
156 156
 			$this->content->getTabItem(0)->addToProperty("class", "fade in");
157 157
 			$size=sizeof($this->tabs);
158
-			for($index=0; $index<$size; $index++) {
158
+			for ($index=0; $index<$size; $index++) {
159 159
 				$this->content->getTabItem($index)->addToProperty("class", "fade");
160 160
 			}
161 161
 		}
162 162
 	}
163 163
 
164
-	public function on($event, $jsCode,$stopPropagation=false,$preventDefault=false){
165
-		foreach ($this->tabs as $tab){
166
-			$tab->on($event,$jsCode,$stopPropagation,$preventDefault);
164
+	public function on($event, $jsCode, $stopPropagation=false, $preventDefault=false) {
165
+		foreach ($this->tabs as $tab) {
166
+			$tab->on($event, $jsCode, $stopPropagation, $preventDefault);
167 167
 		}
168 168
 		return $this;
169 169
 	}
170 170
 
171
-	public function setStacked($stacked=true){
172
-		if($stacked)
171
+	public function setStacked($stacked=true) {
172
+		if ($stacked)
173 173
 			$this->stacked="nav-stacked";
174 174
 		else $this->stacked="";
175 175
 	}
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlProgressbar.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
 	}
30 30
 
31 31
 	public function setActive($value) {
32
-		if(\is_array($this->content)){
33
-			foreach ($this->content as $pb){
32
+		if (\is_array($this->content)) {
33
+			foreach ($this->content as $pb) {
34 34
 				$pb->setActive($value);
35 35
 			}
36
-		}else{
36
+		} else {
37 37
 			if ($value===true)
38 38
 				$this->active="active";
39 39
 			else
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
 	}
44 44
 
45 45
 	public function setStriped($value) {
46
-		if(\is_array($this->content)){
47
-			foreach ($this->content as $pb){
46
+		if (\is_array($this->content)) {
47
+			foreach ($this->content as $pb) {
48 48
 				$pb->setStriped($value);
49 49
 			}
50
-		}else{
50
+		} else {
51 51
 			if ($value===true)
52 52
 				$this->striped="progress-bar-striped";
53 53
 			else
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 	}
58 58
 
59 59
 	public function showCaption($value) {
60
-		if(\is_array($this->content)){
61
-			foreach ($this->content as $pb){
60
+		if (\is_array($this->content)) {
61
+			foreach ($this->content as $pb) {
62 62
 				$pb->showCaption($value);
63 63
 			}
64
-		}else{
64
+		} else {
65 65
 			if ($value===true)
66 66
 				$this->caption="%value%%";
67 67
 			else
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 		$progressBar->setStriped($this->striped!=="" || $progressBar->isStriped());
82 82
 		$progressBar->setActive($this->active==="active" || $progressBar->isActive());
83 83
 		if (!is_array($this->content)) {
84
-			$this->content=array ();
84
+			$this->content=array();
85 85
 		}
86 86
 		$this->content []=$progressBar;
87 87
 	}
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	 * @return \Ajax\bootstrap\html\HtmlProgressbar default : ""
126 126
 	 */
127 127
 	public function setStyle($cssStyle) {
128
-		return $this->setMemberCtrl($this->style,CssRef::getStyle($cssStyle, "progress-bar"), CssRef::Styles("progress-bar"));
128
+		return $this->setMemberCtrl($this->style, CssRef::getStyle($cssStyle, "progress-bar"), CssRef::Styles("progress-bar"));
129 129
 	}
130 130
 
131 131
 	/*
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
 	 */
135 135
 	public function compile(JsUtils $js=NULL, &$view=NULL) {
136 136
 		$actualStyle=$this->style;
137
-		if(isset($this->styleLimits)&& JArray::isAssociative($this->styleLimits)){
138
-			foreach ($this->styleLimits as $k=>$v){
137
+		if (isset($this->styleLimits) && JArray::isAssociative($this->styleLimits)) {
138
+			foreach ($this->styleLimits as $k=>$v) {
139 139
 				$actualStyle=$k;
140
-				if($v>$this->value)
140
+				if ($v>$this->value)
141 141
 					break;
142 142
 			}
143 143
 		}
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/semantic/components/search/SearchResults.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 	private $elements;
9 9
 
10 10
 	public function __construct($objects=NULL) {
11
-		$this->elements=array ();
11
+		$this->elements=array();
12 12
 		if (isset($objects)) {
13 13
 			if (\is_array($objects)) {
14 14
 				$this->addResults($objects);
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 			$this->elements[]=$object;
24 24
 			return $this;
25 25
 		}
26
-		if (\is_array($object) === false) {
27
-			$object=[ "title" => $object ];
26
+		if (\is_array($object)===false) {
27
+			$object=["title" => $object];
28 28
 		}
29 29
 		$this->elements[]=new SearchResult($object);
30 30
 		return $this;
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 		if (!\is_array($objects)) {
35 35
 			return $this->addResult($objects);
36 36
 		}
37
-		if (JArray::dimension($objects) === 1) {
38
-			foreach ( $objects as $object ) {
39
-				$this->addResult([ "title" => $object ]);
37
+		if (JArray::dimension($objects)===1) {
38
+			foreach ($objects as $object) {
39
+				$this->addResult(["title" => $object]);
40 40
 			}
41 41
 		} else
42 42
 			$this->elements=\array_merge($this->elements, $objects);
@@ -44,21 +44,21 @@  discard block
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	public function _search($query, $field="title") {
47
-		$result=array ();
48
-		foreach ( $this->elements as $element ) {
47
+		$result=array();
48
+		foreach ($this->elements as $element) {
49 49
 			if ($element instanceof SearchResult) {
50
-				if ($element->search($query, $field) !== false)
50
+				if ($element->search($query, $field)!==false)
51 51
 					$result[]=$element->asArray();
52 52
 			} else {
53 53
 				if (\array_key_exists($field, $element)) {
54 54
 					$value=$element[$field];
55
-					if (\stripos($value, $query) !== false) {
55
+					if (\stripos($value, $query)!==false) {
56 56
 						$result[]=$element;
57 57
 					}
58 58
 				}
59 59
 			}
60 60
 		}
61
-		if (\sizeof($result) > 0) {
61
+		if (\sizeof($result)>0) {
62 62
 			return $result;
63 63
 		}
64 64
 		return false;
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 
67 67
 	public function search($query, $field="title") {
68 68
 		$result=$this->_search($query, $field);
69
-		if ($result === false)
69
+		if ($result===false)
70 70
 			$result=NULL;
71 71
 		return new SearchResults($result);
72 72
 	}
73 73
 
74 74
 	public function __toString() {
75
-		$result="\"results\": " . \json_encode($this->elements);
75
+		$result="\"results\": ".\json_encode($this->elements);
76 76
 		return $result;
77 77
 	}
78 78
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	public function getResponse() {
84
-		return "{" . $this . "}";
84
+		return "{".$this."}";
85 85
 	}
86 86
 
87 87
 	/**
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlDropdown.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	protected $class="dropdown-toggle";
18 18
 	protected $mClass="dropdown";
19 19
 	protected $mTagName="div";
20
-	protected $items=array ();
20
+	protected $items=array();
21 21
 
22 22
 	/**
23 23
 	 *
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
 	 * @return HtmlDropdownItem
88 88
 	 */
89 89
 	public function addItem($caption, $href="#") {
90
-		if($caption instanceof HtmlDropdownItem){
90
+		if ($caption instanceof HtmlDropdownItem) {
91 91
 			$item=$caption;
92
-		}else{
92
+		} else {
93 93
 			$iid=$this->getItemsCount()+1;
94 94
 			$item=new HtmlDropdownItem($this->identifier."-dropdown-item-".$iid);
95 95
 			$item->setCaption($caption)->setHref($href);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	public function addItems($items) {
110 110
 		$iid=$this->getItemsCount()+1;
111 111
 		if (\is_array($items)) {
112
-			foreach ( $items as $item ) {
112
+			foreach ($items as $item) {
113 113
 				if (is_string($item)) {
114 114
 					$this->addItem($item);
115 115
 				} else if (\is_array($item)) {
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 	}
137 137
 
138 138
 	public function setItems($items) {
139
-		$this->items=array ();
139
+		$this->items=array();
140 140
 		$this->addItems($items);
141 141
 	}
142 142
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	 */
172 172
 	public function run(JsUtils $js) {
173 173
 		if ($this->getProperty("role")==="nav") {
174
-			foreach ( $this->items as $dropdownItem ) {
174
+			foreach ($this->items as $dropdownItem) {
175 175
 				$dropdownItem->runNav($js);
176 176
 			}
177 177
 		}
@@ -263,9 +263,9 @@  discard block
 block discarded – undo
263 263
 	/* (non-PHPdoc)
264 264
 	 * @see \Ajax\bootstrap\html\base\BaseHtml::on()
265 265
 	 */
266
-	public function on($event, $jsCode, $stopPropagation = false, $preventDefault = false) {
267
-		foreach ($this->items as $item){
268
-			$item->on($event, $jsCode,$stopPropagation,$preventDefault);
266
+	public function on($event, $jsCode, $stopPropagation=false, $preventDefault=false) {
267
+		foreach ($this->items as $item) {
268
+			$item->on($event, $jsCode, $stopPropagation, $preventDefault);
269 269
 		}
270 270
 	}
271 271
 
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlNavbar.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	public function __construct($identifier, $brand="Brand", $brandHref="#") {
33 33
 		parent::__construct($identifier);
34 34
 		$this->_template=include 'templates/tplNavbar.php';
35
-		$this->navZones=array ();
35
+		$this->navZones=array();
36 36
 		$this->class="navbar-default";
37 37
 		$this->brand=$brand;
38 38
 		$this->brandHref=$brandHref;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	}
61 61
 
62 62
 	public function setBrandImage($imageSrc) {
63
-		$this->brandImage=PhalconUtils::image(array (
63
+		$this->brandImage=PhalconUtils::image(array(
64 64
 				$imageSrc,
65 65
 				"alt" => $this->brand
66 66
 		));
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
 	public function setNavZones($navZones) {
109 109
 		if (\is_array($navZones)) {
110
-			foreach ( $navZones as $zoneType => $zoneArray ) {
110
+			foreach ($navZones as $zoneType => $zoneArray) {
111 111
 				if (is_string($zoneType)) {
112 112
 					$zone=$this->addZone($zoneType);
113 113
 					$zone->fromArray($zoneArray);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 			if ($index<$nb)
148 148
 				$zone=$this->navZones [$index];
149 149
 		} else {
150
-			for($i=0; $i<$nb; $i++) {
150
+			for ($i=0; $i<$nb; $i++) {
151 151
 				if ($this->navZones [$i]->getIdentifier()===$index) {
152 152
 					$zone=$this->navZones [$i];
153 153
 					break;
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	}
159 159
 
160 160
 	public function run(JsUtils $js) {
161
-		foreach ( $this->navZones as $zone ) {
161
+		foreach ($this->navZones as $zone) {
162 162
 			$zone->run($js);
163 163
 		}
164 164
 		if ($this->hasScrollspy) {
@@ -180,9 +180,9 @@  discard block
 block discarded – undo
180 180
 	}
181 181
 
182 182
 	public function setFluid($fluid) {
183
-		if($fluid===true){
183
+		if ($fluid===true) {
184 184
 			$this->fluid="container-fluid";
185
-		}else{
185
+		} else {
186 186
 			$this->fluid="container";
187 187
 		}
188 188
 		return $this;
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlModal.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 class HtmlModal extends BaseHtml {
15 15
 	protected $title="Titre de ma boîte";
16 16
 	protected $content="";
17
-	protected $buttons=array ();
17
+	protected $buttons=array();
18 18
 	protected $showOnStartup=false;
19 19
 	protected $draggable=false;
20 20
 	protected $validCondition=NULL;
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
 	public function __construct($identifier, $title="", $content="", $buttonCaptions=array()) {
28 28
 		parent::__construct($identifier);
29 29
 		$this->_template=include 'templates/tplModal.php';
30
-		$this->buttons=array ();
30
+		$this->buttons=array();
31 31
 		$this->title=$title;
32 32
 		$this->content=$content;
33
-		foreach ( $buttonCaptions as $button ) {
33
+		foreach ($buttonCaptions as $button) {
34 34
 			$this->addButton($button);
35 35
 		}
36 36
 	}
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * @param string $value
66 66
 	 * @return HtmlButton
67 67
 	 */
68
-	public function addOkayButton($value="Okay",$jsCode="") {
68
+	public function addOkayButton($value="Okay", $jsCode="") {
69 69
 		$btn=$this->addButton($value, "btn-primary");
70 70
 		$btn->onClick("if(".$this->getValidCondition()."){ ".$jsCode."$('#".$this->identifier."').modal('hide');}");
71 71
 		return $btn;
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
 	 * @param string $viewName
115 115
 	 * @param $params The parameters to pass to the view
116 116
 	 */
117
-	public function renderView(JsUtils $js,$initialController,$viewName, $params=array()) {
118
-		$this->content=$js->renderContent($initialController, $viewName,$params);
117
+	public function renderView(JsUtils $js, $initialController, $viewName, $params=array()) {
118
+		$this->content=$js->renderContent($initialController, $viewName, $params);
119 119
 	}
120 120
 
121 121
 	/**
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
 	 * @param string $actionName the action name
127 127
 	 * @param array $params
128 128
 	 */
129
-	public function forward(JsUtils $js,$initialControllerInstance,$controllerName,$actionName,$params=NULL){
130
-		$this->content=$js->forward($initialControllerInstance, $controllerName, $actionName,$params);
129
+	public function forward(JsUtils $js, $initialControllerInstance, $controllerName, $actionName, $params=NULL) {
130
+		$this->content=$js->forward($initialControllerInstance, $controllerName, $actionName, $params);
131 131
 	}
132 132
 
133 133
 	/*
@@ -135,10 +135,10 @@  discard block
 block discarded – undo
135 135
 	 * @see BaseHtml::run()
136 136
 	 */
137 137
 	public function run(JsUtils $js) {
138
-		if($this->content instanceof BaseHtml){
138
+		if ($this->content instanceof BaseHtml) {
139 139
 			$this->content->run($js);
140 140
 		}
141
-		$this->_bsComponent=$js->bootstrap()->modal("#".$this->identifier, array (
141
+		$this->_bsComponent=$js->bootstrap()->modal("#".$this->identifier, array(
142 142
 				"show" => $this->showOnStartup
143 143
 		));
144 144
 		if ($this->draggable)
Please login to merge, or discard this patch.
Ajax/php/yii/JsUtils.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@  discard block
 block discarded – undo
4 4
 
5 5
 use yii\helpers\Url;
6 6
 
7
-class JsUtils extends \Ajax\JsUtils{
8
-	public function getUrl($url){
9
-		if($url==="")
7
+class JsUtils extends \Ajax\JsUtils {
8
+	public function getUrl($url) {
9
+		if ($url==="")
10 10
 			$url="/";
11 11
 		return Url::toRoute($url);
12 12
 	}
13 13
 
14
-	public function addViewElement($identifier,$content,&$view){
14
+	public function addViewElement($identifier, $content, &$view) {
15 15
 		$params=$view->params;
16 16
 		if (\array_key_exists("q", $params)===false) {
17 17
 			$view->params["q"]=array();
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
 		$view->params["q"][$identifier]=$content;
20 20
 	}
21 21
 
22
-	public function createScriptVariable(&$view,$view_var, $output){
22
+	public function createScriptVariable(&$view, $view_var, $output) {
23 23
 		$view->params[$view_var]=$output;
24 24
 	}
25 25
 
26
-	public function forward($initialControllerInstance,$controllerName,$actionName,$params=array()){
26
+	public function forward($initialControllerInstance, $controllerName, $actionName, $params=array()) {
27 27
 		\ob_start();
28 28
 		$ctrInfo=\yii::$app->createController($controllerName."/".$actionName);
29 29
 		$ctrInfo[0]->{$ctrInfo[1]}($params);
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 		return $result;
33 33
 	}
34 34
 
35
-	public function renderContent($initialControllerInstance,$viewName, $params=NULL) {
36
-		return \yii::$app->view->render($viewName,$params);
35
+	public function renderContent($initialControllerInstance, $viewName, $params=NULL) {
36
+		return \yii::$app->view->render($viewName, $params);
37 37
 	}
38 38
 
39
-	public function fromDispatcher($dispatcher){
39
+	public function fromDispatcher($dispatcher) {
40 40
 		$uri=new \Ajax\php\yii\URI();
41 41
 		return $uri->segment_array();
42 42
 	}
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlElementsTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
 	 * @param string $tagName
159 159
 	 * @return HtmlLabel
160 160
 	 */
161
-	public function htmlLabel($identifier, $content="", $icon=NULL,$tagName="div") {
162
-		return $this->addHtmlComponent(new HtmlLabel($identifier, $content,$icon, $tagName));
161
+	public function htmlLabel($identifier, $content="", $icon=NULL, $tagName="div") {
162
+		return $this->addHtmlComponent(new HtmlLabel($identifier, $content, $icon, $tagName));
163 163
 	}
164 164
 
165 165
 	/**
@@ -168,8 +168,8 @@  discard block
 block discarded – undo
168 168
 	 * @param array $attributes
169 169
 	 * @return HtmlLabelGroups
170 170
 	 */
171
-	public function htmlLabelGroups($identifier,$labels=array(),$attributes=array()){
172
-		return $this->addHtmlComponent(new HtmlLabelGroups($identifier,$labels,$attributes));
171
+	public function htmlLabelGroups($identifier, $labels=array(), $attributes=array()) {
172
+		return $this->addHtmlComponent(new HtmlLabelGroups($identifier, $labels, $attributes));
173 173
 	}
174 174
 
175 175
 	/**
Please login to merge, or discard this patch.