Passed
Push — master ( a5e5c2...bb8a0b )
by Jean-Christophe
02:08
created
Ajax/semantic/components/Popup.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 	 * @return $this
28 28
 	 */
29 29
 	public function setOnShow($jsCode) {
30
-		$jsCode=str_ireplace("\"","%quote%", $jsCode);
30
+		$jsCode=str_ireplace("\"", "%quote%", $jsCode);
31 31
 		return $this->setParam("onShow", "%function(){".$jsCode."}%");
32 32
 	}
33 33
 
34
-	public function setExclusive($value){
34
+	public function setExclusive($value) {
35 35
 		return $this->setParam("exclusive", $value);
36 36
 	}
37 37
 
@@ -40,19 +40,19 @@  discard block
 block discarded – undo
40 40
 	 * @param string $popup the css selector of the popup
41 41
 	 * @return \Ajax\semantic\components\Popup
42 42
 	 */
43
-	public function setPopup($popup){
43
+	public function setPopup($popup) {
44 44
 		return $this->setParam("popup", $popup);
45 45
 	}
46 46
 
47
-	public function setInline($value){
47
+	public function setInline($value) {
48 48
 		return $this->setParam("inline", $value);
49 49
 	}
50 50
 
51
-	public function setPosition($value){
51
+	public function setPosition($value) {
52 52
 		return $this->setParam("position", $value);
53 53
 	}
54 54
 
55
-	public function setSetFluidWidth($value){
55
+	public function setSetFluidWidth($value) {
56 56
 		return $this->setParam("setFluidWidth", $value);
57 57
 	}
58 58
 }
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticWidgetsTrait.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 	 * @param array $instances
19 19
 	 * @return DataTable
20 20
 	 */
21
-	public function dataTable($identifier,$model, $instances){
22
-		return $this->addHtmlComponent(new DataTable($identifier,$model,$instances));
21
+	public function dataTable($identifier, $model, $instances) {
22
+		return $this->addHtmlComponent(new DataTable($identifier, $model, $instances));
23 23
 	}
24 24
 
25 25
 	/**
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 	 * @param array $instances
29 29
 	 * @return JsonDataTable
30 30
 	 */
31
-	public function jsonDataTable($identifier,$model, $instances){
32
-		return $this->addHtmlComponent(new JsonDataTable($identifier,$model,$instances));
31
+	public function jsonDataTable($identifier, $model, $instances) {
32
+		return $this->addHtmlComponent(new JsonDataTable($identifier, $model, $instances));
33 33
 	}
34 34
 
35 35
 	/**
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 	 * @param object $instance
38 38
 	 * @return DataElement
39 39
 	 */
40
-	public function dataElement($identifier, $instance){
41
-		return $this->addHtmlComponent(new DataElement($identifier,$instance));
40
+	public function dataElement($identifier, $instance) {
41
+		return $this->addHtmlComponent(new DataElement($identifier, $instance));
42 42
 	}
43 43
 
44 44
 	/**
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 	 * @param object $instance
47 47
 	 * @return DataForm
48 48
 	 */
49
-	public function dataForm($identifier, $instance){
50
-		return $this->addHtmlComponent(new DataForm($identifier,$instance));
49
+	public function dataForm($identifier, $instance) {
50
+		return $this->addHtmlComponent(new DataForm($identifier, $instance));
51 51
 	}
52 52
 
53 53
 	/**
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 	 * @param object $instance
56 56
 	 * @return FormLogin
57 57
 	 */
58
-	public function defaultLogin($identifier,$instance=null){
59
-		return $this->addHtmlComponent(FormLogin::regular($identifier,$instance));
58
+	public function defaultLogin($identifier, $instance=null) {
59
+		return $this->addHtmlComponent(FormLogin::regular($identifier, $instance));
60 60
 	}
61 61
 
62 62
 	/**
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 	 * @param object $instance
65 65
 	 * @return FormLogin
66 66
 	 */
67
-	public function smallLogin($identifier,$instance=null){
68
-		return $this->addHtmlComponent(FormLogin::small($identifier,$instance));
67
+	public function smallLogin($identifier, $instance=null) {
68
+		return $this->addHtmlComponent(FormLogin::small($identifier, $instance));
69 69
 	}
70 70
 
71 71
 	/**
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 	 * @param object $instance
74 74
 	 * @return FormLogin
75 75
 	 */
76
-	public function segmentedLogin($identifier,$instance=null){
77
-		return $this->addHtmlComponent(FormLogin::attachedSegment($identifier,$instance));
76
+	public function segmentedLogin($identifier, $instance=null) {
77
+		return $this->addHtmlComponent(FormLogin::attachedSegment($identifier, $instance));
78 78
 	}
79 79
 
80 80
 	/**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * @param object $instance
83 83
 	 * @return FormAccount
84 84
 	 */
85
-	public function defaultAccount($identifier,$instance=null){
86
-		return $this->addHtmlComponent(FormAccount::regular($identifier,$instance));
85
+	public function defaultAccount($identifier, $instance=null) {
86
+		return $this->addHtmlComponent(FormAccount::regular($identifier, $instance));
87 87
 	}
88 88
 }
Please login to merge, or discard this patch.
Ajax/semantic/widgets/business/user/FormAccount.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -10,61 +10,61 @@
 block discarded – undo
10 10
 	 * @param string $identifier
11 11
 	 * @param object $modelInstance
12 12
 	 */
13
-	public function __construct($identifier,$modelInstance=null,$fieldsOrder=[],$fieldsDefinition=[],$fields=[],$captions=[],$separators=[]) {
14
-		parent::__construct($identifier,$modelInstance,$fieldsOrder,$fieldsDefinition,$fields,$captions,$separators);
13
+	public function __construct($identifier, $modelInstance=null, $fieldsOrder=[], $fieldsDefinition=[], $fields=[], $captions=[], $separators=[]) {
14
+		parent::__construct($identifier, $modelInstance, $fieldsOrder, $fieldsDefinition, $fields, $captions, $separators);
15 15
 	}
16 16
 
17
-	protected function getDefaultModelInstance(){
17
+	protected function getDefaultModelInstance() {
18 18
 		return new UserModel();
19 19
 	}
20 20
 
21
-	public static function regular($identifier,$modelInstance=null){
22
-		return new FormAccount($identifier,$modelInstance,
23
-				["message","login","password","passwordConf","email","submit","error"],
21
+	public static function regular($identifier, $modelInstance=null) {
22
+		return new FormAccount($identifier, $modelInstance,
23
+				["message", "login", "password", "passwordConf", "email", "submit", "error"],
24 24
 				["message"=>[["icon"=>"sign in"]],
25 25
 						"input0"=>[["rules"=>"empty"]],
26
-						"input1"=>[["inputType"=>"password","rules"=> ['minLength[6]', 'empty']]],
27
-						"input2"=>[["inputType"=>"password","rules"=> ['minLength[6]', 'empty', 'match[password]']]],
26
+						"input1"=>[["inputType"=>"password", "rules"=> ['minLength[6]', 'empty']]],
27
+						"input2"=>[["inputType"=>"password", "rules"=> ['minLength[6]', 'empty', 'match[password]']]],
28 28
 						"input3"=>[["rules"=>"email"]],
29 29
 						"submit"=>["green fluid"],
30 30
 						"message2"=>[["error"=>true]]],
31
-				["Account","login","password","passwordConf","email","submit","error"],
32
-				["Please enter your account informations","Login","Password","Password confirmation","Email address","Creation"],
33
-				[0,1,3,4,5,6]);
31
+				["Account", "login", "password", "passwordConf", "email", "submit", "error"],
32
+				["Please enter your account informations", "Login", "Password", "Password confirmation", "Email address", "Creation"],
33
+				[0, 1, 3, 4, 5, 6]);
34 34
 	}
35 35
 
36
-	public static function smallInline($identifier,$modelInstance=null){
37
-		$result=new FormAccount($identifier,$modelInstance,
38
-				["login","password","submit"],
39
-				["input0"=>[["rules"=>"empty"]],"input1"=>[["inputType"=>"password","rules"=>"empty"]],"submit"=>["green basic"]],
40
-				["login","password","submit"],
41
-				["","","Connection"],
36
+	public static function smallInline($identifier, $modelInstance=null) {
37
+		$result=new FormAccount($identifier, $modelInstance,
38
+				["login", "password", "submit"],
39
+				["input0"=>[["rules"=>"empty"]], "input1"=>[["inputType"=>"password", "rules"=>"empty"]], "submit"=>["green basic"]],
40
+				["login", "password", "submit"],
41
+				["", "", "Connection"],
42 42
 				[2]);
43 43
 			$result->addDividerBefore(0, "Connection");
44 44
 		return $result;
45 45
 	}
46 46
 
47
-	public static function small($identifier,$modelInstance=null){
48
-		$result=new FormAccount($identifier,$modelInstance,
49
-				["login","password","passwordConf","email","submit"],
47
+	public static function small($identifier, $modelInstance=null) {
48
+		$result=new FormAccount($identifier, $modelInstance,
49
+				["login", "password", "passwordConf", "email", "submit"],
50 50
 				[
51 51
 						"input0"=>[["rules"=>"empty"]],
52
-						"input1"=>[["inputType"=>"password","rules"=>['minLength[6]', 'empty']]],
53
-						"input2"=>[["inputType"=>"password","rules"=> ['minLength[6]', 'empty', 'match[password]']]],
52
+						"input1"=>[["inputType"=>"password", "rules"=>['minLength[6]', 'empty']]],
53
+						"input2"=>[["inputType"=>"password", "rules"=> ['minLength[6]', 'empty', 'match[password]']]],
54 54
 						"input3"=>[["rules"=>"email"]],
55 55
 						"submit"=>["green basic"]],
56
-				["login","password","passwordConf","email","submit"],
57
-				["Login","Password","Password confirmation","Email address","Creation"],
58
-				[1,2]);
56
+				["login", "password", "passwordConf", "email", "submit"],
57
+				["Login", "Password", "Password confirmation", "Email address", "Creation"],
58
+				[1, 2]);
59 59
 		$result->addDividerBefore(0, "Creation");
60 60
 		return $result;
61 61
 	}
62 62
 
63
-	public static function attachedSegment($identifier,$modelInstance=null){
64
-		$result=self::regular($identifier,$modelInstance);
65
-		$result->fieldAsMessage("message",["icon"=>"sign in","attached"=>true]);
66
-		$result->addWrapper("message",null,"<div class='ui attached segment'>");
67
-		$result->addWrapper("error", null,"</div>");
63
+	public static function attachedSegment($identifier, $modelInstance=null) {
64
+		$result=self::regular($identifier, $modelInstance);
65
+		$result->fieldAsMessage("message", ["icon"=>"sign in", "attached"=>true]);
66
+		$result->addWrapper("message", null, "<div class='ui attached segment'>");
67
+		$result->addWrapper("error", null, "</div>");
68 68
 		return $result;
69 69
 	}
70 70
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/base/traits/LabeledIconTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 trait LabeledIconTrait {
14 14
 
15 15
 	abstract public function addToProperty($name, $value, $separator=" ");
16
-	abstract public function addContent($content,$before=false);
16
+	abstract public function addContent($content, $before=false);
17 17
 
18 18
 	/**
19 19
 	 * Adds an icon before or after
@@ -22,17 +22,17 @@  discard block
 block discarded – undo
22 22
 	 * @param boolean $labeled
23 23
 	 * @return \Ajax\semantic\html\elements\HtmlIcon
24 24
 	 */
25
-	public function addIcon($icon,$before=true,$labeled=false){
25
+	public function addIcon($icon, $before=true, $labeled=false) {
26 26
 		$iconO=$icon;
27
-		if(\is_string($icon)){
27
+		if (\is_string($icon)) {
28 28
 			$iconO=new HtmlIcon("icon-".$this->identifier, $icon);
29 29
 		}
30
-		if($labeled!==false){
31
-			$direction=($before===true)?Direction::LEFT:Direction::RIGHT;
30
+		if ($labeled!==false) {
31
+			$direction=($before===true) ?Direction::LEFT : Direction::RIGHT;
32 32
 			$this->addToProperty("class", $direction." labeled icon");
33 33
 			$this->tagName="div";
34 34
 		}
35
-		$this->addContent($iconO,$before);
35
+		$this->addContent($iconO, $before);
36 36
 		return $iconO;
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
Ajax/semantic/widgets/datatable/Pagination.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	private $pages_visibles;
10 10
 	private $row_count;
11 11
 
12
-	public function __construct($items_per_page=10,$pages_visibles=null,$page=1,$row_count=null){
12
+	public function __construct($items_per_page=10, $pages_visibles=null, $page=1, $row_count=null) {
13 13
 		$this->items_per_page=$items_per_page;
14 14
 		$this->row_count=$row_count;
15 15
 		$this->page=$page;
@@ -17,30 +17,30 @@  discard block
 block discarded – undo
17 17
 		$this->visible=true;
18 18
 	}
19 19
 
20
-	public function getObjects($objects){
20
+	public function getObjects($objects) {
21 21
 		$auto=(!isset($this->row_count));
22 22
 		$os=$objects;
23
-		if(!\is_array($os)){
23
+		if (!\is_array($os)) {
24 24
 			$os=[];
25
-			foreach ($objects as $o){
25
+			foreach ($objects as $o) {
26 26
 				$os[]=$o;
27 27
 			}
28 28
 		}
29
-		$this->page_count = 0;
30
-		$row_count=($auto)?\sizeof($os):$this->row_count;
31
-		if (0 === $row_count) {
29
+		$this->page_count=0;
30
+		$row_count=($auto) ?\sizeof($os) : $this->row_count;
31
+		if (0===$row_count) {
32 32
 			$this->visible=false;
33 33
 		} else {
34 34
 
35
-			$this->page_count = (int)ceil($row_count / $this->items_per_page);
35
+			$this->page_count=(int)ceil($row_count/$this->items_per_page);
36 36
 			$this->visible=$this->page_count>1;
37
-			if($this->page > $this->page_count+1) {
38
-				$this->page = 1;
37
+			if ($this->page>$this->page_count+1) {
38
+				$this->page=1;
39 39
 			}
40 40
 		}
41
-		if($auto){
42
-			$offset = ($this->page - 1) * $this->items_per_page;
43
-			return array_slice($os, $offset,$this->items_per_page);
41
+		if ($auto) {
42
+			$offset=($this->page-1)*$this->items_per_page;
43
+			return array_slice($os, $offset, $this->items_per_page);
44 44
 		}
45 45
 		return $os;
46 46
 	}
@@ -76,22 +76,22 @@  discard block
 block discarded – undo
76 76
 		return $this->page_count;
77 77
 	}
78 78
 
79
-	public function getPagesNumbers(){
80
-		$middle= (int)ceil(($this->pages_visibles-1)/ 2);
79
+	public function getPagesNumbers() {
80
+		$middle=(int)ceil(($this->pages_visibles-1)/2);
81 81
 		$first=$this->page-$middle;
82
-		if($first<1){
82
+		if ($first<1) {
83 83
 			$first=1;
84 84
 		}
85 85
 		$last=$first+$this->pages_visibles-1;
86
-		if($last>$this->page_count){
86
+		if ($last>$this->page_count) {
87 87
 			$last=$this->page_count;
88 88
 		}
89 89
 		return \range($first, $last);
90 90
 	}
91 91
 
92 92
 	public function setPagesVisibles($pages_visibles) {
93
-		if(!isset($pages_visibles))
94
-			$pages_visibles=(int)ceil($this->row_count / $this->items_per_page)+1;
93
+		if (!isset($pages_visibles))
94
+			$pages_visibles=(int)ceil($this->row_count/$this->items_per_page)+1;
95 95
 		$this->pages_visibles=$pages_visibles;
96 96
 		return $this;
97 97
 	}
Please login to merge, or discard this patch.
Ajax/semantic/components/Modal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,16 +16,16 @@
 block discarded – undo
16 16
 		return $this;
17 17
 	}
18 18
 
19
-	public function showDimmer(){
19
+	public function showDimmer() {
20 20
 		return $this->setBehavior("hide dimmer");
21 21
 	}
22 22
 
23
-	public function setInverted(){
23
+	public function setInverted() {
24 24
 		$this->params["inverted"]=true;
25 25
 	}
26 26
 
27 27
 	public function setOnHidden($jsCode) {
28
-		$jsCode=str_ireplace("\"","%quote%", $jsCode);
28
+		$jsCode=str_ireplace("\"", "%quote%", $jsCode);
29 29
 		return $this->setParam("onHidden", "%function(){".$jsCode."}%");
30 30
 	}
31 31
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/content/view/HtmlViewItem.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@  discard block
 block discarded – undo
17 17
 abstract class HtmlViewItem extends HtmlSemDoubleElement {
18 18
 	use ContentPartTrait;
19 19
 
20
-	public function __construct($identifier,$baseClass,$content=NULL) {
20
+	public function __construct($identifier, $baseClass, $content=NULL) {
21 21
 		parent::__construct($identifier, "div", $baseClass);
22 22
 		$this->content=["content"=>new HtmlViewContent("content-".$this->identifier)];
23
-		if(isset($content))
23
+		if (isset($content))
24 24
 			$this->setContent($content);
25 25
 	}
26 26
 
27
-	public function setContent($value){
27
+	public function setContent($value) {
28 28
 		if (\is_array($value)) {
29 29
 			$image=JArray::getValue($value, "image", 0);
30 30
 			$content=JArray::getValue($value, "content", 1);
@@ -32,57 +32,57 @@  discard block
 block discarded – undo
32 32
 			if (isset($image)) {
33 33
 				$this->addImage($image);
34 34
 			}
35
-			if(isset($content))
35
+			if (isset($content))
36 36
 				$this->content["content"]->setContent($content);
37
-			if(isset($extra))
37
+			if (isset($extra))
38 38
 				$this->addExtraContent($extra);
39 39
 		}
40 40
 	}
41 41
 
42 42
 	private function createContent($content, $baseClass="content") {
43 43
 		$count=\sizeof($this->content);
44
-		$result=new HtmlViewContent("content-" . $count . "-" . $this->identifier, $content);
44
+		$result=new HtmlViewContent("content-".$count."-".$this->identifier, $content);
45 45
 		$result->setClass($baseClass);
46 46
 		return $result;
47 47
 	}
48 48
 
49 49
 	private function addElementIn($key, $element) {
50
-		if (\array_key_exists($key, $this->content) === false) {
50
+		if (\array_key_exists($key, $this->content)===false) {
51 51
 			$this->content[$key]=[];
52 52
 		}
53
-		if($this->content[$key] instanceof HtmlViewContent)
53
+		if ($this->content[$key] instanceof HtmlViewContent)
54 54
 			$this->content[$key]->addElement($element);
55 55
 		else
56 56
 			$this->content[$key][]=$element;
57 57
 		return $element;
58 58
 	}
59 59
 
60
-	public function addIcon($icon,$before=true){
61
-		return $this->addElementIn("icon",new HtmlIcon("icon-" . $this->identifier, $icon));
60
+	public function addIcon($icon, $before=true) {
61
+		return $this->addElementIn("icon", new HtmlIcon("icon-".$this->identifier, $icon));
62 62
 	}
63 63
 
64 64
 
65 65
 	public function addHeader($header, $niveau=4, $type="page") {
66 66
 		if (!$header instanceof HtmlHeader) {
67
-			$header=new HtmlHeader("header-" . $this->identifier, $niveau, $header, $type);
67
+			$header=new HtmlHeader("header-".$this->identifier, $niveau, $header, $type);
68 68
 		}
69
-		return $this->addElementIn("header",$this->createContent($header));
69
+		return $this->addElementIn("header", $this->createContent($header));
70 70
 	}
71 71
 
72 72
 	public function addImage($image, $title="") {
73 73
 		if (!$image instanceof HtmlImage) {
74
-			$image=new HtmlImage("image-" . $this->identifier, $image, $title);
74
+			$image=new HtmlImage("image-".$this->identifier, $image, $title);
75 75
 		}
76 76
 		$image->setClass("ui image");
77
-		return $this->content["image"]= $image;
77
+		return $this->content["image"]=$image;
78 78
 	}
79 79
 
80
-	public function addReveal($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL,$key="extra-content") {
80
+	public function addReveal($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL, $key="extra-content") {
81 81
 		$reveal=$visibleContent;
82 82
 		if (!$visibleContent instanceof HtmlReveal) {
83
-			$reveal=new HtmlReveal("reveral-" . $this->identifier, $visibleContent, $hiddenContent, $type, $attributeType);
83
+			$reveal=new HtmlReveal("reveral-".$this->identifier, $visibleContent, $hiddenContent, $type, $attributeType);
84 84
 		}
85
-		return $this->content[$key]= $reveal;
85
+		return $this->content[$key]=$reveal;
86 86
 	}
87 87
 
88 88
 	public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) {
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
 		if (!$visibleContent instanceof HtmlReveal) {
91 91
 			return $this->addReveal(new HtmlImage("", $visibleContent), new HtmlImage("", $hiddenContent), $type, $attributeType);
92 92
 		}
93
-		return $this->content["image"]= $reveal;
93
+		return $this->content["image"]=$reveal;
94 94
 	}
95 95
 
96 96
 	public function addExtraContent($content=array()) {
97
-		return $this->content["extra-content"]= $this->createContent($content, "extra content");
97
+		return $this->content["extra-content"]=$this->createContent($content, "extra content");
98 98
 	}
99 99
 
100 100
 	/*public function addContent($content=array(), $before=false) {
@@ -112,23 +112,23 @@  discard block
 block discarded – undo
112 112
 	 * @param boolean $before
113 113
 	 * @return HtmlButtonGroups
114 114
 	 */
115
-	public function addContentButtons($elements=array(), $asIcons=false,$part="extra",$before=false){
116
-		return $this->content["content"]->addContentButtons($elements,$asIcons,$part, $before);
115
+	public function addContentButtons($elements=array(), $asIcons=false, $part="extra", $before=false) {
116
+		return $this->content["content"]->addContentButtons($elements, $asIcons, $part, $before);
117 117
 	}
118 118
 
119 119
 
120 120
 
121
-	public function addItemHeaderContent($header, $metas=array(), $description=NULL,$extra=NULL) {
122
-		return $this->content["content"]->addHeaderContent($header, $metas, $description,$extra);
121
+	public function addItemHeaderContent($header, $metas=array(), $description=NULL, $extra=NULL) {
122
+		return $this->content["content"]->addHeaderContent($header, $metas, $description, $extra);
123 123
 	}
124 124
 
125 125
 	public function addItemContent($content=array()) {
126 126
 		$count=\sizeof($this->content);
127
-		return $this->addElementIn("content", new HtmlViewContent("content-" . $count . "-" . $this->identifier, $content));
127
+		return $this->addElementIn("content", new HtmlViewContent("content-".$count."-".$this->identifier, $content));
128 128
 	}
129 129
 
130 130
 	public function getItemContent() {
131
-		return $this->getPart("content",null,true);
131
+		return $this->getPart("content", null, true);
132 132
 	}
133 133
 
134 134
 	public function getItemExtraContent() {
@@ -150,13 +150,13 @@  discard block
 block discarded – undo
150 150
 	 * @see HtmlSemDoubleElement::compile()
151 151
 	 */
152 152
 	public function compile(JsUtils $js=NULL, &$view=NULL) {
153
-		$this->content=JArray::sortAssociative($this->content, ["header","image","icon","content","extra-content"]);
153
+		$this->content=JArray::sortAssociative($this->content, ["header", "image", "icon", "content", "extra-content"]);
154 154
 		return parent::compile($js, $view);
155 155
 	}
156 156
 
157
-	public function asLink($href="",$target=NULL) {
157
+	public function asLink($href="", $target=NULL) {
158 158
 		$this->addToProperty("class", "link");
159
-		if ($href !== "") {
159
+		if ($href!=="") {
160 160
 			$this->setProperty("href", $href);
161 161
 			if (isset($target))
162 162
 				$this->setProperty("target", $target);
Please login to merge, or discard this patch.
Ajax/semantic/html/content/view/HtmlViewGroups.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 abstract class HtmlViewGroups extends HtmlSemCollection {
11 11
 
12
-	public function __construct($identifier, $uiClass,$items=array()) {
12
+	public function __construct($identifier, $uiClass, $items=array()) {
13 13
 		parent::__construct($identifier, "div", $uiClass);
14 14
 		$this->addItems($items);
15 15
 	}
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * @param int $wide
42 42
 	 */
43 43
 	public function setWide($wide) {
44
-		$wide=Wide::getConstants()["W" . $wide];
44
+		$wide=Wide::getConstants()["W".$wide];
45 45
 		return $this->addToPropertyCtrl("class", $wide, Wide::getConstants());
46 46
 	}
47 47
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		return $this->addItem($function($object));
60 60
 	}
61 61
 
62
-	public function run(JsUtils $js){
62
+	public function run(JsUtils $js) {
63 63
 		$result=parent::run($js);
64 64
 		return $result->setItemSelector(".item");
65 65
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/table/traits/TableTrait.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -7,12 +7,12 @@  discard block
 block discarded – undo
7 7
  * @author jc
8 8
  * @property HtmlTable $_self
9 9
  */
10
-trait TableTrait{
10
+trait TableTrait {
11 11
 
12 12
 	abstract public function addEvent($event, $jsCode, $stopPropagation=false, $preventDefault=false);
13 13
 	abstract public function getOn($event, $url, $responseElement="", $parameters=array());
14 14
 
15
-	protected function addToPropertyTable($property,$value){
15
+	protected function addToPropertyTable($property, $value) {
16 16
 		return $this->_self->addToProperty($property, $value);
17 17
 	}
18 18
 
@@ -23,15 +23,15 @@  discard block
 block discarded – undo
23 23
 	public function setBasic($very=false) {
24 24
 		$table=$this->_self;
25 25
 		if ($very)
26
-			$table->addToPropertyCtrl("class", "very", array ("very" ));
27
-		return $table->addToPropertyCtrl("class", "basic", array ("basic" ));
26
+			$table->addToPropertyCtrl("class", "very", array("very"));
27
+		return $table->addToPropertyCtrl("class", "basic", array("basic"));
28 28
 	}
29 29
 
30 30
 	public function setCompact($very=false) {
31 31
 		$table=$this->_self;
32 32
 		if ($very)
33
-			$table->addToPropertyCtrl("class", "very", array ("very" ));
34
-		return $table->addToPropertyCtrl("class", "compact", array ("compact" ));
33
+			$table->addToPropertyCtrl("class", "very", array("very"));
34
+		return $table->addToPropertyCtrl("class", "compact", array("compact"));
35 35
 	}
36 36
 
37 37
 	public function setCollapsing() {
@@ -70,16 +70,16 @@  discard block
 block discarded – undo
70 70
 		return $this->addToPropertyTable("class", "striped");
71 71
 	}
72 72
 
73
-	public function onRowClick($jsCode, $stopPropagation=false, $preventDefault=false){
74
-		return $this->onRow("click", $jsCode,$stopPropagation,$preventDefault);
73
+	public function onRowClick($jsCode, $stopPropagation=false, $preventDefault=false) {
74
+		return $this->onRow("click", $jsCode, $stopPropagation, $preventDefault);
75 75
 	}
76 76
 
77
-	public function onRow($event,$jsCode, $stopPropagation=false, $preventDefault=false){
78
-		return $this->_self->addEvent($event."{{tr}}",$jsCode,$stopPropagation,$preventDefault);
77
+	public function onRow($event, $jsCode, $stopPropagation=false, $preventDefault=false) {
78
+		return $this->_self->addEvent($event."{{tr}}", $jsCode, $stopPropagation, $preventDefault);
79 79
 	}
80 80
 
81
-	public function getOnRow($event, $url, $responseElement="", $parameters=array()){
82
-		$parameters=\array_merge($parameters,["stopPropagation"=>false,"preventDefault"=>false]);
83
-		return $this->_self->getOn($event."{{tbody tr}}", $url,$responseElement,$parameters);
81
+	public function getOnRow($event, $url, $responseElement="", $parameters=array()) {
82
+		$parameters=\array_merge($parameters, ["stopPropagation"=>false, "preventDefault"=>false]);
83
+		return $this->_self->getOn($event."{{tbody tr}}", $url, $responseElement, $parameters);
84 84
 	}
85 85
 }
Please login to merge, or discard this patch.