@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * @param string $uri |
| 50 | 50 | * @param array $urlParameters Dictionary of url params and example values |
| 51 | 51 | * |
| 52 | - * @return mixed |
|
| 52 | + * @return string |
|
| 53 | 53 | */ |
| 54 | 54 | public static function replaceUrlParameterPlaceholdersWithValues(string $uri, array $urlParameters) |
| 55 | 55 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Mpociot\ApiDoc\Tools; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Routing\Route; |
| 6 | -use Illuminate\Support\Arr; |
|
| 7 | 6 | use League\Flysystem\Adapter\Local; |
| 8 | 7 | use League\Flysystem\Filesystem; |
| 9 | 8 | use Symfony\Component\Console\Output\ConsoleOutput; |
@@ -161,18 +161,18 @@ |
||
| 161 | 161 | if (array_keys($value)[0] === 0) { |
| 162 | 162 | // List query param (eg filter[]=haha should become "filter[]": "haha") |
| 163 | 163 | $output .= str_repeat(" ", $spacesIndentation); |
| 164 | - $output .= "$quote$parameter"."[]$quote$delimiter $quote$value[0]$quote,\n"; |
|
| 164 | + $output .= "$quote$parameter" . "[]$quote$delimiter $quote$value[0]$quote,\n"; |
|
| 165 | 165 | } else { |
| 166 | 166 | // Hash query param (eg filter[name]=john should become "filter[name]": "john") |
| 167 | 167 | foreach ($value as $item => $itemValue) { |
| 168 | 168 | $output .= str_repeat(" ", $spacesIndentation); |
| 169 | - $output .= "$quote$parameter"."[$item]$quote$delimiter $quote$itemValue$quote,\n"; |
|
| 169 | + $output .= "$quote$parameter" . "[$item]$quote$delimiter $quote$itemValue$quote,\n"; |
|
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | - return $output.str_repeat(" ", $closingBraceIndentation)."{$braces[1]}"; |
|
| 176 | + return $output . str_repeat(" ", $closingBraceIndentation) . "{$braces[1]}"; |
|
| 177 | 177 | } |
| 178 | 178 | } |