Completed
Push — master ( 82368f...2b9896 )
by Marcel
07:47 queued 03:51
created
src/Mpociot/ApiDoc/Generators/DingoGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         $routeDescription = $this->getRouteDescription($routeAction['uses']);
31 31
 
32 32
         return $this->getParameters([
33
-            'id' => md5($route->uri().':'.implode($route->getMethods())),
33
+            'id' => md5($route->uri() . ':' . implode($route->getMethods())),
34 34
             'resource' => $routeGroup,
35 35
             'title' => $routeDescription['short'],
36 36
             'description' => $routeDescription['long'],
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $dispatcher = app('Dingo\Api\Dispatcher')->raw();
50 50
 
51
-        collect($server)->map(function ($key, $value) use ($dispatcher) {
51
+        collect($server)->map(function($key, $value) use ($dispatcher) {
52 52
             $dispatcher->header($key, $value);
53 53
         });
54 54
 
Please login to merge, or discard this patch.
src/Mpociot/ApiDoc/Generators/AbstractGenerator.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $methods = $route->getMethods();
71 71
 
72 72
         // Split headers into key - value pairs
73
-        $headers = collect($headers)->map(function ($value) {
73
+        $headers = collect($headers)->map(function($value) {
74 74
             $split = explode(':', $value);
75 75
 
76 76
             return [trim($split[0]) => trim($split[1])];
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $uri = $this->getUri($route);
91 91
         foreach ($bindings as $model => $id) {
92
-            $uri = str_replace('{'.$model.'}', $id, $uri);
92
+            $uri = str_replace('{' . $model . '}', $id, $uri);
93 93
         }
94 94
 
95 95
         return $uri;
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         foreach ($reflectionMethod->getParameters() as $parameter) {
153 153
             $parameterType = $parameter->getClass();
154
-            if (! is_null($parameterType) && class_exists($parameterType->name)) {
154
+            if (!is_null($parameterType) && class_exists($parameterType->name)) {
155 155
                 $className = $parameterType->name;
156 156
 
157 157
                 if (is_subclass_of($className, FormRequest::class)) {
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
      */
182 182
     protected function fancyImplode($arr, $first, $last)
183 183
     {
184
-        $arr = array_map(function ($value) {
185
-            return '`'.$value.'`';
184
+        $arr = array_map(function($value) {
185
+            return '`' . $value . '`';
186 186
         }, $arr);
187 187
         array_push($arr, implode($last, array_splice($arr, -2)));
188 188
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
                 }
252 252
                 break;
253 253
             case 'between':
254
-                if (! isset($attributeData['type'])) {
254
+                if (!isset($attributeData['type'])) {
255 255
                     $attributeData['type'] = 'numeric';
256 256
                 }
257 257
                 $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription();
@@ -413,8 +413,8 @@  discard block
 block discarded – undo
413 413
         foreach ($headers as $name => $value) {
414 414
             $name = strtr(strtoupper($name), '-', '_');
415 415
 
416
-            if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
417
-                $name = $prefix.$name;
416
+            if (!Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
417
+                $name = $prefix . $name;
418 418
             }
419 419
 
420 420
             $server[$name] = $value;
Please login to merge, or discard this patch.