Skip to content

Commit

Permalink
路径分隔符的小调整。
Browse files Browse the repository at this point in the history
  • Loading branch information
latrell committed Jul 10, 2014
1 parent 32ccaca commit a30d738
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Latrell/Swagger/Swagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -94,7 +94,6 @@ protected function realpaths($paths)
throw new SwaggerException("Path \"{$path}\" not found");
}
}
$paths[$i] .= DIRECTORY_SEPARATOR;
}
return $paths;
}
Expand Down

0 comments on commit a30d738

Please sign in to comment.