@@ -54,22 +54,22 @@ |
||
54 | 54 | * @param string $target |
55 | 55 | * @return HtmlEmoji |
56 | 56 | */ |
57 | - public function asLink($href=NULL,$target=NULL) { |
|
57 | + public function asLink($href=NULL, $target=NULL) { |
|
58 | 58 | if (isset($href)) { |
59 | 59 | $_target=""; |
60 | - if(isset($target)) |
|
60 | + if (isset($target)) |
|
61 | 61 | $_target="target='{$target}'"; |
62 | - $this->wrap("<a href='" . $href . "' {$_target}>", "</a>"); |
|
62 | + $this->wrap("<a href='".$href."' {$_target}>", "</a>"); |
|
63 | 63 | } |
64 | 64 | return $this->addToProperty("class", "link"); |
65 | 65 | } |
66 | 66 | |
67 | 67 | public function addLabel($label, $before, $emoji) { |
68 | - if($before) |
|
68 | + if ($before) |
|
69 | 69 | $this->wrap($label); |
70 | 70 | else |
71 | 71 | $this->wrap("", $label); |
72 | - if(isset($emoji)) |
|
72 | + if (isset($emoji)) |
|
73 | 73 | $this->setEmoji($emoji); |
74 | 74 | return $this; |
75 | 75 | } |
@@ -57,20 +57,23 @@ |
||
57 | 57 | public function asLink($href=NULL,$target=NULL) { |
58 | 58 | if (isset($href)) { |
59 | 59 | $_target=""; |
60 | - if(isset($target)) |
|
61 | - $_target="target='{$target}'"; |
|
60 | + if(isset($target)) { |
|
61 | + $_target="target='{$target}'"; |
|
62 | + } |
|
62 | 63 | $this->wrap("<a href='" . $href . "' {$_target}>", "</a>"); |
63 | 64 | } |
64 | 65 | return $this->addToProperty("class", "link"); |
65 | 66 | } |
66 | 67 | |
67 | 68 | public function addLabel($label, $before, $emoji) { |
68 | - if($before) |
|
69 | - $this->wrap($label); |
|
70 | - else |
|
71 | - $this->wrap("", $label); |
|
72 | - if(isset($emoji)) |
|
73 | - $this->setEmoji($emoji); |
|
69 | + if($before) { |
|
70 | + $this->wrap($label); |
|
71 | + } else { |
|
72 | + $this->wrap("", $label); |
|
73 | + } |
|
74 | + if(isset($emoji)) { |
|
75 | + $this->setEmoji($emoji); |
|
76 | + } |
|
74 | 77 | return $this; |
75 | 78 | } |
76 | 79 |