Completed
Push — master ( 012895...9e0835 )
by Jean-Christophe
03:33
created
Ajax/semantic/html/elements/HtmlDivider.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 	protected $_tabsType="tabs";
21 21
 	protected $stacked="";
22 22
 
23
+	/**
24
+	 * @param string $identifier
25
+	 */
23 26
 	public function __construct($identifier, $tagName="ul") {
24 27
 		parent::__construct($identifier, $tagName);
25 28
 		$this->_template="<%tagName% %properties%>%tabs%</%tagName%>%content%";
Please login to merge, or discard this 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/common/BaseEnum.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 	public static function getConstants() {
15 15
 		if (self::$constCacheArray==NULL) {
16
-			self::$constCacheArray=[ ];
16
+			self::$constCacheArray=[];
17 17
 		}
18 18
 		$calledClass=get_called_class();
19 19
 		if (!array_key_exists($calledClass, self::$constCacheArray)) {
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
 		return self::$constCacheArray [$calledClass];
24 24
 	}
25 25
 
26
-	public static function getConstantValues($postFix=""){
27
-		if($postFix!=="")
26
+	public static function getConstantValues($postFix="") {
27
+		if ($postFix!=="")
28 28
 			return \array_values(self::getConstants());
29
-		else{
30
-			return \array_map(function ($elem) use ($postFix) {return $elem." ".$postFix;},\array_values(self::getConstants()));
29
+		else {
30
+			return \array_map(function($elem) use ($postFix) {return $elem." ".$postFix; },\array_values(self::getConstants()));
31 31
 		}
32 32
 	}
33 33
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
 	}
25 25
 
26 26
 	public static function getConstantValues($postFix=""){
27
-		if($postFix!=="")
28
-			return \array_values(self::getConstants());
29
-		else{
27
+		if($postFix!=="") {
28
+					return \array_values(self::getConstants());
29
+		} else{
30 30
 			return \array_map(function ($elem) use ($postFix) {return $elem." ".$postFix;},\array_values(self::getConstants()));
31 31
 		}
32 32
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/base/HtmlSemSingleElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
 class HtmlSemSingleElement extends HtmlSingleElement {
15 15
 	use BaseTrait;
16
-	public function __construct($identifier, $tagName="br",$baseClass="ui") {
16
+	public function __construct($identifier, $tagName="br", $baseClass="ui") {
17 17
 		parent::__construct($identifier, $tagName);
18 18
 		$this->_baseClass=$baseClass;
19 19
 		$this->setClass($baseClass);
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/TextAlignment.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 TextAlignment extends BaseEnum {
8
-	const LEFT="left aligned",CENTER="center aligned",RIGHT="right aligned",JUSTIFIED="justified";
8
+	const LEFT="left aligned", CENTER="center aligned", RIGHT="right aligned", JUSTIFIED="justified";
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",NONE="";
5
+	const RIGHT="right", LEFT="left", NONE="";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Style.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 Style extends BaseEnum {
8
-	const INFO="info",SUCCESS="success",POSITIVE="positive",WARNING="warning",ERROR="error",NEGATIVE="negative";
8
+	const INFO="info", SUCCESS="success", POSITIVE="positive", WARNING="warning", ERROR="error", NEGATIVE="negative";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Sens.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 Sens extends BaseEnum {
5
-	const VERTICAL="vertical", HORIZONTAL="horizontal",NONE="";
5
+	const VERTICAL="vertical", HORIZONTAL="horizontal", NONE="";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/SegmentType.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 SegmentType extends BaseEnum {
8
-	const RAISED="raised",STACKED="stacked",PILED="piled",NORMAL="";
8
+	const RAISED="raised", STACKED="stacked", PILED="piled", NORMAL="";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
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.