Completed
Push — master ( f58e0b...3dd4a0 )
by Jean-Christophe
03:31
created
Ajax/semantic/html/content/card/HtmlCardHeaderContent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 class HtmlCardHeaderContent extends HtmlCardContent {
11 11
 
12 12
 	public function __construct($identifier, $header=NULL, $metas=array(), $description=NULL) {
13
-		parent::__construct($identifier, array ());
13
+		parent::__construct($identifier, array());
14 14
 		if (isset($header)) {
15 15
 			$this->setHeader($header);
16 16
 		}
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 	}
22 22
 
23 23
 	public function setDescription($value) {
24
-		$this->content["description"]=new HtmlSemDoubleElement("description-" . $this->identifier, "div", "description", $value);
24
+		$this->content["description"]=new HtmlSemDoubleElement("description-".$this->identifier, "div", "description", $value);
25 25
 	}
26 26
 
27 27
 	public function setHeader($value) {
28
-		$this->content["header"]=new HtmlSemDoubleElement("header-" . $this->identifier, "a", "header", $value);
28
+		$this->content["header"]=new HtmlSemDoubleElement("header-".$this->identifier, "a", "header", $value);
29 29
 	}
30 30
 
31 31
 	/**
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile()
36 36
 	 */
37 37
 	public function compile(JsUtils $js=NULL, &$view=NULL) {
38
-		$this->content=JArray::sortAssociative($this->content, [ "image","header","meta","description" ]);
38
+		$this->content=JArray::sortAssociative($this->content, ["image", "header", "meta", "description"]);
39 39
 		return parent::compile($js, $view);
40 40
 	}
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/views/HtmlCardGroups.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	}
15 15
 
16 16
 	protected function createItem($value) {
17
-		$result=new HtmlCard("card-" . $this->count());
17
+		$result=new HtmlCard("card-".$this->count());
18 18
 		if (\is_array($value)) {
19 19
 			$header=JArray::getValue($value, "header", 0);
20 20
 			$metas=JArray::getValue($value, "metas", 1);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 * @param int $wide
39 39
 	 */
40 40
 	public function setWide($wide) {
41
-		$wide=Wide::getConstants()["W" . $wide];
41
+		$wide=Wide::getConstants()["W".$wide];
42 42
 		return $this->addToPropertyCtrl("class", $wide, Wide::getConstants());
43 43
 	}
44 44
 
Please login to merge, or discard this patch.
Ajax/Bootstrap.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
 	 * @param string $tagName container tagName
177 177
 	 * @return HtmlListgroup
178 178
 	 */
179
-	public function htmlListgroup($identifier,$items=array(),$tagName="ul"){
180
-		$listGroup=new HtmlListgroup($identifier,$tagName);
179
+	public function htmlListgroup($identifier, $items=array(), $tagName="ul") {
180
+		$listGroup=new HtmlListgroup($identifier, $tagName);
181 181
 		$listGroup->addItems($items);
182 182
 		return $this->addHtmlComponent($listGroup);
183 183
 	}
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
 	 * @param string $onClick
203 203
 	 * @return HtmlSplitbutton
204 204
 	 */
205
-	public function htmlSplitbutton($identifier,$value="", $items=array(), $cssStyle="btn-default", $onClick=NULL) {
206
-		return $this->addHtmlComponent(new HtmlSplitbutton($identifier, $value, $items, $cssStyle,$onClick));
205
+	public function htmlSplitbutton($identifier, $value="", $items=array(), $cssStyle="btn-default", $onClick=NULL) {
206
+		return $this->addHtmlComponent(new HtmlSplitbutton($identifier, $value, $items, $cssStyle, $onClick));
207 207
 	}
208 208
 
209 209
 	/**
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 	 * @param string $identifier
212 212
 	 * @return HtmlInputgroup
213 213
 	 */
214
-	public function htmlInputgroup($identifier){
214
+	public function htmlInputgroup($identifier) {
215 215
 		return $this->addHtmlComponent(new HtmlInputgroup($identifier));
216 216
 	}
217 217
 
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
 	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
224 224
 	 * @return HtmlBreadcrumbs
225 225
 	 */
226
-	public function htmlBreadcrumbs($identifier,$elements=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){
227
-		return $this->addHtmlComponent(new HtmlBreadcrumbs($identifier,$elements,$autoActive,$startIndex,$hrefFunction));
226
+	public function htmlBreadcrumbs($identifier, $elements=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) {
227
+		return $this->addHtmlComponent(new HtmlBreadcrumbs($identifier, $elements, $autoActive, $startIndex, $hrefFunction));
228 228
 	}
229 229
 
230 230
 	/**
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
 	 * @param int $active The active page
237 237
 	 * @return HtmlPagination
238 238
 	 */
239
-	public function htmlPagination($identifier,$from=1,$to=1,$active=NULL,$countVisible=NULL){
240
-		return $this->addHtmlComponent(new HtmlPagination($identifier,$from,$to,$active,$countVisible));
239
+	public function htmlPagination($identifier, $from=1, $to=1, $active=NULL, $countVisible=NULL) {
240
+		return $this->addHtmlComponent(new HtmlPagination($identifier, $from, $to, $active, $countVisible));
241 241
 	}
242 242
 
243 243
 	/**
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 * @param int $numCols
249 249
 	 * @return HtmlGridSystem
250 250
 	 */
251
-	public function htmlGridSystem($identifier,$numRows=1,$numCols=NULL){
252
-		return $this->addHtmlComponent(new HtmlGridSystem($identifier,$numRows,$numCols));
251
+	public function htmlGridSystem($identifier, $numRows=1, $numCols=NULL) {
252
+		return $this->addHtmlComponent(new HtmlGridSystem($identifier, $numRows, $numCols));
253 253
 	}
254 254
 }
255 255
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/bootstrap/components/Tabs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 	public function __construct(JsUtils $js) {
21 21
 		parent::__construct($js);
22
-		$this->tabs=array ();
22
+		$this->tabs=array();
23 23
 	}
24 24
 
25 25
 	public function getTabs() {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	}
37 37
 
38 38
 	public function getTab($index) {
39
-		if ($index>0&&$index<sizeof($this->tabs))
39
+		if ($index>0 && $index<sizeof($this->tabs))
40 40
 			return $this->tabs [$index];
41 41
 	}
42 42
 
Please login to merge, or discard this patch.
Ajax/bootstrap/components/Collapse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 	}
66 66
 
67 67
 	protected function compileEvents() {
68
-		foreach ( $this->events as $event => $jsCode ) {
68
+		foreach ($this->events as $event => $jsCode) {
69 69
 			$this->jquery_code_for_compile []="$( \"".$this->collapsed."\" ).on(\"".$event."\" , function (e) {".$jsCode."});";
70 70
 		}
71 71
 	}
Please login to merge, or discard this patch.
Ajax/bootstrap/components/Splitbutton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 	 * @see \Ajax\common\SimpleComponent::compileEvents()
10 10
 	 */
11 11
 	protected function compileEvents() {
12
-		foreach ( $this->events as $event => $jsCode ) {
12
+		foreach ($this->events as $event => $jsCode) {
13 13
 			if ($event==="buttonClick") {
14 14
 				$this->jquery_code_for_compile []="$( \"#split-".preg_replace('/[^a-zA-Z0-9\-.]/s', '', $this->attachTo)."\" ).on(\"click\" , function( event, data ) {".$jsCode."});";
15 15
 			} else {
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 		}
38 38
 	}
39 39
 
40
-	public function setPlaceHolder($value){
40
+	public function setPlaceHolder($value) {
41 41
 		$this->setProperty("placeholder", $value);
42 42
 	}
43 43
 
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlCollapse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 		if (!isset($id))
36 36
 			if ($this->element->getTagName()==="a")
37 37
 				$id=$this->element->getProperty("href");
38
-		if (!isset($id)||$id==="#") {
38
+		if (!isset($id) || $id==="#") {
39 39
 			$id="collapse-".$this->element->getIdentifier();
40 40
 			$this->attachTo($id);
41 41
 		}
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.