Completed
Pull Request — master (#700)
by
unknown
01:21
created
src/Tools/Utils.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,18 +161,18 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.