@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -147,7 +147,7 @@ discard block |
||
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 |
||
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 | } |
@@ -71,7 +71,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -13,7 +13,7 @@ |
||
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; |
@@ -25,6 +25,6 @@ |
||
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 | } |