@@ -53,7 +53,7 @@ |
||
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 | { |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * Returns all thumbnails available sizes. |
57 | 57 | * |
58 | - * @return array |
|
58 | + * @return string[] |
|
59 | 59 | */ |
60 | 60 | public function getThumbNailSizes() |
61 | 61 | { |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -147,7 +147,7 @@ discard block |
||
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 |
||
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 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | throw new InvalidThumbnailSizeException(); |
132 | 132 | } |
133 | 133 | |
134 | - return $this->getScheme($forceSecure) . '://' . $this->thumbnails[$size]['host'] . $this->thumbnails[$size]['path']; |
|
134 | + return $this->getScheme($forceSecure).'://'.$this->thumbnails[$size]['host'].$this->thumbnails[$size]['path']; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function getEmbedUrl($forceAutoplay = false, $forceSecure = false) |
143 | 143 | { |
144 | - return $this->getScheme($forceSecure) . '://player.vimeo.com/video/' . $this->getVideoId() . ($forceAutoplay ? '?autoplay=1' : ''); |
|
144 | + return $this->getScheme($forceSecure).'://player.vimeo.com/video/'.$this->getVideoId().($forceAutoplay ? '?autoplay=1' : ''); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | */ |
168 | 168 | public function getSmallThumbnail($forceSecure = false) |
169 | 169 | { |
170 | - return $this->getThumbnail(self::THUMBNAIL_SMALL,$forceSecure); |
|
170 | + return $this->getThumbnail(self::THUMBNAIL_SMALL, $forceSecure); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | */ |
180 | 180 | public function getMediumThumbnail($forceSecure = false) |
181 | 181 | { |
182 | - return $this->getThumbnail(self::THUMBNAIL_MEDIUM,$forceSecure); |
|
182 | + return $this->getThumbnail(self::THUMBNAIL_MEDIUM, $forceSecure); |
|
183 | 183 | } |
184 | 184 | |
185 | 185 | /** |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | public function getLargeThumbnail($forceSecure = false) |
194 | 194 | { |
195 | - return $this->getThumbnail(self::THUMBNAIL_LARGE,$forceSecure); |
|
195 | + return $this->getThumbnail(self::THUMBNAIL_LARGE, $forceSecure); |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | */ |
206 | 206 | public function getLargestThumbnail($forceSecure = false) |
207 | 207 | { |
208 | - return $this->getThumbnail(self::THUMBNAIL_LARGE,$forceSecure); |
|
208 | + return $this->getThumbnail(self::THUMBNAIL_LARGE, $forceSecure); |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | /** |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | */ |
243 | 243 | private function getVideoDataFromServiceApi() |
244 | 244 | { |
245 | - $contents = file_get_contents('http://vimeo.com/api/v2/video/' . $this->getVideoId() . '.php'); |
|
245 | + $contents = file_get_contents('http://vimeo.com/api/v2/video/'.$this->getVideoId().'.php'); |
|
246 | 246 | if (false === $contents) { |
247 | 247 | throw new ServiceApiNotAvailable('Vimeo Service Adapter could not reach Vimeo API Service. Check if your server has file_get_contents() function available.'); |
248 | 248 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | throw new InvalidThumbnailSizeException(); |
71 | 71 | } |
72 | 72 | |
73 | - return $this->getScheme($forceSecure) . '://img.youtube.com/vi/' . $this->getVideoId() . '/' . $size . '.jpg'; |
|
73 | + return $this->getScheme($forceSecure).'://img.youtube.com/vi/'.$this->getVideoId().'/'.$size.'.jpg'; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function getEmbedUrl($forceAutoplay = false, $forceSecure = false) |
96 | 96 | { |
97 | - return $this->getScheme($forceSecure) . '://www.youtube.com/embed/' . $this->getVideoId() . ($forceAutoplay ? '?amp&autoplay=1' : ''); |
|
97 | + return $this->getScheme($forceSecure).'://www.youtube.com/embed/'.$this->getVideoId().($forceAutoplay ? '?amp&autoplay=1' : ''); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |