@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | /** |
153 | 153 | * Returns all thumbnails available sizes. |
154 | 154 | * |
155 | - * @return array |
|
155 | + * @return string[] |
|
156 | 156 | */ |
157 | 157 | public function getThumbNailSizes() |
158 | 158 | { |
@@ -228,6 +228,7 @@ discard block |
||
228 | 228 | * |
229 | 229 | * @todo make this better by using guzzle |
230 | 230 | * |
231 | + * @param string $url |
|
231 | 232 | * @return array |
232 | 233 | * |
233 | 234 | * @throws ServiceApiNotAvailable |
@@ -146,7 +146,7 @@ discard block |
||
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 | /** |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function getSmallThumbnail($forceSecure = false) |
175 | 175 | { |
176 | - return $this->getThumbnail(self::THUMBNAIL_SMALL,$forceSecure); |
|
176 | + return $this->getThumbnail(self::THUMBNAIL_SMALL, $forceSecure); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function getMediumThumbnail($forceSecure = false) |
188 | 188 | { |
189 | - return $this->getThumbnail(self::THUMBNAIL_MEDIUM,$forceSecure); |
|
189 | + return $this->getThumbnail(self::THUMBNAIL_MEDIUM, $forceSecure); |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | */ |
200 | 200 | public function getLargeThumbnail($forceSecure = false) |
201 | 201 | { |
202 | - return $this->getThumbnail(self::THUMBNAIL_LARGE,$forceSecure); |
|
202 | + return $this->getThumbnail(self::THUMBNAIL_LARGE, $forceSecure); |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | */ |
213 | 213 | public function getLargestThumbnail($forceSecure = false) |
214 | 214 | { |
215 | - return $this->getThumbnail(self::THUMBNAIL_LARGE,$forceSecure); |
|
215 | + return $this->getThumbnail(self::THUMBNAIL_LARGE, $forceSecure); |
|
216 | 216 | } |
217 | 217 | |
218 | 218 | /** |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | */ |
235 | 235 | private function getVideoDataFromServiceApi($url) |
236 | 236 | { |
237 | - $contents = file_get_contents('https://vimeo.com/api/oembed.json?url=' . urlencode($url)); |
|
237 | + $contents = file_get_contents('https://vimeo.com/api/oembed.json?url='.urlencode($url)); |
|
238 | 238 | if (false === $contents) { |
239 | 239 | throw new ServiceApiNotAvailable( |
240 | 240 | 'Service "%s" could not reach it\'s API. Check if file_get_contents() function is available.', |