Browse Source

Reformat getBaseUrl method

Philippe Thiers 5 years ago
parent
commit
c610b2505c
1 changed files with 3 additions and 2 deletions
  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);
     }
 }