Completed
Push — master ( e04e71...98392d )
by Jean-Christophe
03:50
created
Ajax/common/html/BaseHtml.php 1 patch
Doc Comments   +28 added lines patch added patch discarded remove patch
@@ -145,16 +145,26 @@  discard block
 block discarded – undo
145 145
 		return $this;
146 146
 	}
147 147
 
148
+	/**
149
+	 * @param string $name
150
+	 * @param string $value
151
+	 */
148 152
 	protected function removePropertyValue($name, $value) {
149 153
 		$this->properties[$name]=\str_replace($value, "", $this->properties[$name]);
150 154
 		return $this;
151 155
 	}
152 156
 
157
+	/**
158
+	 * @param string $name
159
+	 */
153 160
 	protected function removePropertyValues($name, $values) {
154 161
 		$this->removeOldValues($this->properties[$name], $values);
155 162
 		return $this;
156 163
 	}
157 164
 
165
+	/**
166
+	 * @param string $name
167
+	 */
158 168
 	protected function removeProperty($name) {
159 169
 		if (\array_key_exists($name, $this->properties))
160 170
 			unset($this->properties[$name]);
@@ -185,6 +195,9 @@  discard block
 block discarded – undo
185 195
 		return $this->addToProperty($name, $value);
186 196
 	}
187 197
 
198
+	/**
199
+	 * @param string $name
200
+	 */
188 201
 	public function addToPropertyCtrl($name, $value, $typeCtrl) {
189 202
 		return $this->addToPropertyUnique($name, $value, $typeCtrl);
190 203
 	}
@@ -333,14 +346,23 @@  discard block
 block discarded – undo
333 346
 		return $this;
334 347
 	}
335 348
 
349
+	/**
350
+	 * @param string $event
351
+	 */
336 352
 	public function getOn($event, $url, $responseElement="", $parameters=array()) {
337 353
 		return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters);
338 354
 	}
339 355
 
356
+	/**
357
+	 * @param string $url
358
+	 */
340 359
 	public function getOnClick($url, $responseElement="", $parameters=array()) {
341 360
 		return $this->getOn("click", $url, $responseElement, $parameters);
342 361
 	}
343 362
 
363
+	/**
364
+	 * @param string $event
365
+	 */
344 366
 	public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) {
345 367
 		$parameters["params"]=$params;
346 368
 		return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters);
@@ -350,6 +372,9 @@  discard block
 block discarded – undo
350 372
 		return $this->postOn("click", $url, $params, $responseElement, $parameters);
351 373
 	}
352 374
 
375
+	/**
376
+	 * @param string $event
377
+	 */
353 378
 	public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) {
354 379
 		$parameters["form"]=$form;
355 380
 		return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters);
@@ -399,6 +424,9 @@  discard block
 block discarded – undo
399 424
 		return $value;
400 425
 	}
401 426
 
427
+	/**
428
+	 * @param string $jqueryCall
429
+	 */
402 430
 	public function jsDoJquery($jqueryCall, $param="") {
403 431
 		return "$('#" . $this->identifier . "')." . $jqueryCall . "(" . $this->_prep_value($param) . ");";
404 432
 	}
Please login to merge, or discard this patch.
Ajax/common/BaseEnum.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
 	}
25 25
 
26 26
 	public static function getConstantValues($postFix="") {
27
-		if ($postFix == "")
28
-			return \array_values(self::getConstants());
29
-		else {
27
+		if ($postFix == "") {
28
+					return \array_values(self::getConstants());
29
+		} else {
30 30
 			return \array_map(function ($elem) use($postFix) {
31 31
 				return $elem . " " . $postFix;
32 32
 			}, \array_values(self::getConstants()));
Please login to merge, or discard this patch.
Ajax/semantic/html/views/HtmlCardGroups.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,9 @@
 block discarded – undo
19 19
 			$metas=JArray::getValue($value, "metas", 1);
20 20
 			$description=JArray::getValue($value, "description", 2);
21 21
 			$result->addCardHeaderContent($header, $metas, $description);
22
-		} else
23
-			$result->addCardContent($value);
22
+		} else {
23
+					$result->addCardContent($value);
24
+		}
24 25
 		return $result;
25 26
 	}
26 27
 
Please login to merge, or discard this patch.
Ajax/semantic/html/content/card/HtmlCardContent.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,8 +34,9 @@  discard block
 block discarded – undo
34 34
 
35 35
 	public function addImage($src="", $alt="", $size=NULL) {
36 36
 		$image=new HtmlImg("img-", $src, $alt);
37
-		if (isset($size))
38
-			$image->setSize($size);
37
+		if (isset($size)) {
38
+					$image->setSize($size);
39
+		}
39 40
 		$this->content["image"]=$image;
40 41
 		return $image;
41 42
 	}
@@ -45,8 +46,9 @@  discard block
 block discarded – undo
45 46
 			foreach ( $metas as $meta ) {
46 47
 				$this->addMeta($meta);
47 48
 			}
48
-		} else
49
-			$this->addMeta($metas);
49
+		} else {
50
+					$this->addMeta($metas);
51
+		}
50 52
 		return $this;
51 53
 	}
52 54
 
Please login to merge, or discard this patch.