Passed
Push — develop ( 42df27...214798 )
by Andrew
05:32
created
src/YoutubeLiveEmbed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/helpers/PluginTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/services/Embed.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.