Completed
Push — master ( cd0fd2...97e05d )
by Jean-Christophe
03:14
created
Ajax/common/html/HtmlCollection.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -7,29 +7,29 @@  discard block
 block discarded – undo
7 7
 
8 8
 abstract class HtmlCollection extends HtmlDoubleElement {
9 9
 
10
-	public function __construct($identifier,$tagName="div"){
11
-		parent::__construct($identifier,$tagName);
10
+	public function __construct($identifier, $tagName="div") {
11
+		parent::__construct($identifier, $tagName);
12 12
 		$this->content=array();
13 13
 	}
14 14
 
15
-	public function addItems($items){
16
-		if(JArray::isAssociative($items)){
17
-			foreach ($items as $k=>$v){
18
-				$this->addItem([$k,$v]);
15
+	public function addItems($items) {
16
+		if (JArray::isAssociative($items)) {
17
+			foreach ($items as $k=>$v) {
18
+				$this->addItem([$k, $v]);
19 19
 			}
20
-		}else{
21
-			foreach ($items as $item){
20
+		}else {
21
+			foreach ($items as $item) {
22 22
 				$this->addItem($item);
23 23
 			}
24 24
 		}
25 25
 	}
26 26
 
27
-	public function setItems($items){
27
+	public function setItems($items) {
28 28
 		$this->content=$items;
29 29
 		return $this;
30 30
 	}
31 31
 
32
-	public function getItems(){
32
+	public function getItems() {
33 33
 		return $this->content;
34 34
 	}
35 35
 
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 	 * @param HtmlDoubleElement|string $item
39 39
 	 * @return \Ajax\common\html\HtmlDoubleElement
40 40
 	 */
41
-	public function addItem($item){
41
+	public function addItem($item) {
42 42
 		$itemO=$item;
43
-		if(\is_object($item)===false){
43
+		if (\is_object($item)===false) {
44 44
 			$itemO=$this->createItem($item);
45 45
 		}
46 46
 		$this->addContent($itemO);
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 		return $this;
67 67
 	}
68 68
 
69
-	public function removeItem($index){
69
+	public function removeItem($index) {
70 70
 		return array_splice($this->content, $index, 1);
71 71
 	}
72 72
 
73
-	public function count(){
73
+	public function count() {
74 74
 		return \sizeof($this->content);
75 75
 	}
76 76
 
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
 		$this->addItems($function($object));
82 82
 	}
83 83
 
84
-	public function apply($callBack){
85
-		foreach ($this->content as $item){
84
+	public function apply($callBack) {
85
+		foreach ($this->content as $item) {
86 86
 			$callBack($item);
87 87
 		}
88 88
 	}
Please login to merge, or discard this patch.
Ajax/common/BaseEnum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 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)) {
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 		return self::$constCacheArray [$calledClass];
24 24
 	}
25 25
 
26
-	public static function getConstantValues(){
26
+	public static function getConstantValues() {
27 27
 		return \array_values(self::getConstants());
28 28
 	}
29 29
 
Please login to merge, or discard this patch.
Ajax/Semantic.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 * @param string $identifier
62 62
 	 * @param string $icon
63 63
 	 */
64
-	public function htmlIcon($identifier,$icon){
64
+	public function htmlIcon($identifier, $icon) {
65 65
 		return $this->addHtmlComponent(new HtmlIcon($identifier, $icon));
66 66
 	}
67 67
 
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
 	 * @param string $size
71 71
 	 * @param array $icons
72 72
 	 */
73
-	public function htmlIconGroups($identifier,$size="",$icons=array()){
74
-		$group=new HtmlIconGroups($identifier,$size);
75
-		if(JArray::isAssociative($icons)){
76
-			foreach ($icons as $icon=>$size){
77
-				$group->add($icon,$size);
73
+	public function htmlIconGroups($identifier, $size="", $icons=array()) {
74
+		$group=new HtmlIconGroups($identifier, $size);
75
+		if (JArray::isAssociative($icons)) {
76
+			foreach ($icons as $icon=>$size) {
77
+				$group->add($icon, $size);
78 78
 			}
79
-		}else{
80
-			foreach ($icons as $icon){
79
+		}else {
80
+			foreach ($icons as $icon) {
81 81
 				$group->add($icon);
82 82
 			}
83 83
 		}
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
 	 * @param array $elements
90 90
 	 * @param boolean $asIcons
91 91
 	 */
92
-	public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){
93
-		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements,$asIcons));
92
+	public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) {
93
+		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements, $asIcons));
94 94
 	}
95 95
 
96 96
 	/**
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 * @param string $identifier
99 99
 	 * @param string $content
100 100
 	 */
101
-	public function htmlContainer($identifier,$content=""){
101
+	public function htmlContainer($identifier, $content="") {
102 102
 		return $this->addHtmlComponent(new HtmlContainer($identifier, $content));
103 103
 	}
104 104
 
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
 	 * @param string $identifier
107 107
 	 * @param string $content
108 108
 	 */
109
-	public function htmlDivider($identifier,$content="",$tagName="div"){
110
-		return $this->addHtmlComponent(new HtmlDivider($identifier, $content,$tagName));
109
+	public function htmlDivider($identifier, $content="", $tagName="div") {
110
+		return $this->addHtmlComponent(new HtmlDivider($identifier, $content, $tagName));
111 111
 	}
112 112
 
113 113
 	/**
@@ -115,32 +115,32 @@  discard block
 block discarded – undo
115 115
 	 * @param string $content
116 116
 	 * @param string $tagName
117 117
 	 */
118
-	public function htmlLabel($identifier,$content="",$tagName="div"){
119
-		return $this->addHtmlComponent(new HtmlLabel($identifier, $content,$tagName));
118
+	public function htmlLabel($identifier, $content="", $tagName="div") {
119
+		return $this->addHtmlComponent(new HtmlLabel($identifier, $content, $tagName));
120 120
 	}
121 121
 
122 122
 	/**
123 123
 	 * @param string $identifier
124 124
 	 * @param array $items
125 125
 	 */
126
-	public function htmlMenu($identifier,$items=array()){
127
-		return $this->addHtmlComponent(new HtmlMenu($identifier,$items));
126
+	public function htmlMenu($identifier, $items=array()) {
127
+		return $this->addHtmlComponent(new HtmlMenu($identifier, $items));
128 128
 	}
129 129
 
130 130
 	/**Adds an icon menu
131 131
 	 * @param string $identifier
132 132
 	 * @param array $items icons
133 133
 	 */
134
-	public function htmlIconMenu($identifier,$items=array()){
135
-		return $this->addHtmlComponent(new HtmlIconMenu($identifier,$items));
134
+	public function htmlIconMenu($identifier, $items=array()) {
135
+		return $this->addHtmlComponent(new HtmlIconMenu($identifier, $items));
136 136
 	}
137 137
 
138 138
 	/**Adds an labeled icon menu
139 139
 	 * @param string $identifier
140 140
 	 * @param array $items icons
141 141
 	 */
142
-	public function htmlLabeledIconMenu($identifier,$items=array()){
143
-		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier,$items));
142
+	public function htmlLabeledIconMenu($identifier, $items=array()) {
143
+		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier, $items));
144 144
 	}
145 145
 
146 146
 	/**
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 	 * @param string $value
149 149
 	 * @param array $items
150 150
 	 */
151
-	public function htmlDropdown($identifier, $value="", $items=array()){
152
-		return $this->addHtmlComponent(new HtmlDropdown($identifier,$value,$items));
151
+	public function htmlDropdown($identifier, $value="", $items=array()) {
152
+		return $this->addHtmlComponent(new HtmlDropdown($identifier, $value, $items));
153 153
 	}
154 154
 
155 155
 	/**
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
 	 * @param string $identifier
158 158
 	 * @param string $content
159 159
 	 */
160
-	public function htmlMessage($identifier, $content=""){
161
-		return $this->addHtmlComponent(new HtmlMessage($identifier,$content));
160
+	public function htmlMessage($identifier, $content="") {
161
+		return $this->addHtmlComponent(new HtmlMessage($identifier, $content));
162 162
 	}
163 163
 
164 164
 	/**
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
 	 * @param string $identifier
167 167
 	 * @param string $content
168 168
 	 */
169
-	public function htmlSegment($identifier, $content=""){
170
-		return $this->addHtmlComponent(new HtmlSegment($identifier,$content));
169
+	public function htmlSegment($identifier, $content="") {
170
+		return $this->addHtmlComponent(new HtmlSegment($identifier, $content));
171 171
 	}
172 172
 
173 173
 	/**
@@ -175,16 +175,16 @@  discard block
 block discarded – undo
175 175
 	 * @param string $identifier
176 176
 	 * @param array $items the segments
177 177
 	 */
178
-	public function htmlSegmentGroups($identifier, $items=array()){
179
-		return $this->addHtmlComponent(new HtmlSegmentGroups($identifier,$items));
178
+	public function htmlSegmentGroups($identifier, $items=array()) {
179
+		return $this->addHtmlComponent(new HtmlSegmentGroups($identifier, $items));
180 180
 	}
181 181
 
182 182
 	/**
183 183
 	 * @param string $identifier
184 184
 	 * @param mixed $content
185 185
 	 */
186
-	public function htmlPopup(BaseHtml $container,$identifier,$content){
187
-		return $this->addHtmlComponent(new HtmlPopup($container,$identifier,$content));
186
+	public function htmlPopup(BaseHtml $container, $identifier, $content) {
187
+		return $this->addHtmlComponent(new HtmlPopup($container, $identifier, $content));
188 188
 	}
189 189
 
190 190
 	/**
@@ -194,11 +194,11 @@  discard block
 block discarded – undo
194 194
 	 * @param boolean $createCols
195 195
 	 * @param boolean $implicitRows
196 196
 	 */
197
-	public function htmlGrid($identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){
198
-		return $this->addHtmlComponent(new HtmlGrid($identifier,$numRows,$numCols,$createCols,$implicitRows));
197
+	public function htmlGrid($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) {
198
+		return $this->addHtmlComponent(new HtmlGrid($identifier, $numRows, $numCols, $createCols, $implicitRows));
199 199
 	}
200 200
 
201
-	public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){
202
-		return $this->addHtmlComponent(new HtmlHeader($identifier,$niveau,$content,$type));
201
+	public function htmlHeader($identifier, $niveau=1, $content=NULL, $type="page") {
202
+		return $this->addHtmlComponent(new HtmlHeader($identifier, $niveau, $content, $type));
203 203
 	}
204 204
 }
205 205
\ No newline at end of file
Please login to merge, or discard this patch.