Completed
Pull Request — master (#3)
by
unknown
03:20
created
src/Adapter/Dailymotion/DailymotionServiceAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             throw new InvalidThumbnailSizeException();
76 76
         }
77 77
 
78
-        return 'http://www.dailymotion.com/'.$size.'/video/'.$this->videoId;
78
+        return 'http://www.dailymotion.com/' . $size . '/video/' . $this->videoId;
79 79
     }
80 80
 
81 81
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function getEmbedUrl($autoplay = false)
131 131
     {
132
-        return '//www.dailymotion.com/embed/video/'.$this->videoId.($autoplay ? '?amp&autoplay=1' : '');
132
+        return '//www.dailymotion.com/embed/video/' . $this->videoId . ($autoplay ? '?amp&autoplay=1' : '');
133 133
     }
134 134
 
135 135
     /**
Please login to merge, or discard this patch.
src/Adapter/Facebook/FacebookServiceAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             throw new InvalidThumbnailSizeException();
76 76
         }
77 77
 
78
-        return 'https://graph.facebook.com/'.$this->getVideoId().'/picture';
78
+        return 'https://graph.facebook.com/' . $this->getVideoId() . '/picture';
79 79
     }
80 80
 
81 81
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function getEmbedUrl($autoplay = false)
131 131
     {
132
-        return 'https://www.facebook.com/video/embed?video_id='.$this->getVideoId();
132
+        return 'https://www.facebook.com/video/embed?video_id=' . $this->getVideoId();
133 133
     }
134 134
 
135 135
     /**
Please login to merge, or discard this patch.
src/Adapter/Vimeo/VimeoServiceAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function getEmbedUrl($autoplay = false)
149 149
     {
150
-        return 'http://player.vimeo.com/video/'.$this->getVideoId().($autoplay ? '?autoplay=1' : '');
150
+        return 'http://player.vimeo.com/video/' . $this->getVideoId() . ($autoplay ? '?autoplay=1' : '');
151 151
     }
152 152
 
153 153
     /**
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     private function getVideoDataFromServiceApi()
240 240
     {
241
-        $contents = file_get_contents('http://vimeo.com/api/v2/video/'.$this->getVideoId().'.php');
241
+        $contents = file_get_contents('http://vimeo.com/api/v2/video/' . $this->getVideoId() . '.php');
242 242
         if (false === $contents) {
243 243
             throw new ServiceApiNotAvailable('Vimeo Service Adapter could not reach Vimeo API Service. Check if your server has file_get_contents() function available.');
244 244
         }
Please login to merge, or discard this patch.
src/Adapter/Youtube/YoutubeServiceAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             throw new InvalidThumbnailSizeException();
72 72
         }
73 73
 
74
-        return 'http://img.youtube.com/vi/'.$this->getVideoId().'/'.$size.'.jpg';
74
+        return 'http://img.youtube.com/vi/' . $this->getVideoId() . '/' . $size . '.jpg';
75 75
     }
76 76
 
77 77
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function getEmbedUrl($autoplay = false)
97 97
     {
98
-        return 'http://www.youtube.com/embed/'.$this->getVideoId().($autoplay ? '?amp&autoplay=1' : '');
98
+        return 'http://www.youtube.com/embed/' . $this->getVideoId() . ($autoplay ? '?amp&autoplay=1' : '');
99 99
     }
100 100
 
101 101
     /**
Please login to merge, or discard this patch.
src/Container/Factory/ServicesContainerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public function __invoke()
15 15
     {
16
-        $configFile = require __DIR__.'/../../../config/config.php';
16
+        $configFile = require __DIR__ . '/../../../config/config.php';
17 17
         $servicesContainer = new ServicesContainer($configFile);
18 18
 
19 19
         return $servicesContainer;
Please login to merge, or discard this patch.
src/Renderer/DefaultRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
      */
26 26
     public function render($embedUrl, $width, $height)
27 27
     {
28
-        return '<iframe width="'.$width.'" height="'.$height.'" src="'.addslashes($embedUrl).'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
28
+        return '<iframe width="' . $width . '" height="' . $height . '" src="' . addslashes($embedUrl) . '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
29 29
     }
30 30
 }
Please login to merge, or discard this patch.