Completed
Push — master ( 3e8704...4367a8 )
by Jean-Christophe
03:21
created
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/BaseComponent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
  * @version 1.001
11 11
  */
12 12
 abstract class BaseComponent {
13
-	public $jquery_code_for_compile=array ();
14
-	protected $params=array ();
13
+	public $jquery_code_for_compile=array();
14
+	protected $params=array();
15 15
 	
16 16
 	/**
17 17
 	 *
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		if (is_array($typeCtrl)) {
60 60
 			if (array_search($value, $typeCtrl)===false)
61 61
 				throw new \Exception("La valeur passée a propriété `".$key."` ne fait pas partie des valeurs possibles : {".implode(",", $typeCtrl)."}");
62
-		} else {
62
+		}else {
63 63
 			if (!$typeCtrl($value)) {
64 64
 				throw new \Exception("La fonction ".$typeCtrl." a retourné faux pour l'affectation de la propriété ".$key);
65 65
 			}
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	}
69 69
 
70 70
 	public function setParams($params) {
71
-		foreach ( $params as $k => $v ) {
71
+		foreach ($params as $k => $v) {
72 72
 			$method="set".ucfirst($k);
73 73
 			if (method_exists($this, $method))
74 74
 				$this->$method($v);
Please login to merge, or discard this patch.
Ajax/common/BaseEnum.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
 
14 14
 	public static function getConstants() {
15 15
 		if (self::$constCacheArray==NULL) {
16
-			self::$constCacheArray=[ ];
16
+			self::$constCacheArray=[];
17 17
 		}
18 18
 		$calledClass=get_called_class();
19 19
 		if (!array_key_exists($calledClass, self::$constCacheArray)) {
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.
Ajax/common/JsCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
 	public function compile($keyAndvalues) {
27 27
 		$result=$this->mask;
28
-		foreach ( $keyAndvalues as $k => $v ) {
28
+		foreach ($keyAndvalues as $k => $v) {
29 29
 			$result=str_ireplace("%{$k}%", $v, $result);
30 30
 		}
31 31
 		return $result;
Please login to merge, or discard this patch.
Ajax/common/SimpleComponent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
 
17 17
 	public function __construct(JsUtils $js) {
18 18
 		parent::__construct($js);
19
-		$this->events=array ();
19
+		$this->events=array();
20 20
 	}
21 21
 
22 22
 	protected function compileEvents() {
23
-		foreach ( $this->events as $event => $jsCode ) {
23
+		foreach ($this->events as $event => $jsCode) {
24 24
 			$this->jquery_code_for_compile []="$( \"".$this->attachTo."\" ).on(\"".$event."\" , function( event, data ) {".$jsCode."});";
25 25
 		}
26 26
 	}
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		$result=implode("\n", $this->jquery_code_for_compile);
30 30
 		$result=str_ireplace("\"%", "", $result);
31 31
 		$result=str_ireplace("%\"", "", $result);
32
-		$result=str_replace(array (
32
+		$result=str_replace(array(
33 33
 				"\\n",
34 34
 				"\\r",
35 35
 				"\\t" 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
 	public function getScript() {
41 41
 		$allParams=$this->params;
42
-		$this->jquery_code_for_compile=array ();
42
+		$this->jquery_code_for_compile=array();
43 43
 		$this->jquery_code_for_compile []="$( \"".$this->attachTo."\" ).{$this->uiName}(".$this->getParamsAsJSON($allParams).");";
44 44
 		$this->compileEvents();
45 45
 		return $this->compileJQueryCode();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		if (is_array($typeCtrl)) {
67 67
 			if (array_search($value, $typeCtrl)===false)
68 68
 				throw new \Exception("La valeur passée a propriété `".$key."` pour le composant `".$this->uiName."` ne fait pas partie des valeurs possibles : {".implode(",", $typeCtrl)."}");
69
-		} else {
69
+		}else {
70 70
 			if (!$typeCtrl($value)) {
71 71
 				throw new \Exception("La fonction ".$typeCtrl." a retourné faux pour l'affectation de la propriété ".$key." au composant ".$this->uiName);
72 72
 			}
Please login to merge, or discard this patch.
Ajax/config/DefaultConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 class DefaultConfig extends Config {
8 8
 
9 9
 	public function __construct() {
10
-		parent::__construct(array (
11
-				"formElementsPrefix" => array (
10
+		parent::__construct(array(
11
+				"formElementsPrefix" => array(
12 12
 						"txt" => "input_text",
13 13
 						"btn" => "button",
14 14
 						"ck" => "checkbox",
Please login to merge, or discard this patch.
Ajax/lib/CDN.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  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.1.4",
8 8
 								"2.1.3",
9 9
 								"1.11.2"
10 10
 						)
11 11
 				),
12
-				"Google" => array (
12
+				"Google" => array(
13 13
 						"url" => "https://ajax.googleapis.com/ajax/libs/jquery/%version%/jquery.min.js",
14
-						"versions" => array (
14
+						"versions" => array(
15 15
 								"2.1.4",
16 16
 								"2.1.3",
17 17
 								"2.1.1",
@@ -20,17 +20,17 @@  discard block
 block discarded – undo
20 20
 						)
21 21
 				)
22 22
 		),
23
-		"JQueryUI" => array (
24
-				"MaxCDN" => array (
23
+		"JQueryUI" => array(
24
+				"MaxCDN" => array(
25 25
 						"core" => "http://code.jquery.com/ui/%version%/jquery-ui.min.js",
26 26
 						"css" => "http://code.jquery.com/ui/%version%/themes/%theme%/jquery-ui.css",
27
-						"versions" => array (
27
+						"versions" => array(
28 28
 								"1.11.4",
29 29
 								"1.11.3",
30 30
 								"1.11.2",
31 31
 								"1.10.4"
32 32
 						),
33
-						"themes" => array (
33
+						"themes" => array(
34 34
 								"black-tie",
35 35
 								"blitzer",
36 36
 								"cupertino",
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
 								"vader"
58 58
 						)
59 59
 				),
60
-				"Google" => array (
60
+				"Google" => array(
61 61
 						"core" => "https://ajax.googleapis.com/ajax/libs/jqueryui/%version%/jquery-ui.min.js",
62 62
 						"css" => "https://ajax.googleapis.com/ajax/libs/jqueryui/%version%/themes/%theme%/jquery-ui.css",
63
-						"versions" => array (
63
+						"versions" => array(
64 64
 								"1.11.4",
65 65
 								"1.11.3",
66 66
 								"1.11.2",
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 								"1.10.4",
70 70
 								"1.10.0"
71 71
 						),
72
-						"themes" => array (
72
+						"themes" => array(
73 73
 								"black-tie",
74 74
 								"blitzer",
75 75
 								"cupertino",
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
 						)
98 98
 				)
99 99
 		),
100
-		"Bootstrap" => array (
101
-				"MaxCDN" => array (
100
+		"Bootstrap" => array(
101
+				"MaxCDN" => array(
102 102
 						"core" => "http://maxcdn.bootstrapcdn.com/bootstrap/%version%/js/bootstrap.min.js",
103 103
 						"css" => "http://maxcdn.bootstrapcdn.com/bootstrap/%version%/css/bootstrap.min.css",
104
-						"versions" => array (
104
+						"versions" => array(
105 105
 								"3.3.5"
106 106
 						),
107
-						"themes" => array ()
107
+						"themes" => array()
108 108
 				)
109 109
 		)
110 110
 );
111 111
\ No newline at end of file
Please login to merge, or discard this patch.