@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | public function getHref() |
| 51 | 51 | { |
| 52 | - return empty($this->getEmail()) ?: 'mailto:' . $this->getEmail(); |
|
| 52 | + return empty($this->getEmail()) ?: 'mailto:'.$this->getEmail(); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -138,8 +138,8 @@ |
||
| 138 | 138 | protected static function registerView() |
| 139 | 139 | { |
| 140 | 140 | if (self::$_view === null) { |
| 141 | - Yii::$app->view->on(View::EVENT_BEGIN_BODY, function ($event) { |
|
| 142 | - echo '<script type="application/ld+json">' . Json::encode($event->sender->params) . '</script>'; |
|
| 141 | + Yii::$app->view->on(View::EVENT_BEGIN_BODY, function($event) { |
|
| 142 | + echo '<script type="application/ld+json">'.Json::encode($event->sender->params).'</script>'; |
|
| 143 | 143 | }); |
| 144 | 144 | |
| 145 | 145 | self::$_view = true; |