@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 29/08/2015 |
|
6 | - * Time: 19:37. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 29/08/2015 |
|
6 | + * Time: 19:37. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter; |
9 | 9 | |
10 | 10 | use RicardoFiorani\Exception\NotEmbeddableException; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 30/08/2015 |
|
6 | - * Time: 14:38. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 30/08/2015 |
|
6 | + * Time: 14:38. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter\Dailymotion; |
9 | 9 | |
10 | 10 | use RicardoFiorani\Adapter\AbstractServiceAdapter; |
@@ -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 | /** |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 30/08/2015 |
|
6 | - * Time: 14:40. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 30/08/2015 |
|
6 | + * Time: 14:40. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter\Dailymotion\Factory; |
9 | 9 | |
10 | 10 | use RicardoFiorani\Adapter\Dailymotion\DailymotionServiceAdapter; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 02/09/2015 |
|
6 | - * Time: 22:42. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 02/09/2015 |
|
6 | + * Time: 22:42. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter\Facebook; |
9 | 9 | |
10 | 10 | use RicardoFiorani\Adapter\AbstractServiceAdapter; |
@@ -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 | /** |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 02/09/2015 |
|
6 | - * Time: 22:41. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 02/09/2015 |
|
6 | + * Time: 22:41. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter\Facebook\Factory; |
9 | 9 | |
10 | 10 | use RicardoFiorani\Adapter\Facebook\FacebookServiceAdapter; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 29/08/2015 |
|
6 | - * Time: 14:57. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 29/08/2015 |
|
6 | + * Time: 14:57. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter\Factory; |
9 | 9 | |
10 | 10 | use RicardoFiorani\Adapter\VideoAdapterInterface; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 29/08/2015 |
|
6 | - * Time: 14:15. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 29/08/2015 |
|
6 | + * Time: 14:15. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter; |
9 | 9 | |
10 | 10 | interface VideoAdapterInterface |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 29/08/2015 |
|
6 | - * Time: 14:56. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 29/08/2015 |
|
6 | + * Time: 14:56. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter\Vimeo\Factory; |
9 | 9 | |
10 | 10 | use RicardoFiorani\Adapter\Factory\CallableServiceAdapterFactoryInterface; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: Ricardo Fiorani |
|
5 | - * Date: 29/08/2015 |
|
6 | - * Time: 14:56. |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: Ricardo Fiorani |
|
5 | + * Date: 29/08/2015 |
|
6 | + * Time: 14:56. |
|
7 | + */ |
|
8 | 8 | namespace RicardoFiorani\Adapter\Vimeo; |
9 | 9 | |
10 | 10 | use RicardoFiorani\Adapter\AbstractServiceAdapter; |
@@ -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 | } |