Completed
Push — master ( fdc0c0...9de830 )
by Jean-Christophe
03:31
created
Ajax/Semantic.php 1 patch
Doc Comments   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 *
42 42
 	 * @param string $attachTo
43 43
 	 * @param string|array $params
44
-	 * @return $this
44
+	 * @return common\components\SimpleComponent
45 45
 	 */
46 46
 	public function generic($attachTo=NULL, $params=NULL) {
47 47
 		return $this->addComponent(new GenericComponent($this->js), $attachTo, $params);
@@ -50,16 +50,22 @@  discard block
 block discarded – undo
50 50
 	 *
51 51
 	 * @param string $attachTo
52 52
 	 * @param string|array $params
53
-	 * @return $this
53
+	 * @return common\components\SimpleComponent
54 54
 	 */
55 55
 	public function popup($attachTo=NULL, $params=NULL) {
56 56
 		return $this->addComponent(new Popup($this->js), $attachTo, $params);
57 57
 	}
58 58
 
59
+	/**
60
+	 * @param string $attachTo
61
+	 */
59 62
 	public function dropdown($attachTo=NULL, $params=NULL) {
60 63
 		return $this->addComponent(new Dropdown($this->js), $attachTo, $params);
61 64
 	}
62 65
 
66
+	/**
67
+	 * @param string $attachTo
68
+	 */
63 69
 	public function accordion($attachTo=NULL, $params=NULL) {
64 70
 		return $this->addComponent(new Accordion($this->js), $attachTo, $params);
65 71
 	}
@@ -220,7 +226,7 @@  discard block
 block discarded – undo
220 226
 
221 227
 	/**
222 228
 	 * @param string $identifier
223
-	 * @param number $niveau
229
+	 * @param integer $niveau
224 230
 	 * @param mixed $content
225 231
 	 * @param string $type
226 232
 	 */
@@ -239,7 +245,6 @@  discard block
 block discarded – undo
239 245
 	/**
240 246
 	 * Return a new Seamntic Html Breadcrumb
241 247
 	 * @param string $identifier
242
-	 * @param array $elements
243 248
 	 * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true
244 249
 	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
245 250
 	 * @return HtmlBreadcrumb
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlButton.php 1 patch
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 	}
54 54
 
55 55
 	public function setFocusable($value=true){
56
-		if($value===true)
57
-			$this->setProperty("tabindex", "0");
58
-		else{
56
+		if($value===true) {
57
+					$this->setProperty("tabindex", "0");
58
+		} else{
59 59
 			$this->removeProperty("tabindex");
60 60
 		}
61 61
 		return $this;
@@ -172,8 +172,9 @@  discard block
 block discarded – undo
172 172
 	}
173 173
 
174 174
 	public static function getSocial($identifier,$social,$value=NULL){
175
-		if($value===NULL)
176
-			$value=\ucfirst($social);
175
+		if($value===NULL) {
176
+					$value=\ucfirst($social);
177
+		}
177 178
 		$return=new HtmlButton($identifier,$value);
178 179
 		$return->addIcon($social);
179 180
 		return $return->addToPropertyCtrl("class", $social, Social::getConstants());
Please login to merge, or discard this patch.
Ajax/semantic/html/modules/HtmlAccordion.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,9 @@
 block discarded – undo
34 34
 	 * @see BaseHtml::run()
35 35
 	 */
36 36
 	public function run(JsUtils $js) {
37
-		if(isset($this->_bsComponent)===false)
38
-			$this->_bsComponent=$js->semantic()->accordion("#".$this->identifier,$this->params);
37
+		if(isset($this->_bsComponent)===false) {
38
+					$this->_bsComponent=$js->semantic()->accordion("#".$this->identifier,$this->params);
39
+		}
39 40
 			$this->addEventsOnRun($js);
40 41
 			return $this->_bsComponent;
41 42
 	}
Please login to merge, or discard this patch.