@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | 151 | * Returns all thumbnails available sizes |
| 152 | - * @return array |
|
| 152 | + * @return string[] |
|
| 153 | 153 | */ |
| 154 | 154 | public function getThumbNailSizes() |
| 155 | 155 | { |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | /** |
| 208 | 208 | * @param string $url |
| 209 | 209 | * @param string $pattern |
| 210 | - * @return int |
|
| 210 | + * @return string |
|
| 211 | 211 | */ |
| 212 | 212 | private function getVideoIdByPattern($url, $pattern) |
| 213 | 213 | { |
@@ -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 | } |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return array |
|
| 76 | + * @return string[] |
|
| 77 | 77 | */ |
| 78 | 78 | public function getThumbNailSizes() |
| 79 | 79 | { |
@@ -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:53. |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Ricardo Fiorani |
|
| 5 | + * Date: 29/08/2015 |
|
| 6 | + * Time: 14:53. |
|
| 7 | + */ |
|
| 8 | 8 | namespace RicardoFiorani\Adapter\Youtube; |
| 9 | 9 | |
| 10 | 10 | use RicardoFiorani\Adapter\AbstractServiceAdapter; |
@@ -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 | /** |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return array |
|
| 76 | + * @return string[] |
|
| 77 | 77 | */ |
| 78 | 78 | public function getThumbNailSizes() |
| 79 | 79 | { |
@@ -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 | /** |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return array |
|
| 76 | + * @return string[] |
|
| 77 | 77 | */ |
| 78 | 78 | public function getThumbNailSizes() |
| 79 | 79 | { |
@@ -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: 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: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: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 |