@@ -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=false, $emoji=null) { |
| 68 | - if($before) |
|
| 69 | - $this->wrap($label); |
|
| 70 | - else |
|
| 71 | - $this->wrap("", $label); |
|
| 72 | - if($emoji!=null) |
|
| 73 | - $this->setEmoji($emoji); |
|
| 69 | + if($before) { |
|
| 70 | + $this->wrap($label); |
|
| 71 | + } else { |
|
| 72 | + $this->wrap("", $label); |
|
| 73 | + } |
|
| 74 | + if($emoji!=null) { |
|
| 75 | + $this->setEmoji($emoji); |
|
| 76 | + } |
|
| 74 | 77 | return $this; |
| 75 | 78 | } |
| 76 | 79 | |