diff --git a/src/Latrell/Swagger/Swagger.php b/src/Latrell/Swagger/Swagger.php index fc8ffcd..49cb0ff 100644 --- a/src/Latrell/Swagger/Swagger.php +++ b/src/Latrell/Swagger/Swagger.php @@ -15,7 +15,7 @@ public function fire() { $projectPaths = $this->realpaths($this->paths); $excludePaths = $this->realpaths($this->exclude); - $outputPath = head($this->realpaths(base_path($this->output))); + $outputPath = head($this->realpaths(base_path($this->output))) . DIRECTORY_SEPARATOR; $swagger = new \Swagger\Swagger($projectPaths, $excludePaths); @@ -94,7 +94,6 @@ protected function realpaths($paths) throw new SwaggerException("Path \"{$path}\" not found"); } } - $paths[$i] .= DIRECTORY_SEPARATOR; } return $paths; }