@@ -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 | /** |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Ricardo Fiorani |
|
| 5 | - * Date: 31/08/2015 |
|
| 6 | - * Time: 21:07. |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Ricardo Fiorani |
|
| 5 | + * Date: 31/08/2015 |
|
| 6 | + * Time: 21:07. |
|
| 7 | + */ |
|
| 8 | 8 | namespace RicardoFiorani\Container\Factory; |
| 9 | 9 | |
| 10 | 10 | use RicardoFiorani\Container\ServicesContainer; |
@@ -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; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Ricardo Fiorani |
|
| 5 | - * Date: 31/08/2015 |
|
| 6 | - * Time: 21:06. |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Ricardo Fiorani |
|
| 5 | + * Date: 31/08/2015 |
|
| 6 | + * Time: 21:06. |
|
| 7 | + */ |
|
| 8 | 8 | namespace RicardoFiorani\Container; |
| 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: 23:28. |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Ricardo Fiorani |
|
| 5 | + * Date: 29/08/2015 |
|
| 6 | + * Time: 23:28. |
|
| 7 | + */ |
|
| 8 | 8 | namespace RicardoFiorani\Exception; |
| 9 | 9 | |
| 10 | 10 | use Exception; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Ricardo Fiorani |
|
| 5 | - * Date: 30/08/2015 |
|
| 6 | - * Time: 00:55. |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Ricardo Fiorani |
|
| 5 | + * Date: 30/08/2015 |
|
| 6 | + * Time: 00:55. |
|
| 7 | + */ |
|
| 8 | 8 | namespace RicardoFiorani\Renderer; |
| 9 | 9 | |
| 10 | 10 | class DefaultRenderer implements EmbedRendererInterface |
@@ -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 | } |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Ricardo Fiorani |
|
| 5 | - * Date: 30/08/2015 |
|
| 6 | - * Time: 00:54. |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Ricardo Fiorani |
|
| 5 | + * Date: 30/08/2015 |
|
| 6 | + * Time: 00:54. |
|
| 7 | + */ |
|
| 8 | 8 | namespace RicardoFiorani\Renderer; |
| 9 | 9 | |
| 10 | 10 | interface EmbedRendererInterface |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Ricardo Fiorani |
|
| 5 | - * Date: 30/08/2015 |
|
| 6 | - * Time: 01:05. |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Ricardo Fiorani |
|
| 5 | + * Date: 30/08/2015 |
|
| 6 | + * Time: 01:05. |
|
| 7 | + */ |
|
| 8 | 8 | namespace RicardoFiorani\Renderer\Factory; |
| 9 | 9 | |
| 10 | 10 | use RicardoFiorani\Renderer\DefaultRenderer; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Ricardo Fiorani |
|
| 5 | - * Date: 30/08/2015 |
|
| 6 | - * Time: 01:09. |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Ricardo Fiorani |
|
| 5 | + * Date: 30/08/2015 |
|
| 6 | + * Time: 01:09. |
|
| 7 | + */ |
|
| 8 | 8 | namespace RicardoFiorani\Renderer\Factory; |
| 9 | 9 | |
| 10 | 10 | use RicardoFiorani\Renderer\EmbedRendererInterface; |