Passed
Push — master ( e33ab3...35deb2 )
by Jean-Christophe
02:27
created
Ajax/semantic/html/base/constants/Size.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 namespace Ajax\semantic\html\base\constants;
3 3
 	use Ajax\common\BaseEnum;
4 4
 abstract class Size extends BaseEnum {
5
-	const MASSIVE="massive",HUGE="huge",BIG="big",LARGE="large",MEDIUM="",SMALL="small",TINY="tiny",MINI="mini";
5
+	const MASSIVE="massive", HUGE="huge", BIG="big", LARGE="large", MEDIUM="", SMALL="small", TINY="tiny", MINI="mini";
6 6
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/StepStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 use Ajax\common\BaseEnum;
6 6
 
7 7
 abstract class StepStatus extends BaseEnum {
8
-	const ACTIVE="active",COMPLETED="completed",DISABLED="disabled",NONE="";
8
+	const ACTIVE="active", COMPLETED="completed", DISABLED="disabled", NONE="";
9 9
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/base/traits/TextAlignmentTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,23 +12,23 @@
 block discarded – undo
12 12
 	 * @param string $value
13 13
 	 * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
14 14
 	 */
15
-	public function setTextAlignment($value=TextAlignment::LEFT){
16
-		return $this->addToPropertyCtrl("class", $value,TextAlignment::getConstants());
15
+	public function setTextAlignment($value=TextAlignment::LEFT) {
16
+		return $this->addToPropertyCtrl("class", $value, TextAlignment::getConstants());
17 17
 	}
18 18
 
19
-	public function textCenterAligned(){
19
+	public function textCenterAligned() {
20 20
 		return $this->setTextAlignment(TextAlignment::CENTER);
21 21
 	}
22 22
 
23
-	public function textJustified(){
23
+	public function textJustified() {
24 24
 		return $this->setTextAlignment(TextAlignment::JUSTIFIED);
25 25
 	}
26 26
 
27
-	public function textRightAligned(){
27
+	public function textRightAligned() {
28 28
 		return $this->setTextAlignment(TextAlignment::RIGHT);
29 29
 	}
30 30
 
31
-	public function textLeftAligned(){
31
+	public function textLeftAligned() {
32 32
 		return $this->setTextAlignment();
33 33
 	}
34 34
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/views/HtmlCard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class HtmlCard extends HtmlViewItem {
8 8
 
9
-	public function __construct($identifier,$content=NULL) {
9
+	public function __construct($identifier, $content=NULL) {
10 10
 		parent::__construct($identifier, "ui card", $content);
11 11
 	}
12 12
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/table/ActiveRow.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 * @param string $event
22 22
 	 * @param boolean $multiple
23 23
 	 */
24
-	public function __construct($table,$class="active",$event="click",$multiple=false){
24
+	public function __construct($table, $class="active", $event="click", $multiple=false) {
25 25
 		$this->table=$table;
26 26
 		$this->class=$class;
27 27
 		$this->event=$event;
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
 		return $this;
56 56
 	}
57 57
 
58
-	public function compile(){
58
+	public function compile() {
59 59
 		$multiple="";
60
-		if(!$this->multiple){
60
+		if (!$this->multiple) {
61 61
 			$multiple="$(this).closest('tbody').children('tr').removeClass('".$this->class."');";
62 62
 		}
63
-		$this->table->onRow($this->event, $multiple."$(this).toggleClass('".$this->class."');",false,false);
63
+		$this->table->onRow($this->event, $multiple."$(this).toggleClass('".$this->class."');", false, false);
64 64
 	}
65 65
 
66 66
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/menus/HtmlLabeledIconMenu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
  * @author jc
13 13
  * @version 1.001
14 14
  */
15
-class HtmlLabeledIconMenu extends HtmlMenu{
15
+class HtmlLabeledIconMenu extends HtmlMenu {
16 16
 
17 17
 
18 18
 	/**
19 19
 	 * @param string $identifier
20 20
 	 * @param array $items icons
21 21
 	 */
22
-	public function __construct( $identifier, $items=array()){
23
-		parent::__construct( $identifier, $items);
22
+	public function __construct($identifier, $items=array()) {
23
+		parent::__construct($identifier, $items);
24 24
 		$this->addToProperty("class", "labeled icon");
25 25
 	}
26 26
 
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
 	protected function createItem($value) {
32 32
 		$text="";
33 33
 		$v=$value;
34
-		if(\is_array($value)){
34
+		if (\is_array($value)) {
35 35
 			$v=@$value[0];
36 36
 			$text=@$value[1];
37 37
 		}
38 38
 		$count=\sizeof($this->content);
39 39
 		$value=new HtmlIcon("icon-".$count, $v);
40
-		$value->wrap("",$text);
41
-		$itemO=new HtmlLink("item-".$count,"",$value);
40
+		$value->wrap("", $text);
41
+		$itemO=new HtmlLink("item-".$count, "", $value);
42 42
 		return $itemO->setClass("item");
43 43
 	}
44 44
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/menus/HtmlIconMenu.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
  * @author jc
13 13
  * @version 1.001
14 14
  */
15
-class HtmlIconMenu extends HtmlMenu{
15
+class HtmlIconMenu extends HtmlMenu {
16 16
 
17 17
 
18 18
 	/**
19 19
 	 * @param string $identifier
20 20
 	 * @param array $items icons
21 21
 	 */
22
-	public function __construct( $identifier, $items=array()){
23
-		parent::__construct( $identifier, $items);
22
+	public function __construct($identifier, $items=array()) {
23
+		parent::__construct($identifier, $items);
24 24
 		$this->addToProperty("class", "icon");
25 25
 	}
26 26
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	protected function createItem($value) {
33 33
 		$count=\sizeof($this->content);
34 34
 		$value=new HtmlIcon("icon-".$count, $value);
35
-		$itemO=new HtmlLink("item-".$count,"",$value);
35
+		$itemO=new HtmlLink("item-".$count, "", $value);
36 36
 		return $itemO->setClass("item");
37 37
 	}
38 38
 }
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/traits/FieldTrait.php 2 patches
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@  discard block
 block discarded – undo
47 47
 		$actionO=$action;
48 48
 		if (\is_object($action) === false) {
49 49
 			$actionO=new HtmlButton("action-" . $this->identifier, $action);
50
-			if (isset($icon))
51
-				$actionO->addIcon($icon, true, $labeled);
50
+			if (isset($icon)) {
51
+							$actionO->addIcon($icon, true, $labeled);
52
+			}
52 53
 		}
53 54
 		$field->addToProperty("class", $direction . " action");
54 55
 		$field->addContent($actionO, \strstr($direction, Direction::LEFT) !== false);
@@ -82,8 +83,9 @@  discard block
 block discarded – undo
82 83
 
83 84
 	public function setDisabled($disable=true) {
84 85
 		$field=$this->getField();
85
-		if($disable)
86
-			$field->addToProperty("class", "disabled");
86
+		if($disable) {
87
+					$field->addToProperty("class", "disabled");
88
+		}
87 89
 		return $this;
88 90
 	}
89 91
 }
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 	abstract public function addToProperty($name, $value, $separator=" ");
21 21
 	abstract public function addLabel($caption, $style="label-default", $leftSeparator=" ");
22
-	abstract public function addContent($content,$before=false);
22
+	abstract public function addContent($content, $before=false);
23 23
 	abstract public function getField();
24 24
 	abstract public function getDataField();
25 25
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	}
29 29
 
30 30
 	public function addLoading() {
31
-		if ($this->_hasIcon === false) {
31
+		if ($this->_hasIcon===false) {
32 32
 			throw new \Exception("Input must have an icon for showing a loader, use addIcon before");
33 33
 		}
34 34
 		return $this->addToProperty("class", State::LOADING);
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function labeled($label, $direction=Direction::LEFT, $icon=NULL) {
44 44
 		$field=$this->getField();
45
-		$labelO=$field->addLabel($label,$direction===Direction::LEFT,$icon);
46
-		$field->addToProperty("class", $direction . " labeled");
45
+		$labelO=$field->addLabel($label, $direction===Direction::LEFT, $icon);
46
+		$field->addToProperty("class", $direction." labeled");
47 47
 		return $labelO;
48 48
 	}
49 49
 
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 	 * @param string $checkboxType
55 55
 	 * @return HtmlLabel
56 56
 	 */
57
-	public function labeledCheckbox($direction=Direction::LEFT,$caption="",$value=NULL,$checkboxType=NULL){
58
-		return $this->labeled(new HtmlCheckbox("lbl-ck-".$this->getField()->getIdentifier(),$caption,$value,$checkboxType),$direction);
57
+	public function labeledCheckbox($direction=Direction::LEFT, $caption="", $value=NULL, $checkboxType=NULL) {
58
+		return $this->labeled(new HtmlCheckbox("lbl-ck-".$this->getField()->getIdentifier(), $caption, $value, $checkboxType), $direction);
59 59
 	}
60 60
 
61 61
 	/**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 * @return HtmlLabel
65 65
 	 */
66 66
 	public function labeledToCorner($icon, $direction=Direction::LEFT) {
67
-		return $this->labeled("", $direction . " corner", $icon)->toCorner($direction);
67
+		return $this->labeled("", $direction." corner", $icon)->toCorner($direction);
68 68
 	}
69 69
 
70 70
 	/**
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
 	public function addAction($action, $direction=Direction::RIGHT, $icon=NULL, $labeled=false) {
78 78
 		$field=$this->getField();
79 79
 		$actionO=$action;
80
-		if (\is_object($action) === false) {
81
-			$actionO=new HtmlButton("action-" . $this->identifier, $action);
80
+		if (\is_object($action)===false) {
81
+			$actionO=new HtmlButton("action-".$this->identifier, $action);
82 82
 			if (isset($icon))
83 83
 				$actionO->addIcon($icon, true, $labeled);
84 84
 		}
85
-		$field->addToProperty("class", $direction . " action");
86
-		$field->addContent($actionO, \strstr($direction, Direction::LEFT) !== false);
85
+		$field->addToProperty("class", $direction." action");
86
+		$field->addContent($actionO, \strstr($direction, Direction::LEFT)!==false);
87 87
 		return $actionO;
88 88
 	}
89 89
 
@@ -93,34 +93,34 @@  discard block
 block discarded – undo
93 93
 	 * @param string $direction
94 94
 	 * @return HtmlLabel
95 95
 	 */
96
-	public function addDropdown($label="", $items=array(),$direction=Direction::RIGHT){
97
-		$labelO=new HtmlDropdown("dd-".$this->identifier,$label,$items);
98
-		$labelO->asSelect("select-".$this->identifier,false,true);
99
-		return $this->labeled($labelO,$direction);
96
+	public function addDropdown($label="", $items=array(), $direction=Direction::RIGHT) {
97
+		$labelO=new HtmlDropdown("dd-".$this->identifier, $label, $items);
98
+		$labelO->asSelect("select-".$this->identifier, false, true);
99
+		return $this->labeled($labelO, $direction);
100 100
 	}
101 101
 
102 102
 	public function setTransparent() {
103 103
 		return $this->getField()->addToProperty("class", "transparent");
104 104
 	}
105 105
 
106
-	public function setReadonly(){
106
+	public function setReadonly() {
107 107
 		$this->getDataField()->setProperty("readonly", "");
108 108
 		return $this;
109 109
 	}
110 110
 
111
-	public function setName($name){
112
-		$this->getDataField()->setProperty("name",$name);
111
+	public function setName($name) {
112
+		$this->getDataField()->setProperty("name", $name);
113 113
 		return $this;
114 114
 	}
115 115
 
116
-	public function setFluid(){
117
-		$this->getField()->addToProperty("class","fluid");
116
+	public function setFluid() {
117
+		$this->getField()->addToProperty("class", "fluid");
118 118
 		return $this;
119 119
 	}
120 120
 
121 121
 	public function setDisabled($disable=true) {
122 122
 		$field=$this->getField();
123
-		if($disable)
123
+		if ($disable)
124 124
 			$field->addToProperty("class", "disabled");
125 125
 		return $this;
126 126
 	}
Please login to merge, or discard this patch.
Ajax/semantic/widgets/datatable/PositionInTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,5 +3,5 @@
 block discarded – undo
3 3
 use Ajax\common\BaseEnum;
4 4
 
5 5
 abstract class PositionInTable extends BaseEnum {
6
-	const BEFORETABLE="beforeTable",AFTERTABLE="afterTable",HEADER="thead",FOOTER="tfoot",BODY="tbody";
6
+	const BEFORETABLE="beforeTable", AFTERTABLE="afterTable", HEADER="thead", FOOTER="tfoot", BODY="tbody";
7 7
 }
Please login to merge, or discard this patch.