@@ -5,5 +5,5 @@ |
||
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 |
@@ -2,5 +2,5 @@ |
||
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 |
@@ -5,5 +5,5 @@ |
||
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 |
@@ -5,5 +5,5 @@ |
||
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 |
@@ -2,5 +2,5 @@ |
||
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 |
@@ -9,20 +9,20 @@ discard block |
||
9 | 9 | protected $_states=[]; |
10 | 10 | protected $_baseClass; |
11 | 11 | |
12 | - public function addVariation($variation){ |
|
12 | + public function addVariation($variation) { |
|
13 | 13 | return $this->addToPropertyCtrl("class", $variation, $this->_variations); |
14 | 14 | } |
15 | 15 | |
16 | - public function addState($state){ |
|
16 | + public function addState($state) { |
|
17 | 17 | return $this->addToPropertyCtrl("class", $state, $this->_states); |
18 | 18 | } |
19 | 19 | |
20 | - public function setVariation($variation){ |
|
20 | + public function setVariation($variation) { |
|
21 | 21 | $this->setPropertyCtrl("class", $variation, $this->_variations); |
22 | 22 | return $this->addToProperty("class", $this->_baseClass); |
23 | 23 | } |
24 | 24 | |
25 | - public function setState($state){ |
|
25 | + public function setState($state) { |
|
26 | 26 | $this->setPropertyCtrl("class", $state, $this->_states); |
27 | 27 | return $this->addToProperty("class", $this->_baseClass); |
28 | 28 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * {@inheritDoc} |
32 | 32 | * @see \Ajax\common\html\HtmlSingleElement::setSize() |
33 | 33 | */ |
34 | - public function setSize($size){ |
|
34 | + public function setSize($size) { |
|
35 | 35 | return $this->addToPropertyCtrl("class", $size, Size::getConstants()); |
36 | 36 | } |
37 | 37 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * show it is currently unable to be interacted with |
40 | 40 | * @return \Ajax\semantic\html\elements\HtmlSemDoubleElement |
41 | 41 | */ |
42 | - public function setDisabled(){ |
|
42 | + public function setDisabled() { |
|
43 | 43 | return $this->addToProperty("class", "disabled"); |
44 | 44 | } |
45 | 45 | |
@@ -47,18 +47,18 @@ discard block |
||
47 | 47 | * @param string $color |
48 | 48 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
49 | 49 | */ |
50 | - public function setColor($color){ |
|
51 | - return $this->addToPropertyCtrl("class", $color,Color::getConstants()); |
|
50 | + public function setColor($color) { |
|
51 | + return $this->addToPropertyCtrl("class", $color, Color::getConstants()); |
|
52 | 52 | } |
53 | 53 | |
54 | - public function setFluid(){ |
|
54 | + public function setFluid() { |
|
55 | 55 | $this->addToProperty("class", "fluid"); |
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | 59 | * can be formatted to appear on dark backgrounds |
60 | 60 | */ |
61 | - public function setInverted(){ |
|
61 | + public function setInverted() { |
|
62 | 62 | $this->addToProperty("class", "inverted"); |
63 | 63 | } |
64 | 64 | } |
65 | 65 | \ No newline at end of file |
@@ -10,7 +10,7 @@ |
||
10 | 10 | * @param string $value |
11 | 11 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
12 | 12 | */ |
13 | - public function setTextAlignment($value=TextAlignment::LEFT){ |
|
14 | - return $this->addToPropertyCtrl("class", $value,TextAlignment::getConstants()); |
|
13 | + public function setTextAlignment($value=TextAlignment::LEFT) { |
|
14 | + return $this->addToPropertyCtrl("class", $value, TextAlignment::getConstants()); |
|
15 | 15 | } |
16 | 16 | } |
17 | 17 | \ No newline at end of file |
@@ -14,13 +14,13 @@ |
||
14 | 14 | $this->setClass($this->_baseClass); |
15 | 15 | } |
16 | 16 | |
17 | - public function setCircular(){ |
|
17 | + public function setCircular() { |
|
18 | 18 | return $this->addToProperty("class", "circular"); |
19 | 19 | } |
20 | 20 | |
21 | - public function asAvatar($caption=NULL){ |
|
22 | - if(isset($caption)) |
|
23 | - $this->wrap("",$caption); |
|
21 | + public function asAvatar($caption=NULL) { |
|
22 | + if (isset($caption)) |
|
23 | + $this->wrap("", $caption); |
|
24 | 24 | return $this->addToProperty("class", "avatar"); |
25 | 25 | } |
26 | 26 | } |
27 | 27 | \ No newline at end of file |
@@ -19,8 +19,9 @@ |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | public function asAvatar($caption=NULL){ |
22 | - if(isset($caption)) |
|
23 | - $this->wrap("",$caption); |
|
22 | + if(isset($caption)) { |
|
23 | + $this->wrap("",$caption); |
|
24 | + } |
|
24 | 25 | return $this->addToProperty("class", "avatar"); |
25 | 26 | } |
26 | 27 | } |
27 | 28 | \ No newline at end of file |
@@ -11,21 +11,21 @@ |
||
11 | 11 | */ |
12 | 12 | class HtmlIconGroups extends HtmlSemDoubleElement { |
13 | 13 | |
14 | - public function __construct($identifier,$size="") { |
|
15 | - parent::__construct($identifier, "i","icons"); |
|
14 | + public function __construct($identifier, $size="") { |
|
15 | + parent::__construct($identifier, "i", "icons"); |
|
16 | 16 | $this->setSize($size); |
17 | 17 | } |
18 | 18 | |
19 | - public function add($icon,$size=""){ |
|
19 | + public function add($icon, $size="") { |
|
20 | 20 | $iconO=$icon; |
21 | - if(\is_string($icon)){ |
|
21 | + if (\is_string($icon)) { |
|
22 | 22 | $iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
23 | 23 | $iconO->setSize($size); |
24 | 24 | } |
25 | 25 | $this->addContent($iconO); |
26 | 26 | } |
27 | 27 | |
28 | - public function getIcon($index){ |
|
28 | + public function getIcon($index) { |
|
29 | 29 | return $this->content[$index]; |
30 | 30 | } |
31 | 31 | } |
32 | 32 | \ No newline at end of file |