-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: removed unnecessary grouping by prefix #92
base: master
Are you sure you want to change the base?
Conversation
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
@@ -0,0 +1,117 @@ | |||
{ | |||
"swagger": "2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please correct formatting
$tag = (!empty($globalPrefix) && "/{$explodedUri[1]}" === $globalPrefix) | ||
? Arr::get($explodedUri, 2) | ||
: Arr::get($explodedUri, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please to implement something like this
$tag = (!empty($globalPrefix) && "/{$explodedUri[1]}" === $globalPrefix) | |
? Arr::get($explodedUri, 2) | |
: Arr::get($explodedUri, 1); | |
$tag = array_shift($explodedUri); | |
if ($globalPrefix === $tag)) { | |
$tag = array_shift($explodedUri); | |
} |
|
||
$service->addData($request, $response); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please implement test case for global prefix equals /global
and we call api /global
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #90 (issue)
Type of change
Bug fix (non-breaking change which fixes an issue)