Completed
Push — master ( 0a755d...95298b )
by Luca
03:24 queued 10s
created
src/Parser/URLRegexParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function parse(string $publicWatchUrl) : ?string{
19 19
         preg_match($this->downloaderClass::getPublicUrlRegex(), $publicWatchUrl, $matches);
20
-        if(isset($matches[1])){
20
+        if (isset($matches[1])) {
21 21
             return $matches[1];
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/Exception/DownloadException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
      * @param string $name
9 9
      * @return DownloadException
10 10
      */
11
-    public static function invalidName(string $name){
11
+    public static function invalidName(string $name) {
12 12
         return new DownloadException(sprintf('Downloader type "%s" not found', $name));
13 13
     }
14 14
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * @param string $publicUrl
17 17
      * @return DownloadException
18 18
      */
19
-    public static function invalidPublicUrl(string $publicUrl){
19
+    public static function invalidPublicUrl(string $publicUrl) {
20 20
         return new DownloadException('Downloader not found [trying to parse: ' . $publicUrl . ']');
21 21
     }
22 22
 
Please login to merge, or discard this patch.
src/VideoDownloader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@
 block discarded – undo
60 60
      * @throws DownloadException
61 61
      */
62 62
     public function getDownloaderByPublicUrl(string $publicUrl, $config = []) : DownloaderInterface{
63
-        foreach ($this->getRegisteredDownloaders() as $downloaderClass){
63
+        foreach ($this->getRegisteredDownloaders() as $downloaderClass) {
64 64
             $regexParser = new URLRegexParser($downloaderClass);
65
-            if($regexParser->isValidUrl($publicUrl)){
65
+            if ($regexParser->isValidUrl($publicUrl)) {
66 66
                 return new $downloaderClass($regexParser->parse($publicUrl), $config);
67 67
             }
68 68
         }
Please login to merge, or discard this patch.