Completed
Push — master ( 98392d...8b7375 )
by Jean-Christophe
04:05
created
Ajax/semantic/html/base/constants/Wide.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;
3 3
 	use Ajax\common\BaseEnum;
4 4
 abstract class Wide extends BaseEnum {
5
-	const W1="one", W2="two", W3="three", W4="four",W5="five", W6="six", W7="seven", W8="eight",W9="nine",W10="ten",W11="eleven",W12="twelve",W13="thirteen",W14="fourteen",W15="fifteen",W16="sixteen";
5
+	const W1="one", W2="two", W3="three", W4="four", W5="five", W6="six", W7="seven", W8="eight", W9="nine", W10="ten", W11="eleven", W12="twelve", W13="thirteen", W14="fourteen", W15="fifteen", W16="sixteen";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/VerticalAlignment.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
 class VerticalAlignment extends BaseEnum {
8
-	const TOP="top",MIDDLE="middle",BOTTOM="bottom";
8
+	const TOP="top", MIDDLE="middle", BOTTOM="bottom";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Side.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 Side extends BaseEnum {
8
-	const BOTTOM="bottom",BOTH="",TOP="top";
8
+	const BOTTOM="bottom", BOTH="", TOP="top";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
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;
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",MINI="mini",TINY="tiny";
5
+	const MASSIVE="massive", HUGE="huge", BIG="big", LARGE="large", MEDIUM="", SMALL="small", MINI="mini", TINY="tiny";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 class HtmlContainer extends HtmlSemDoubleElement {
13 13
 
14 14
 	public function __construct($identifier, $content="") {
15
-		parent::__construct($identifier, "div","ui container");
15
+		parent::__construct($identifier, "div", "ui container");
16 16
 		$this->content=$content;
17 17
 	}
18 18
 
19
-	public function setAlignement($value="justified"){
20
-		if($value!=="justified")
19
+	public function setAlignement($value="justified") {
20
+		if ($value!=="justified")
21 21
 			$value.=" aligned";
22 22
 		return $this->addToProperty("class", $value);
23 23
 	}
24 24
 
25
-	public function setTextContainer(){
25
+	public function setTextContainer() {
26 26
 		return $this->addToProperty("class", "text");
27 27
 	}
28 28
 }
29 29
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlDivider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
  */
12 12
 class HtmlDivider extends HtmlDoubleElement {
13 13
 
14
-	public function __construct($identifier, $content="",$tagName="div") {
15
-		parent::__construct($identifier, $tagName,"ui divider");
14
+	public function __construct($identifier, $content="", $tagName="div") {
15
+		parent::__construct($identifier, $tagName, "ui divider");
16 16
 		$this->content=$content;
17 17
 	}
18 18
 
@@ -20,23 +20,23 @@  discard block
 block discarded – undo
20 20
 	 * vertical divider
21 21
 	 * @return \Ajax\semantic\html\elements\HtmlDivider
22 22
 	 */
23
-	public function setVertical(){
24
-		return $this->addToPropertyUnique("class", "vertical", array("vertical","horizontal"));
23
+	public function setVertical() {
24
+		return $this->addToPropertyUnique("class", "vertical", array("vertical", "horizontal"));
25 25
 	}
26 26
 
27 27
 	/**
28 28
 	 * horizontal divider
29 29
 	 * @return \Ajax\semantic\html\elements\HtmlDivider
30 30
 	 */
31
-	public function setHorizontal(){
32
-		return $this->addToPropertyUnique("class", "horizontal", array("vertical","horizontal"));
31
+	public function setHorizontal() {
32
+		return $this->addToPropertyUnique("class", "horizontal", array("vertical", "horizontal"));
33 33
 	}
34 34
 
35 35
 	/**
36 36
 	 * hide the divider
37 37
 	 * @return \Ajax\semantic\html\elements\HtmlDivider
38 38
 	 */
39
-	public function setHidden(){
39
+	public function setHidden() {
40 40
 		return $this->addToProperty("class", "hidden");
41 41
 	}
42 42
 
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
 	 * fitted, without any space above or below it
45 45
 	 * @return \Ajax\semantic\html\elements\HtmlDivider
46 46
 	 */
47
-	public function setFitted(){
47
+	public function setFitted() {
48 48
 		return $this->addToProperty("class", "fitted");
49 49
 	}
50 50
 
51 51
 	/**
52 52
 	 * @return \Ajax\semantic\html\elements\HtmlDivider
53 53
 	 */
54
-	public function asHeader(){
54
+	public function asHeader() {
55 55
 		return $this->addToProperty("class", "header");
56 56
 	}
57 57
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 * inverts the divider colors
60 60
 	 * @return \Ajax\semantic\html\elements\HtmlDivider
61 61
 	 */
62
-	public function setInverted(){
62
+	public function setInverted() {
63 63
 		return $this->addToProperty("class", "inverted");
64 64
 	}
65 65
 }
66 66
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlSegmentGroups.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,20 +6,20 @@  discard block
 block discarded – undo
6 6
 use Ajax\semantic\html\base\HtmlSemCollection;
7 7
 use Ajax\semantic\html\base\constants\Sens;
8 8
 
9
-class HtmlSegmentGroups extends HtmlSemCollection{
9
+class HtmlSegmentGroups extends HtmlSemCollection {
10 10
 
11 11
 
12
-	public function __construct( $identifier, $items=array()){
13
-		parent::__construct( $identifier, "div","ui segments");
12
+	public function __construct($identifier, $items=array()) {
13
+		parent::__construct($identifier, "div", "ui segments");
14 14
 		$this->addItems($items);
15 15
 	}
16 16
 
17 17
 
18
-	protected function createItem($value){
19
-		return new HtmlSegment("segment-".$this->count(),$value);
18
+	protected function createItem($value) {
19
+		return new HtmlSegment("segment-".$this->count(), $value);
20 20
 	}
21 21
 
22
-	protected function createCondition($value){
22
+	protected function createCondition($value) {
23 23
 		return !($value instanceof HtmlSegment);
24 24
 	}
25 25
 
@@ -28,16 +28,16 @@  discard block
 block discarded – undo
28 28
 	 * @param string $type one of "raised","stacked","piled" default : ""
29 29
 	 * @return \Ajax\semantic\html\elements\HtmlSegmentGroups
30 30
 	 */
31
-	public function setType($type){
31
+	public function setType($type) {
32 32
 		return $this->addToPropertyCtrl("class", $type, SegmentType::getConstants());
33 33
 	}
34 34
 
35
-	public function setSens($sens=Sens::VERTICAL){
35
+	public function setSens($sens=Sens::VERTICAL) {
36 36
 		return $this->addToPropertyCtrl("class", $sens, Sens::getConstants());
37 37
 	}
38 38
 
39
-	public static function group($identifier,$items=array(),$type="",$sens=Sens::VERTICAL){
40
-		$group=new HtmlSegmentGroups($identifier,$items);
39
+	public static function group($identifier, $items=array(), $type="", $sens=Sens::VERTICAL) {
40
+		$group=new HtmlSegmentGroups($identifier, $items);
41 41
 		$group->setSens($sens);
42 42
 		return $group->setType($type);
43 43
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Emphasis.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 Emphasis extends BaseEnum {
8
-	const PRIMARY="primary",SECONDARY="secondary",TERTIARY="tertiary";
8
+	const PRIMARY="primary", SECONDARY="secondary", TERTIARY="tertiary";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/HtmlSemNavElement.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
 	protected $_contentSeparator="";
23 23
 
24 24
 
25
-	public function __construct($identifier,$tagName,$baseClass){
26
-		parent::__construct($identifier,$tagName,$baseClass);
25
+	public function __construct($identifier, $tagName, $baseClass) {
26
+		parent::__construct($identifier, $tagName, $baseClass);
27 27
 		$this->root="";
28 28
 		$this->attr="data-ajax";
29 29
 	}
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
 	 * @param string $attr the html attribute used to build the elements url
36 36
 	 * @return HtmlNavElement
37 37
 	 */
38
-	public function autoGetOnClick($targetSelector){
39
-		return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr));
38
+	public function autoGetOnClick($targetSelector) {
39
+		return $this->getOnClick($this->root, $targetSelector, array("attr"=>$this->attr));
40 40
 	}
41 41
 
42
-	public function contentAsString(){
42
+	public function contentAsString() {
43 43
 		return JArray::implode($this->_contentSeparator, $this->content);
44 44
 	}
45 45
 
@@ -47,15 +47,15 @@  discard block
 block discarded – undo
47 47
 	 * Generate the jquery script to set the elements to the HtmlNavElement
48 48
 	 * @param JsUtils $jsUtils
49 49
 	 */
50
-	public function jsSetContent(JsUtils $jsUtils){
51
-		$jsUtils->html("#".$this->identifier,str_replace("\"","'", $this->contentAsString()),true);
50
+	public function jsSetContent(JsUtils $jsUtils) {
51
+		$jsUtils->html("#".$this->identifier, str_replace("\"", "'", $this->contentAsString()), true);
52 52
 	}
53 53
 
54 54
 	public function getRoot() {
55 55
 		return $this->root;
56 56
 	}
57 57
 	public function setRoot($root) {
58
-		$this->root = $root;
58
+		$this->root=$root;
59 59
 		return $this;
60 60
 	}
61 61
 	public function getAttr() {
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
 	 * @return HtmlNavElement
69 69
 	 */
70 70
 	public function setAttr($attr) {
71
-		$this->attr = $attr;
71
+		$this->attr=$attr;
72 72
 		return $this;
73 73
 	}
74 74
 
75 75
 	public function __call($method, $args) {
76
-		if(isset($this->$method) && is_callable($this->$method)) {
76
+		if (isset($this->$method) && is_callable($this->$method)) {
77 77
 			return call_user_func_array(
78 78
 					$this->$method,
79 79
 					$args
@@ -81,32 +81,32 @@  discard block
 block discarded – undo
81 81
 		}
82 82
 	}
83 83
 
84
-	public abstract function fromDispatcher($dispatcher,$startIndex=0);
84
+	public abstract function fromDispatcher($dispatcher, $startIndex=0);
85 85
 
86 86
 
87
-	public function setContentDivider($divider,$index=NULL) {
87
+	public function setContentDivider($divider, $index=NULL) {
88 88
 		$divider="<div class='divider'> {$divider} </div>";
89 89
 		return $this->setDivider($divider, $index);
90 90
 	}
91 91
 
92
-	public function setIconContentDivider($iconContentDivider,$index=NULL) {
92
+	public function setIconContentDivider($iconContentDivider, $index=NULL) {
93 93
 		$contentDivider="<i class='".$iconContentDivider." icon divider'></i>";
94 94
 		return $this->setDivider($contentDivider, $index);
95 95
 	}
96 96
 
97
-	protected function setDivider($divider,$index){
98
-		if(isset($index)){
99
-			if(\is_array($this->_contentSeparator)===false)
100
-				$this->_contentSeparator=array_fill (0, $this->count()-1,$this->_contentSeparator);
97
+	protected function setDivider($divider, $index) {
98
+		if (isset($index)) {
99
+			if (\is_array($this->_contentSeparator)===false)
100
+				$this->_contentSeparator=array_fill(0, $this->count()-1, $this->_contentSeparator);
101 101
 			$this->_contentSeparator[$index]=$divider;
102
-		}else{
102
+		}else {
103 103
 			$this->_contentSeparator=$divider;
104 104
 		}
105 105
 		return $this;
106 106
 	}
107 107
 
108
-	protected function getContentDivider($index){
109
-		if(\is_array($this->_contentSeparator)===true){
108
+	protected function getContentDivider($index) {
109
+		if (\is_array($this->_contentSeparator)===true) {
110 110
 			return @$this->_contentSeparator[$index];
111 111
 		}
112 112
 		return $this->_contentSeparator;
Please login to merge, or discard this patch.