Skip to content

Commit

Permalink
Revise namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
battis committed Feb 13, 2024
1 parent 2e463ca commit 4d42912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/map
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ require __DIR__ . "/../vendor/autoload.php";
class BlackbaudMap extends Map {
protected function getNamespaceFromSpec(string $specPath, OpenApi $spec, string $baseNamespace): string
{
return Path::join("\\",[$baseNamespace, preg_replace("/[^a-z0-9_]+/i", "", $spec->info->title)]);
return Path::join("\\",array_merge([$baseNamespace], explode(" ", $spec->info->title)));
}

protected function getBasePathFromSpec(string $specPath, OpenApi $spec, string $basePath): string
{
return Path::join($basePath, preg_replace("/[^a-z0-9_]+/i", "", $spec->info->title));
return Path::join(array_merge([$basePath], explode(" ", $spec->info->title)));
}
}

Expand Down

0 comments on commit 4d42912

Please sign in to comment.