@@ -69,7 +69,7 @@ |
||
69 | 69 | Event::on( |
70 | 70 | CraftVariable::class, |
71 | 71 | CraftVariable::EVENT_INIT, |
72 | - function (Event $event) { |
|
72 | + function(Event $event) { |
|
73 | 73 | /** @var CraftVariable $variable */ |
74 | 74 | $variable = $event->sender; |
75 | 75 | $variable->set('youtubelive', YoutubeLiveEmbedVariable::class); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | |
62 | 62 | // Render the template with our vars passed in |
63 | 63 | try { |
64 | - $htmlText = Craft::$app->view->renderTemplate('youtubeliveembed/' . $templatePath, $params); |
|
64 | + $htmlText = Craft::$app->view->renderTemplate('youtubeliveembed/'.$templatePath, $params); |
|
65 | 65 | $templateRendered = true; |
66 | 66 | } catch (\Exception $e) { |
67 | 67 | $htmlText = Craft::t( |
@@ -149,7 +149,7 @@ |
||
149 | 149 | */ |
150 | 150 | protected function getYoutubeStreamUrl(): string |
151 | 151 | { |
152 | - $url = UrlHelper::urlWithParams(self::YOUTUBE_STREAM_URL, [ |
|
152 | + $url = UrlHelper::urlWithParams(self::YOUTUBE_STREAM_URL, [ |
|
153 | 153 | 'channel' => YoutubeLiveEmbed::$youtubeChannelId, |
154 | 154 | ]); |
155 | 155 | return $url; |