Completed
Push — master ( fdc0c0...9de830 )
by Jean-Christophe
03:31
created
Ajax/semantic/html/base/constants/Emphasis.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 use Ajax\common\BaseEnum;
6 6
 
7 7
 abstract class Emphasis extends BaseEnum {
8
-	const PRIMARY="primary",SECONDARY="secondary",TERTIARY="tertiary";
8
+	const PRIMARY="primary", SECONDARY="secondary", TERTIARY="tertiary";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/service/JArray.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,21 +20,21 @@
 block discarded – undo
20 20
 	public static function getDefaultValue($array, $key, $default) {
21 21
 		if (array_key_exists($key, $array)) {
22 22
 			return $array [$key];
23
-		} else
23
+		}else
24 24
 			return $default;
25 25
 	}
26 26
 
27
-	public static function implode($glue,$pieces){
27
+	public static function implode($glue, $pieces) {
28 28
 		$result="";
29
-		if(\is_array($glue)){
29
+		if (\is_array($glue)) {
30 30
 			$size=\sizeof($pieces);
31
-			if($size>0){
32
-				for($i=0;$i<$size-1;$i++){
31
+			if ($size>0) {
32
+				for ($i=0; $i<$size-1; $i++) {
33 33
 					$result.=$pieces[$i].@$glue[$i];
34 34
 				}
35 35
 				$result.=$pieces[$size-1];
36 36
 			}
37
-		}else{
37
+		}else {
38 38
 			$result=\implode($glue, $pieces);
39 39
 		}
40 40
 		return $result;
Please login to merge, or discard this patch.
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,15 +13,17 @@  discard block
 block discarded – undo
13 13
 			return $array [$key];
14 14
 		}
15 15
 		$values=array_values($array);
16
-		if ($pos<sizeof($values))
17
-			return $values [$pos];
16
+		if ($pos<sizeof($values)) {
17
+					return $values [$pos];
18
+		}
18 19
 	}
19 20
 
20 21
 	public static function getDefaultValue($array, $key, $default) {
21 22
 		if (array_key_exists($key, $array)) {
22 23
 			return $array [$key];
23
-		} else
24
-			return $default;
24
+		} else {
25
+					return $default;
26
+		}
25 27
 	}
26 28
 
27 29
 	public static function implode($glue,$pieces){
@@ -34,7 +36,7 @@  discard block
 block discarded – undo
34 36
 				}
35 37
 				$result.=$pieces[$size-1];
36 38
 			}
37
-		}else{
39
+		} else{
38 40
 			$result=\implode($glue, $pieces);
39 41
 		}
40 42
 		return $result;
Please login to merge, or discard this patch.
Ajax/semantic/html/base/traits/LabeledIconTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,17 +13,17 @@
 block discarded – undo
13 13
 	 * @param boolean $labeled
14 14
 	 * @return \Ajax\semantic\html\elements\HtmlIcon
15 15
 	 */
16
-	public function addIcon($icon,$before=true,$labeled=false){
16
+	public function addIcon($icon, $before=true, $labeled=false) {
17 17
 		$iconO=$icon;
18
-		if(\is_string($icon)){
18
+		if (\is_string($icon)) {
19 19
 			$iconO=new HtmlIcon("icon-".$this->identifier, $icon);
20 20
 		}
21
-		if($labeled!==false){
22
-			$direction=($before===true)?Direction::LEFT:Direction::RIGHT;
21
+		if ($labeled!==false) {
22
+			$direction=($before===true) ? Direction::LEFT : Direction::RIGHT;
23 23
 			$this->addToProperty("class", $direction." labeled icon");
24 24
 			$this->tagName="div";
25 25
 		}
26
-		$this->addContent($iconO,$before);
26
+		$this->addContent($iconO, $before);
27 27
 		return $iconO;
28 28
 	}
29 29
 }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Color.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Ajax\common\BaseEnum;
6 6
 
7 7
 abstract class Color extends BaseEnum {
8
-	const STANDARD="",RED="red",ORANGE="orange",YELLOW="yellow",
9
-	OLIVE="olive",GREEN="green",TEAL="teal",
10
-	BLUE="blue",VIOLET="violet",PURPLE="purple",
11
-	PINK="pink",BROWN="brown",GREY="grey",BLACK="black";
8
+	const STANDARD="", RED="red", ORANGE="orange", YELLOW="yellow",
9
+	OLIVE="olive", GREEN="green", TEAL="teal",
10
+	BLUE="blue", VIOLET="violet", PURPLE="purple",
11
+	PINK="pink", BROWN="brown", GREY="grey", BLACK="black";
12 12
 }
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/components/Dropdown.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 	 * @param string $action one of "select","auto","activate","combo","nothing","hide"
18 18
 	 * @return \Ajax\semantic\components\Dropdown
19 19
 	 */
20
-	public function setAction($action){
21
-		return $this->setParamCtrl("action", $action,array("select","auto","activate","combo","nothing","hide"));
20
+	public function setAction($action) {
21
+		return $this->setParamCtrl("action", $action, array("select", "auto", "activate", "combo", "nothing", "hide"));
22 22
 	}
23 23
 
24 24
 	/**
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
 	 * @param string $event Event used to trigger dropdown (Hover, Click, Custom Event)
27 27
 	 * @return \Ajax\semantic\components\Dropdown
28 28
 	 */
29
-	public function setOn($event){
29
+	public function setOn($event) {
30 30
 		return $this->setParam("on", $event);
31 31
 	}
32 32
 
33
-	public function setFullTextSearch($value){
33
+	public function setFullTextSearch($value) {
34 34
 		return $this->setParam("fullTextSearch", $value);
35 35
 	}
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/lib/CDN.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2
-return array (
3
-		"JQuery" => array (
4
-				"MaxCDN" => array (
2
+return array(
3
+		"JQuery" => array(
4
+				"MaxCDN" => array(
5 5
 						"url" => "http://code.jquery.com/jquery-%version%.min.js",
6
-						"versions" => array (
6
+						"versions" => array(
7 7
 								"2.2.3",
8 8
 								"2.2.1",
9 9
 								"2.1.4",
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 								"1.11.2"
12 12
 						)
13 13
 				),
14
-				"Google" => array (
14
+				"Google" => array(
15 15
 						"url" => "https://ajax.googleapis.com/ajax/libs/jquery/%version%/jquery.min.js",
16
-						"versions" => array (
16
+						"versions" => array(
17 17
 								"2.2.2",
18 18
 								"2.2.1",
19 19
 								"2.2.0",
@@ -25,17 +25,17 @@  discard block
 block discarded – undo
25 25
 						)
26 26
 				)
27 27
 		),
28
-		"JQueryUI" => array (
29
-				"MaxCDN" => array (
28
+		"JQueryUI" => array(
29
+				"MaxCDN" => array(
30 30
 						"core" => "http://code.jquery.com/ui/%version%/jquery-ui.min.js",
31 31
 						"css" => "http://code.jquery.com/ui/%version%/themes/%theme%/jquery-ui.css",
32
-						"versions" => array (
32
+						"versions" => array(
33 33
 								"1.11.4",
34 34
 								"1.11.3",
35 35
 								"1.11.2",
36 36
 								"1.10.4"
37 37
 						),
38
-						"themes" => array (
38
+						"themes" => array(
39 39
 								"black-tie",
40 40
 								"blitzer",
41 41
 								"cupertino",
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 								"vader"
63 63
 						)
64 64
 				),
65
-				"Google" => array (
65
+				"Google" => array(
66 66
 						"core" => "https://ajax.googleapis.com/ajax/libs/jqueryui/%version%/jquery-ui.min.js",
67 67
 						"css" => "https://ajax.googleapis.com/ajax/libs/jqueryui/%version%/themes/%theme%/jquery-ui.css",
68
-						"versions" => array (
68
+						"versions" => array(
69 69
 								"1.11.4",
70 70
 								"1.11.3",
71 71
 								"1.11.2",
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 								"1.10.4",
75 75
 								"1.10.0"
76 76
 						),
77
-						"themes" => array (
77
+						"themes" => array(
78 78
 								"black-tie",
79 79
 								"blitzer",
80 80
 								"cupertino",
@@ -102,25 +102,25 @@  discard block
 block discarded – undo
102 102
 						)
103 103
 				)
104 104
 		),
105
-		"Bootstrap" => array (
106
-				"MaxCDN" => array (
105
+		"Bootstrap" => array(
106
+				"MaxCDN" => array(
107 107
 						"core" => "http://maxcdn.bootstrapcdn.com/bootstrap/%version%/js/bootstrap.min.js",
108 108
 						"css" => "http://maxcdn.bootstrapcdn.com/bootstrap/%version%/css/bootstrap.min.css",
109
-						"versions" => array (
109
+						"versions" => array(
110 110
 								"3.3.6",
111 111
 								"3.3.5"
112 112
 						),
113
-						"themes" => array ()
113
+						"themes" => array()
114 114
 				)
115 115
 		),
116
-		"Semantic" => array (
117
-				"cdnjs" => array (
116
+		"Semantic" => array(
117
+				"cdnjs" => array(
118 118
 						"core" => "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/%version%/semantic.min.js",
119 119
 						"css" => "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/%version%/semantic.min.js",
120
-						"versions" => array (
120
+						"versions" => array(
121 121
 								"2.1.8"
122 122
 						),
123
-						"themes" => array ()
123
+						"themes" => array()
124 124
 				)
125 125
 		)
126 126
 );
127 127
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/lib/CDNCoreCss.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
 	protected $localCss;
10 10
 	protected $framework;
11 11
 
12
-	public function __construct($framework,$version, $provider="MaxCDN") {
12
+	public function __construct($framework, $version, $provider="MaxCDN") {
13 13
 		parent::__construct($version, $provider);
14 14
 		$this->framework=$framework;
15 15
 		$this->data=$this->data [$framework];
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Social.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 namespace Ajax\semantic\html\base\constants;
3 3
 	use Ajax\common\BaseEnum;
4 4
 abstract class Social extends BaseEnum {
5
-	const FACEBOOK="facebook", TWITTER="twitter",GOOGLEPLUS="google plus",VK="vk",LINKEDIN="linkedin",INSTAGRAM="instagram",YOUTUBE="youtube";
5
+	const FACEBOOK="facebook", TWITTER="twitter", GOOGLEPLUS="google plus", VK="vk", LINKEDIN="linkedin", INSTAGRAM="instagram", YOUTUBE="youtube";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlAccordionItem.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,22 +19,22 @@
 block discarded – undo
19 19
 		$this->_title=$title;
20 20
 	}
21 21
 
22
-	public function setTitle($title){
22
+	public function setTitle($title) {
23 23
 		$this->_title=$title;
24 24
 	}
25 25
 
26
-	public function setIcon($icon){
26
+	public function setIcon($icon) {
27 27
 		$this->_icon=$icon;
28 28
 	}
29 29
 
30
-	protected function createTitleElement(){
31
-		$element=new HtmlSemDoubleElement("title-".$this->identifier,"div","title");
32
-		$element->setContent(array(new HtmlIcon("", $this->_icon),$this->_title));
30
+	protected function createTitleElement() {
31
+		$element=new HtmlSemDoubleElement("title-".$this->identifier, "div", "title");
32
+		$element->setContent(array(new HtmlIcon("", $this->_icon), $this->_title));
33 33
 		return $element;
34 34
 	}
35 35
 
36
-	public function compile(JsUtils $js=NULL, View $view=NULL){
36
+	public function compile(JsUtils $js=NULL, View $view=NULL) {
37 37
 		$this->titleElement=$this->createTitleElement();
38
-		return parent::compile($js,$view);
38
+		return parent::compile($js, $view);
39 39
 	}
40 40
 }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.