Completed
Pull Request — master (#3)
by
unknown
03:20
created
src/Adapter/Vimeo/VimeoServiceAdapter.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Adapter/Youtube/YoutubeServiceAdapter.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return array
76
+     * @return string[]
77 77
      */
78 78
     public function getThumbNailSizes()
79 79
     {
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Adapter/Dailymotion/DailymotionServiceAdapter.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return array
76
+     * @return string[]
77 77
      */
78 78
     public function getThumbNailSizes()
79 79
     {
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Adapter/Facebook/FacebookServiceAdapter.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return array
76
+     * @return string[]
77 77
      */
78 78
     public function getThumbNailSizes()
79 79
     {
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Adapter/AbstractServiceAdapter.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Adapter/Dailymotion/Factory/DailymotionServiceAdapterFactory.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Adapter/Facebook/Factory/FacebookServiceAdapterFactory.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Adapter/Factory/CallableServiceAdapterFactoryInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Adapter/VideoAdapterInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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
Please login to merge, or discard this patch.