Completed
Push — master ( 66af5c...1d23a1 )
by Jean-Christophe
03:38
created
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
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Direction.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 Direction extends BaseEnum {
5
-	const RIGHT="right", LEFT="left",DOWN="down",UP="up",NONE="";
5
+	const RIGHT="right", LEFT="left", DOWN="down", UP="up", NONE="";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/RevealType.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 RevealType extends BaseEnum {
8
-	const FADE="fade",MOVE="move",ROTATE="rotate";
8
+	const FADE="fade", MOVE="move", ROTATE="rotate";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/traits/BaseTrait.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
 	protected abstract function addToPropertyCtrl($name, $value, $typeCtrl);
14 14
 	public abstract function addToProperty($name, $value, $separator=" ");
15 15
 
16
-	public function addVariation($variation){
16
+	public function addVariation($variation) {
17 17
 		return $this->addToPropertyCtrl("class", $variation, $this->_variations);
18 18
 	}
19 19
 
20
-	public function addState($state){
20
+	public function addState($state) {
21 21
 		return $this->addToPropertyCtrl("class", $state, $this->_states);
22 22
 	}
23 23
 
24
-	public function setVariation($variation){
24
+	public function setVariation($variation) {
25 25
 		$this->setPropertyCtrl("class", $variation, $this->_variations);
26 26
 		return $this->addToProperty("class", $this->_baseClass);
27 27
 	}
28 28
 
29
-	public function setState($state){
29
+	public function setState($state) {
30 30
 		$this->setPropertyCtrl("class", $state, $this->_states);
31 31
 		return $this->addToProperty("class", $this->_baseClass);
32 32
 	}
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 * {@inheritDoc}
36 36
 	 * @see \Ajax\common\html\HtmlSingleElement::setSize()
37 37
 	 */
38
-	public function setSize($size){
38
+	public function setSize($size) {
39 39
 		return $this->addToPropertyCtrl("class", $size, Size::getConstants());
40 40
 	}
41 41
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * show it is currently unable to be interacted with
44 44
 	 * @return \Ajax\semantic\html\elements\HtmlSemDoubleElement
45 45
 	 */
46
-	public function setDisabled(){
46
+	public function setDisabled() {
47 47
 		return $this->addToProperty("class", "disabled");
48 48
 	}
49 49
 
@@ -51,25 +51,25 @@  discard block
 block discarded – undo
51 51
 	 * @param string $color
52 52
 	 * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
53 53
 	 */
54
-	public function setColor($color){
55
-		return $this->addToPropertyCtrl("class", $color,Color::getConstants());
54
+	public function setColor($color) {
55
+		return $this->addToPropertyCtrl("class", $color, Color::getConstants());
56 56
 	}
57 57
 
58 58
 	/**
59 59
 	 * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
60 60
 	 */
61
-	public function setFluid(){
61
+	public function setFluid() {
62 62
 		return $this->addToProperty("class", "fluid");
63 63
 	}
64 64
 
65 65
 	/**
66 66
 	 * can be formatted to appear on dark backgrounds
67 67
 	 */
68
-	public function setInverted(){
68
+	public function setInverted() {
69 69
 		return $this->addToProperty("class", "inverted");
70 70
 	}
71 71
 
72
-	public function setCircular(){
72
+	public function setCircular() {
73 73
 		return $this->addToProperty("class", "circular");
74 74
 	}
75 75
 }
76 76
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/AbstractHtmlFormRadioCheckbox.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
 	protected $_input;
14 14
 	protected $_params=array();
15 15
 
16
-	public function __construct($identifier, $name=NULL,$label=NULL,$value=NULL,$type=NULL) {
17
-		$input=new HtmlFormInput($identifier,$label,"checkbox",$value);
16
+	public function __construct($identifier, $name=NULL, $label=NULL, $value=NULL, $type=NULL) {
17
+		$input=new HtmlFormInput($identifier, $label, "checkbox", $value);
18 18
 		parent::__construct("ck-field-".$identifier, $input);
19
-		if(isset($label)){
19
+		if (isset($label)) {
20 20
 			$input->swapLabel();
21 21
 			$label=$input->getLabel();
22 22
 			$label->setClass="hidden";
23
-			$label->setProperty("tabindex",0);
23
+			$label->setProperty("tabindex", 0);
24 24
 		}
25 25
 		$this->_input=$input;
26
-		$input->getField()->addToProperty("class","hidden");
26
+		$input->getField()->addToProperty("class", "hidden");
27 27
 	}
28 28
 
29
-	public function setType($checkboxType){
29
+	public function setType($checkboxType) {
30 30
 		return $this->_input->addToPropertyCtrl("class", $checkboxType, CheckboxType::getConstants());
31 31
 	}
32 32
 
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
 		return $this;
40 40
 	}
41 41
 
42
-	public function setReadonly(){
43
-		$this->_input->getField()->setProperty("disabled","disabled");
44
-		return $this->_input->addToProperty("class","read-only");
42
+	public function setReadonly() {
43
+		$this->_input->getField()->setProperty("disabled", "disabled");
44
+		return $this->_input->addToProperty("class", "read-only");
45 45
 	}
46 46
 
47 47
 	/**
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
 	 * @param string $action action to execute : check, uncheck or NULL for toggle
51 51
 	 * @return \Ajax\semantic\html\collections\form\AbstractHtmlFormRadioCheckbox
52 52
 	 */
53
-	public function attachEvent($selector,$action=NULL){
54
-		if(isset($action)!==false || \is_numeric($action)===true){
53
+	public function attachEvent($selector, $action=NULL) {
54
+		if (isset($action)!==false || \is_numeric($action)===true) {
55 55
 			$js='$("#%identifier%").checkbox("attach events", "'.$selector.'", "'.$action.'");';
56
-		}else{
56
+		}else {
57 57
 			$js='$("#%identifier%").checkbox("attach events", "'.$selector.'");';
58 58
 		}
59 59
 		$js=\str_replace("%identifier%", $this->_input->getIdentifier(), $js);
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
 	 * @param array $events associative array of events to attach ex : ["#bt-toggle","check"=>"#bt-check","uncheck"=>"#bt-uncheck"]
66 66
 	 * @return \Ajax\semantic\html\collections\form\AbstractHtmlFormRadioCheckbox
67 67
 	 */
68
-	public function attachEvents($events=array()){
69
-		if(\is_array($events)){
70
-			foreach ($events as $action=>$selector){
71
-				$this->attachEvent($selector,$action);
68
+	public function attachEvents($events=array()) {
69
+		if (\is_array($events)) {
70
+			foreach ($events as $action=>$selector) {
71
+				$this->attachEvent($selector, $action);
72 72
 			}
73 73
 		}
74 74
 		return $this;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 			foreach ($icons as $icon=>$size){
37 37
 				$group->addIcon($icon,$size);
38 38
 			}
39
-		}else{
39
+		} else{
40 40
 			foreach ($icons as $icon){
41 41
 				$group->addIcon($icon);
42 42
 			}
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlStepItem.php 2 patches
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -12,70 +12,70 @@
 block discarded – undo
12 12
 	public function __construct($identifier, $content) {
13 13
 		parent::__construct($identifier, "div", "step");
14 14
 		$this->content=array();
15
-		if(\is_array($content)){
16
-			if(JArray::isAssociative($content)===false){
17
-				$icon=JArray::getValue($content, "icon",0);
18
-				$title=JArray::getValue($content, "title",1);
19
-				$desc=JArray::getValue($content, "description",2);
20
-				$status=JArray::getValue($content, "status",3);
21
-			}else{
15
+		if (\is_array($content)) {
16
+			if (JArray::isAssociative($content)===false) {
17
+				$icon=JArray::getValue($content, "icon", 0);
18
+				$title=JArray::getValue($content, "title", 1);
19
+				$desc=JArray::getValue($content, "description", 2);
20
+				$status=JArray::getValue($content, "status", 3);
21
+			}else {
22 22
 				$icon=@$content["icon"];
23 23
 				$title=@$content["title"];
24 24
 				$desc=@$content["description"];
25 25
 				$status=@$content["status"];
26 26
 			}
27
-			if(isset($icon)===true){
27
+			if (isset($icon)===true) {
28 28
 				$this->setIcon($icon);
29 29
 			}
30
-			if(isset($status)===true){
30
+			if (isset($status)===true) {
31 31
 				$this->setStatus($status);
32 32
 			}
33
-			if(isset($title)===true){
34
-				$this->setTitle($title,$desc);
33
+			if (isset($title)===true) {
34
+				$this->setTitle($title, $desc);
35 35
 			}
36
-		}else{
36
+		}else {
37 37
 			$this->setContent($content);
38 38
 		}
39 39
 	}
40 40
 
41
-	public function setIcon($icon){
41
+	public function setIcon($icon) {
42 42
 		$this->content["icon"]=new HtmlIcon("icon-".$this->identifier, $icon);
43 43
 	}
44 44
 
45
-	private function createContent(){
46
-		$this->content["content"]=new HtmlSemDoubleElement("content-".$this->identifier,"div","content");
45
+	private function createContent() {
46
+		$this->content["content"]=new HtmlSemDoubleElement("content-".$this->identifier, "div", "content");
47 47
 		return $this->content["content"];
48 48
 	}
49 49
 
50
-	public function setTitle($title,$description=NULL){
51
-		$title=new HtmlSemDoubleElement("","div","title",$title);
52
-		if(\array_key_exists("content", $this->content)===false){
50
+	public function setTitle($title, $description=NULL) {
51
+		$title=new HtmlSemDoubleElement("", "div", "title", $title);
52
+		if (\array_key_exists("content", $this->content)===false) {
53 53
 			$this->createContent();
54 54
 		}
55 55
 		$this->content["content"]->addContent($title);
56
-		if(isset($description)){
57
-			$description=new HtmlSemDoubleElement("","div","description",$description);
56
+		if (isset($description)) {
57
+			$description=new HtmlSemDoubleElement("", "div", "description", $description);
58 58
 			$this->content["content"]->addContent($description);
59 59
 		}
60 60
 		return $this;
61 61
 	}
62 62
 
63
-	public function setActive(){
63
+	public function setActive() {
64 64
 		return $this->setStatus(StepStatus::ACTIVE);
65 65
 	}
66 66
 
67
-	public function setCompleted(){
67
+	public function setCompleted() {
68 68
 		return $this->setStatus(StepStatus::COMPLETED);
69 69
 	}
70 70
 
71
-	public function setStatus($status){
71
+	public function setStatus($status) {
72 72
 		return $this->addToPropertyCtrl("class", $status, StepStatus::getConstants());
73 73
 	}
74 74
 
75
-	public function asLink(){
75
+	public function asLink() {
76 76
 		return $this->setTagName("a");
77 77
 	}
78
-	public function removeStatus(){
78
+	public function removeStatus() {
79 79
 		$this->removePropertyValues("class", StepStatus::getConstants());
80 80
 	}
81 81
 }
82 82
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 				$title=JArray::getValue($content, "title",1);
19 19
 				$desc=JArray::getValue($content, "description",2);
20 20
 				$status=JArray::getValue($content, "status",3);
21
-			}else{
21
+			} else{
22 22
 				$icon=@$content["icon"];
23 23
 				$title=@$content["title"];
24 24
 				$desc=@$content["description"];
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 			if(isset($title)===true){
34 34
 				$this->setTitle($title,$desc);
35 35
 			}
36
-		}else{
36
+		} else{
37 37
 			$this->setContent($content);
38 38
 		}
39 39
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/menus/HtmlPaginationMenu.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@
 block discarded – undo
7 7
 use Phalcon\Mvc\View;
8 8
 use Ajax\semantic\html\elements\HtmlIcon;
9 9
 
10
-class HtmlPaginationMenu extends HtmlMenu{
10
+class HtmlPaginationMenu extends HtmlMenu {
11 11
 
12
-	public function __construct( $identifier, $items=array() ){
13
-		parent::__construct( $identifier,$items);
12
+	public function __construct($identifier, $items=array()) {
13
+		parent::__construct($identifier, $items);
14 14
 	}
15 15
 	/**
16 16
 	 * {@inheritDoc}
17 17
 	 * @see \Ajax\common\html\BaseHtml::compile()
18 18
 	 */
19
-	public function compile(JsUtils $js=NULL,View $view=NULL){
19
+	public function compile(JsUtils $js=NULL, View $view=NULL) {
20 20
 		$this->insertItem(new HtmlIcon("", "left chevron"));
21 21
 		$this->addItem(new HtmlIcon("", "right chevron"));
22 22
 		$this->asPagination();
23
-		return parent::compile($js,$view);
23
+		return parent::compile($js, $view);
24 24
 	}
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/content/table/HtmlTableContent.php 3 patches
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,8 +10,9 @@  discard block
 block discarded – undo
10 10
 
11 11
 	public function __construct( $identifier,$tagName="tbody",$rowCount=NULL,$colCount=NULL){
12 12
 		parent::__construct( $identifier, $tagName, "");
13
-		if(isset($rowCount) && isset($colCount))
14
-			$this->setRowCount($rowCount, $colCount);
13
+		if(isset($rowCount) && isset($colCount)) {
14
+					$this->setRowCount($rowCount, $colCount);
15
+		}
15 16
 	}
16 17
 
17 18
 	public function setRowCount($rowCount,$colCount){
@@ -79,8 +80,9 @@  discard block
 block discarded – undo
79 80
 
80 81
 	public function getColCount(){
81 82
 		$result=0;
82
-		if($this->count()>0)
83
-			$result=$this->getItem(0)->getColCount();
83
+		if($this->count()>0) {
84
+					$result=$this->getItem(0)->getColCount();
85
+		}
84 86
 		return $result;
85 87
 	}
86 88
 
@@ -90,7 +92,7 @@  discard block
 block discarded – undo
90 92
 			if(isset($row)===true){
91 93
 				$row->delete($colIndex);
92 94
 			}
93
-		}else{
95
+		} else{
94 96
 			$this->removeItem($rowIndex);
95 97
 		}
96 98
 		return $this;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 
71 71
 	/**
72 72
 	 * @param int $index
73
-	 * @return \Ajax\semantic\html\content\HtmlTR
73
+	 * @return \Ajax\common\html\HtmlDoubleElement
74 74
 	 */
75 75
 	public function getRow($index){
76 76
 		return $this->getItem($index);
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
  * @author jc
10 10
  *
11 11
  */
12
-class HtmlTableContent extends HtmlSemCollection{
12
+class HtmlTableContent extends HtmlSemCollection {
13 13
 
14
-	protected $_tdTagNames=["thead"=>"th","tbody"=>"td","tfoot"=>"th"];
14
+	protected $_tdTagNames=["thead"=>"th", "tbody"=>"td", "tfoot"=>"th"];
15 15
 
16 16
 	/**
17 17
 	 * @param string $identifier
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
 	 * @param int $rowCount
20 20
 	 * @param int $colCount
21 21
 	 */
22
-	public function __construct( $identifier,$tagName="tbody",$rowCount=NULL,$colCount=NULL){
23
-		parent::__construct( $identifier, $tagName, "");
24
-		if(isset($rowCount) && isset($colCount))
22
+	public function __construct($identifier, $tagName="tbody", $rowCount=NULL, $colCount=NULL) {
23
+		parent::__construct($identifier, $tagName, "");
24
+		if (isset($rowCount) && isset($colCount))
25 25
 			$this->setRowCount($rowCount, $colCount);
26 26
 	}
27 27
 
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
 	 * @param int $colCount
31 31
 	 * @return \Ajax\semantic\html\content\table\HtmlTableContent
32 32
 	 */
33
-	public function setRowCount($rowCount,$colCount){
33
+	public function setRowCount($rowCount, $colCount) {
34 34
 		$count=$this->count();
35
-		for($i=$count;$i<$rowCount;$i++){
35
+		for ($i=$count; $i<$rowCount; $i++) {
36 36
 			$this->addItem($colCount);
37 37
 		}
38
-		for($i=0;$i<$rowCount;$i++){
38
+		for ($i=0; $i<$rowCount; $i++) {
39 39
 			$item=$this->content[$i];
40 40
 			$item->setTdTagName($this->_tdTagNames[$this->tagName]);
41 41
 			$this->content[$i]->setColCount($colCount);
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 	 * {@inheritDoc}
48 48
 	 * @see \Ajax\common\html\HtmlCollection::createItem()
49 49
 	 */
50
-	protected function createItem($value){
50
+	protected function createItem($value) {
51 51
 		$count=$this->count();
52
-		$tr= new HtmlTR("", $value);
52
+		$tr=new HtmlTR("", $value);
53 53
 		$tr->setContainer($this, $count);
54 54
 		return $tr;
55 55
 	}
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 	 * @param int $col
61 61
 	 * @return \Ajax\semantic\html\content\HtmlTD
62 62
 	 */
63
-	public function getCell($row,$col){
63
+	public function getCell($row, $col) {
64 64
 		$row=$this->getItem($row);
65
-		if(isset($row)){
65
+		if (isset($row)) {
66 66
 			$col=$row->getItem($col);
67 67
 		}
68 68
 		return $col;
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 * @param int $index
73 73
 	 * @return \Ajax\semantic\html\content\HtmlTR
74 74
 	 */
75
-	public function getRow($index){
75
+	public function getRow($index) {
76 76
 		return $this->getItem($index);
77 77
 	}
78 78
 
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
 	 * @param mixed $value
83 83
 	 * @return \Ajax\semantic\html\content\table\HtmlTableContent
84 84
 	 */
85
-	public function setCellValue($row,$col,$value=""){
85
+	public function setCellValue($row, $col, $value="") {
86 86
 		$cell=$this->getCell($row, $col);
87
-		if(isset($cell)===true){
87
+		if (isset($cell)===true) {
88 88
 			$cell->setValue($value);
89 89
 		}
90 90
 		return $this;
@@ -94,35 +94,35 @@  discard block
 block discarded – undo
94 94
 	 * Sets the cells values
95 95
 	 * @param mixed $values
96 96
 	 */
97
-	public function setValues($values=array()){
97
+	public function setValues($values=array()) {
98 98
 		$count=$this->count();
99
-		if(\is_array($values)===false){
99
+		if (\is_array($values)===false) {
100 100
 			$values=\array_fill(0, $count, $values);
101 101
 		}
102
-		$count=\min(\sizeof($values),$count);
102
+		$count=\min(\sizeof($values), $count);
103 103
 
104
-		for ($i=0;$i<$count;$i++){
104
+		for ($i=0; $i<$count; $i++) {
105 105
 			$row=$this->content[$i];
106 106
 			$row->setValues($values[$i]);
107 107
 		}
108 108
 		return $this;
109 109
 	}
110 110
 
111
-	public function setColValues($colIndex,$values=array()){
111
+	public function setColValues($colIndex, $values=array()) {
112 112
 		$count=$this->count();
113
-		if(\is_array($values)===false){
113
+		if (\is_array($values)===false) {
114 114
 			$values=\array_fill(0, $count, $values);
115 115
 		}
116
-		$count=\min(\sizeof($values),$count);
117
-		for ($i=0;$i<$count;$i++){
116
+		$count=\min(\sizeof($values), $count);
117
+		for ($i=0; $i<$count; $i++) {
118 118
 			$this->getCell($i, $colIndex)->setValue($values[$i]);
119 119
 		}
120 120
 		return $this;
121 121
 	}
122 122
 
123
-	public function colCenter($colIndex){
123
+	public function colCenter($colIndex) {
124 124
 		$count=$this->count();
125
-		for ($i=0;$i<$count;$i++){
125
+		for ($i=0; $i<$count; $i++) {
126 126
 			$this->getCell($i, $colIndex)->textCenterAligned();
127 127
 		}
128 128
 		return $this;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * Returns the number of rows (TR)
133 133
 	 * @return int
134 134
 	 */
135
-	public function getRowCount(){
135
+	public function getRowCount() {
136 136
 		return $this->count();
137 137
 	}
138 138
 
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
 	 * Returns the number of columns (TD)
141 141
 	 * @return int
142 142
 	 */
143
-	public function getColCount(){
143
+	public function getColCount() {
144 144
 		$result=0;
145
-		if($this->count()>0)
145
+		if ($this->count()>0)
146 146
 			$result=$this->getItem(0)->getColCount();
147 147
 		return $result;
148 148
 	}
@@ -153,23 +153,23 @@  discard block
 block discarded – undo
153 153
 	 * @param int $colIndex
154 154
 	 * @return \Ajax\semantic\html\content\table\HtmlTableContent
155 155
 	 */
156
-	public function delete($rowIndex,$colIndex=NULL){
157
-		if(isset($colIndex)){
156
+	public function delete($rowIndex, $colIndex=NULL) {
157
+		if (isset($colIndex)) {
158 158
 			$row=$this->getItem($rowIndex);
159
-			if(isset($row)===true){
159
+			if (isset($row)===true) {
160 160
 				$row->delete($colIndex);
161 161
 			}
162
-		}else{
162
+		}else {
163 163
 			$this->removeItem($rowIndex);
164 164
 		}
165 165
 		return $this;
166 166
 	}
167 167
 
168
-	public function mergeCol($rowIndex=0,$colIndex=0){
168
+	public function mergeCol($rowIndex=0, $colIndex=0) {
169 169
 		return $this->getItem($rowIndex)->mergeCol($colIndex);
170 170
 	}
171 171
 
172
-	public function mergeRow($rowIndex=0,$colIndex=0){
172
+	public function mergeRow($rowIndex=0, $colIndex=0) {
173 173
 		return $this->getItem($rowIndex)->mergeRow($colIndex);
174 174
 	}
175 175
 
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlCollectionsTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 	 * @param mixed $value
18 18
 	 * @param CheckboxType $type
19 19
 	 */
20
-	public function htmlCheckbox($identifier, $label=NULL,$value=NULL,$type=NULL){
21
-		return $this->addHtmlComponent(new HtmlFormCheckbox($identifier,$label,$value,$type));
20
+	public function htmlCheckbox($identifier, $label=NULL, $value=NULL, $type=NULL) {
21
+		return $this->addHtmlComponent(new HtmlFormCheckbox($identifier, $label, $value, $type));
22 22
 	}
23 23
 
24 24
 	/**
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	 * @param int $rowCount
27 27
 	 * @param int $colCount
28 28
 	 */
29
-	public function htmlTable($identifier, $rowCount, $colCount){
29
+	public function htmlTable($identifier, $rowCount, $colCount) {
30 30
 		return $this->addHtmlComponent(new HtmlTable($identifier, $rowCount, $colCount));
31 31
 	}
32 32
 }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.