Completed
Push — master ( 74dd9d...8d9a85 )
by Marcel
05:09 queued 02:37
created
src/Mpociot/ApiDoc/Generators/AbstractGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $uri = $this->getUri($route);
80 80
         foreach ($bindings as $model => $id) {
81
-            $uri = str_replace('{'.$model.'}', $id, $uri);
81
+            $uri = str_replace('{' . $model . '}', $id, $uri);
82 82
         }
83 83
 
84 84
         return $uri;
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
         foreach ($reflectionMethod->getParameters() as $parameter) {
141 141
             $parameterType = $parameter->getClass();
142
-            if (! is_null($parameterType) && class_exists($parameterType->name)) {
142
+            if (!is_null($parameterType) && class_exists($parameterType->name)) {
143 143
                 $className = $parameterType->name;
144 144
                 $parameterReflection = new $className;
145 145
                 if ($parameterReflection instanceof FormRequest) {
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
      */
165 165
     protected function fancyImplode($arr, $first, $last)
166 166
     {
167
-        $arr = array_map(function ($value) {
168
-            return '`'.$value.'`';
167
+        $arr = array_map(function($value) {
168
+            return '`' . $value . '`';
169 169
         }, $arr);
170 170
         array_push($arr, implode($last, array_splice($arr, -2)));
171 171
 
@@ -375,8 +375,8 @@  discard block
 block discarded – undo
375 375
         foreach ($headers as $name => $value) {
376 376
             $name = strtr(strtoupper($name), '-', '_');
377 377
 
378
-            if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
379
-                $name = $prefix.$name;
378
+            if (!Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
379
+                $name = $prefix . $name;
380 380
             }
381 381
 
382 382
             $server[$name] = $value;
Please login to merge, or discard this patch.