| @@ -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( | 
| @@ -137,7 +137,7 @@ discard block | ||
| 137 | 137 | */ | 
| 138 | 138 | public function isLive(): bool | 
| 139 | 139 |      { | 
| 140 | - return (bool)$this->liveViewers(); | |
| 140 | + return (bool) $this->liveViewers(); | |
| 141 | 141 | } | 
| 142 | 142 | |
| 143 | 143 | /** | 
| @@ -155,7 +155,7 @@ discard block | ||
| 155 | 155 | ]); | 
| 156 | 156 | // Fetch the livestream page | 
| 157 | 157 |              if ($data = @file_get_contents($liveUrl)) { | 
| 158 | - $count = (int)$data; | |
| 158 | + $count = (int) $data; | |
| 159 | 159 | } | 
| 160 | 160 | } | 
| 161 | 161 | |
| @@ -172,7 +172,7 @@ discard block | ||
| 172 | 172 | */ | 
| 173 | 173 | protected function getYoutubeStreamUrl(): string | 
| 174 | 174 |      { | 
| 175 | - $url = UrlHelper::urlWithParams(self::YOUTUBE_STREAM_URL, [ | |
| 175 | + $url = UrlHelper::urlWithParams(self::YOUTUBE_STREAM_URL, [ | |
| 176 | 176 | 'channel' => YoutubeLiveEmbed::$youtubeChannelId, | 
| 177 | 177 | ]); | 
| 178 | 178 | |