@@ -53,22 +53,22 @@ |
||
53 | 53 | * @param string $target |
54 | 54 | * @return HtmlEmoji |
55 | 55 | */ |
56 | - public function asLink($href=NULL,$target=NULL) { |
|
56 | + public function asLink($href=NULL, $target=NULL) { |
|
57 | 57 | if (isset($href)) { |
58 | 58 | $_target=""; |
59 | - if(isset($target)) |
|
59 | + if (isset($target)) |
|
60 | 60 | $_target="target='{$target}'"; |
61 | - $this->wrap("<a href='" . $href . "' {$_target}>", "</a>"); |
|
61 | + $this->wrap("<a href='".$href."' {$_target}>", "</a>"); |
|
62 | 62 | } |
63 | 63 | return $this->addToProperty("class", "link"); |
64 | 64 | } |
65 | 65 | |
66 | 66 | public function addLabel($label, $before=false, $emoji='slight_smile') { |
67 | - if($before) |
|
67 | + if ($before) |
|
68 | 68 | $this->wrap($label); |
69 | 69 | else |
70 | 70 | $this->wrap("", $label); |
71 | - if(isset($emoji)) |
|
71 | + if (isset($emoji)) |
|
72 | 72 | $this->setEmoji($emoji); |
73 | 73 | return $this; |
74 | 74 | } |
@@ -56,20 +56,23 @@ |
||
56 | 56 | public function asLink($href=NULL,$target=NULL) { |
57 | 57 | if (isset($href)) { |
58 | 58 | $_target=""; |
59 | - if(isset($target)) |
|
60 | - $_target="target='{$target}'"; |
|
59 | + if(isset($target)) { |
|
60 | + $_target="target='{$target}'"; |
|
61 | + } |
|
61 | 62 | $this->wrap("<a href='" . $href . "' {$_target}>", "</a>"); |
62 | 63 | } |
63 | 64 | return $this->addToProperty("class", "link"); |
64 | 65 | } |
65 | 66 | |
66 | 67 | public function addLabel($label, $before=false, $emoji='slight_smile') { |
67 | - if($before) |
|
68 | - $this->wrap($label); |
|
69 | - else |
|
70 | - $this->wrap("", $label); |
|
71 | - if(isset($emoji)) |
|
72 | - $this->setEmoji($emoji); |
|
68 | + if($before) { |
|
69 | + $this->wrap($label); |
|
70 | + } else { |
|
71 | + $this->wrap("", $label); |
|
72 | + } |
|
73 | + if(isset($emoji)) { |
|
74 | + $this->setEmoji($emoji); |
|
75 | + } |
|
73 | 76 | return $this; |
74 | 77 | } |
75 | 78 |
@@ -5,5 +5,5 @@ |
||
5 | 5 | use Ajax\common\BaseEnum; |
6 | 6 | |
7 | 7 | abstract class People extends BaseEnum { |
8 | - const ADULT='adult',ALIEN='alien',ANGEL='angel',ANGRY='angry',ANGUISHED='anguished',ASTONISHED='astonished',ATHLETIC_SHOE='athletic_shoe',BABY='baby',BALD='bald',BALLET_SHOES='ballet_shoes'; |
|
8 | + const ADULT='adult', ALIEN='alien', ANGEL='angel', ANGRY='angry', ANGUISHED='anguished', ASTONISHED='astonished', ATHLETIC_SHOE='athletic_shoe', BABY='baby', BALD='bald', BALLET_SHOES='ballet_shoes'; |
|
9 | 9 | } |
@@ -5,6 +5,6 @@ |
||
5 | 5 | use Ajax\common\BaseEnum; |
6 | 6 | |
7 | 7 | abstract class Nature extends BaseEnum { |
8 | - const ANT='ant',BABY_CHICK='baby_chick',BADGER='badger',BANBOO='banboo',BAT='bat',BEAR='bear',BEE='bee',BEETLE='beetle',BIRD='bird',BLOSSOM='blossom',BLOWFISH='blowfish',BOAR='boar',BOOM='boom',BOUQUET='bouquet',BUG='bug', |
|
9 | - BUTTERFLY='butterfly',CACTUS='cactus',CAMEL='camel',CAT2='cat2',CAT='cat',CHERRY_BLOSSOM='cherry_blossom',CHICKEN='chicken',CHIPMUNK='chipmunk',CHRISTMAS_TREE='christmas_tree',CLOUD='cloud'; |
|
8 | + const ANT='ant', BABY_CHICK='baby_chick', BADGER='badger', BANBOO='banboo', BAT='bat', BEAR='bear', BEE='bee', BEETLE='beetle', BIRD='bird', BLOSSOM='blossom', BLOWFISH='blowfish', BOAR='boar', BOOM='boom', BOUQUET='bouquet', BUG='bug', |
|
9 | + BUTTERFLY='butterfly', CACTUS='cactus', CAMEL='camel', CAT2='cat2', CAT='cat', CHERRY_BLOSSOM='cherry_blossom', CHICKEN='chicken', CHIPMUNK='chipmunk', CHRISTMAS_TREE='christmas_tree', CLOUD='cloud'; |
|
10 | 10 | } |