@@ -47,31 +47,31 @@ discard block |
||
47 | 47 | * @return \Ajax\semantic\html\HtmlButton default : "" |
48 | 48 | */ |
49 | 49 | public function setStyle($cssStyle) { |
50 | - return $this->addToProperty("class",$cssStyle); |
|
50 | + return $this->addToProperty("class", $cssStyle); |
|
51 | 51 | } |
52 | 52 | |
53 | - public function setFocusable(){ |
|
53 | + public function setFocusable() { |
|
54 | 54 | $this->setProperty("tabindex", "0"); |
55 | 55 | } |
56 | 56 | |
57 | - public function setAnimated($content,$animation=""){ |
|
57 | + public function setAnimated($content, $animation="") { |
|
58 | 58 | $this->setTagName("div"); |
59 | 59 | $this->addToProperty("class", "animated ".$animation); |
60 | - $visible=new HtmlDoubleElement("visible-".$this->identifier,"div"); |
|
60 | + $visible=new HtmlDoubleElement("visible-".$this->identifier, "div"); |
|
61 | 61 | $visible->setClass("visible content"); |
62 | 62 | $visible->setContent($this->content); |
63 | - $hidden=new HtmlDoubleElement("hidden-".$this->identifier,"div"); |
|
63 | + $hidden=new HtmlDoubleElement("hidden-".$this->identifier, "div"); |
|
64 | 64 | $hidden->setClass("hidden content"); |
65 | 65 | $hidden->setContent($content); |
66 | 66 | $this->content=$visible.$hidden; |
67 | 67 | } |
68 | 68 | |
69 | - public function addIcon($icon,$before=true){ |
|
69 | + public function addIcon($icon, $before=true) { |
|
70 | 70 | $iconO=$icon; |
71 | - if(\is_string($icon)){ |
|
71 | + if (\is_string($icon)) { |
|
72 | 72 | $iconO=new HtmlIcon("icon-".$this->identifier, $icon); |
73 | 73 | } |
74 | - $this->addContent($iconO,$before); |
|
74 | + $this->addContent($iconO, $before); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /* |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function fromArray($array) { |
82 | 82 | $array=parent::fromArray($array); |
83 | - foreach ( $array as $key => $value ) { |
|
83 | + foreach ($array as $key => $value) { |
|
84 | 84 | $this->setProperty($key, $value); |
85 | 85 | } |
86 | 86 | return $array; |
@@ -5,8 +5,8 @@ |
||
5 | 5 | use Ajax\common\BaseEnum; |
6 | 6 | |
7 | 7 | class Color extends BaseEnum { |
8 | - const RED="red",ORANGE="orange",YELLOW="yellow", |
|
9 | - OLIVE="olive",GREEN="green",TEAL="teal", |
|
10 | - BLUE="blue",VIOLET="violet",PURPLE="purple", |
|
11 | - PINK="pink",BROWN="brown",GREY="grey",BLACK="black"; |
|
8 | + const RED="red", ORANGE="orange", YELLOW="yellow", |
|
9 | + OLIVE="olive", GREEN="green", TEAL="teal", |
|
10 | + BLUE="blue", VIOLET="violet", PURPLE="purple", |
|
11 | + PINK="pink", BROWN="brown", GREY="grey", BLACK="black"; |
|
12 | 12 | } |
13 | 13 | \ 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 IconSize extends BaseEnum { |
5 | - const MINI="mini", TINY="tiny", SMALL="small", NORMAL="",LARGE="large", BIG="big", HUGE="huge", MASSIVE="massive"; |
|
5 | + const MINI="mini", TINY="tiny", SMALL="small", NORMAL="", LARGE="large", BIG="big", HUGE="huge", MASSIVE="massive"; |
|
6 | 6 | } |
7 | 7 | \ No newline at end of file |