Completed
Push — master ( 415647...d02380 )
by Ricardo
02:50
created
src/Adapter/Youtube/YoutubeServiceAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return array
76
+     * @return string[]
77 77
      */
78 78
     public function getThumbNailSizes()
79 79
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             throw new InvalidThumbnailSizeException();
72 72
         }
73 73
 
74
-        return $this->getScheme($forceSecure) . '://img.youtube.com/vi/' . $this->getVideoId() . '/' . $size . '.jpg';
74
+        return $this->getScheme($forceSecure).'://img.youtube.com/vi/'.$this->getVideoId().'/'.$size.'.jpg';
75 75
     }
76 76
 
77 77
     /**
Please login to merge, or discard this patch.
src/Adapter/Dailymotion/DailymotionServiceAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     /**
54 54
      * Returns all thumbnails available sizes.
55 55
      *
56
-     * @return array
56
+     * @return string[]
57 57
      */
58 58
     public function getThumbNailSizes()
59 59
     {
Please login to merge, or discard this 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 $this->getScheme($forceSecure) . '://www.dailymotion.com/' . $size . '/video/' . $this->videoId;
78
+        return $this->getScheme($forceSecure).'://www.dailymotion.com/'.$size.'/video/'.$this->videoId;
79 79
     }
80 80
 
81 81
     /**
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function getEmbedUrl($forceAutoplay = false, $forceSecure = false)
138 138
     {
139
-        return $this->getScheme($forceSecure) . '://www.dailymotion.com/embed/video/' . $this->videoId . ($forceAutoplay ? '?amp&autoplay=1' : '');
139
+        return $this->getScheme($forceSecure).'://www.dailymotion.com/embed/video/'.$this->videoId.($forceAutoplay ? '?amp&autoplay=1' : '');
140 140
     }
141 141
 
142 142
     /**
Please login to merge, or discard this patch.
src/Adapter/Vimeo/VimeoServiceAdapter.php 2 patches
Doc Comments   +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
      * Returns all thumbnails available sizes.
149 149
      *
150
-     * @return array
150
+     * @return string[]
151 151
      */
152 152
     public function getThumbNailSizes()
153 153
     {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * @param string $url
221 221
      * @param string $pattern
222 222
      *
223
-     * @return int
223
+     * @return string
224 224
      */
225 225
     private function getVideoIdByPattern($url, $pattern)
226 226
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function getEmbedUrl($forceAutoplay = false, $forceSecure = false)
148 148
     {
149
-        return $this->getScheme($forceSecure) . '://player.vimeo.com/video/' . $this->getVideoId() . ($forceAutoplay ? '?autoplay=1' : '');
149
+        return $this->getScheme($forceSecure).'://player.vimeo.com/video/'.$this->getVideoId().($forceAutoplay ? '?autoplay=1' : '');
150 150
     }
151 151
 
152 152
     /**
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function getSmallThumbnail($forceSecure = false)
174 174
     {
175
-        return $this->getThumbnail(self::THUMBNAIL_SMALL,$forceSecure);
175
+        return $this->getThumbnail(self::THUMBNAIL_SMALL, $forceSecure);
176 176
     }
177 177
 
178 178
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function getMediumThumbnail($forceSecure = false)
186 186
     {
187
-        return $this->getThumbnail(self::THUMBNAIL_MEDIUM,$forceSecure);
187
+        return $this->getThumbnail(self::THUMBNAIL_MEDIUM, $forceSecure);
188 188
     }
189 189
 
190 190
     /**
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     public function getLargeThumbnail($forceSecure = false)
199 199
     {
200
-        return $this->getThumbnail(self::THUMBNAIL_LARGE,$forceSecure);
200
+        return $this->getThumbnail(self::THUMBNAIL_LARGE, $forceSecure);
201 201
     }
202 202
 
203 203
     /**
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function getLargestThumbnail($forceSecure = false)
212 212
     {
213
-        return $this->getThumbnail(self::THUMBNAIL_LARGE,$forceSecure);
213
+        return $this->getThumbnail(self::THUMBNAIL_LARGE, $forceSecure);
214 214
     }
215 215
 
216 216
     /**
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      */
248 248
     private function getVideoDataFromServiceApi()
249 249
     {
250
-        $contents = file_get_contents('http://vimeo.com/api/v2/video/' . $this->getVideoId() . '.php');
250
+        $contents = file_get_contents('http://vimeo.com/api/v2/video/'.$this->getVideoId().'.php');
251 251
         if (false === $contents) {
252 252
             throw new ServiceApiNotAvailable('Vimeo Service Adapter could not reach Vimeo API Service. Check if your server has file_get_contents() function available.');
253 253
         }
Please login to merge, or discard this patch.
src/Adapter/Facebook/FacebookServiceAdapter.php 2 patches
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 $this->getScheme($forceSecure) . '://graph.facebook.com/' . $this->getVideoId() . '/picture';
78
+        return $this->getScheme($forceSecure).'://graph.facebook.com/'.$this->getVideoId().'/picture';
79 79
     }
80 80
 
81 81
     /**
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function getEmbedUrl($forceAutoplay = false, $forceSecure = false)
136 136
     {
137
-        return $this->getScheme($forceSecure) . '://www.facebook.com/video/embed?video_id=' . $this->getVideoId();
137
+        return $this->getScheme($forceSecure).'://www.facebook.com/video/embed?video_id='.$this->getVideoId();
138 138
     }
139 139
 
140 140
     /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     /**
54 54
      * Returns all thumbnails available sizes.
55 55
      *
56
-     * @return array
56
+     * @return string[]
57 57
      */
58 58
     public function getThumbNailSizes()
59 59
     {
Please login to merge, or discard this patch.