Procházet zdrojové kódy

Reformat getBaseUrl method

Philippe Thiers před 5 roky
rodič
revize
c610b2505c
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      src/Writing/PostmanCollectionWriter.php

+ 3 - 2
src/Writing/PostmanCollectionWriter.php

@@ -189,9 +189,10 @@ class PostmanCollectionWriter
             $reflectionMethod = new ReflectionMethod(\Laravel\Lumen\Routing\UrlGenerator::class, 'getRootUrl');
             $reflectionMethod->setAccessible(true);
             $url = app('url');
+
             return $reflectionMethod->invokeArgs($url, ['', $baseUrl]);
-        } else { //Is Laravel
-            return URL::formatRoot('', $baseUrl);
         }
+
+        return URL::formatRoot('', $baseUrl);
     }
 }