@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | protected function getDocblockResponse($tags) |
| 57 | 57 | { |
| 58 | - $responseTags = array_filter($tags, function ($tag) { |
|
| 59 | - if (! ($tag instanceof Tag)) { |
|
| 58 | + $responseTags = array_filter($tags, function($tag) { |
|
| 59 | + if (!($tag instanceof Tag)) { |
|
| 60 | 60 | return false; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $methods = $this->getMethods($route); |
| 112 | 112 | |
| 113 | 113 | // Split headers into key - value pairs |
| 114 | - $headers = collect($headers)->map(function ($value) { |
|
| 114 | + $headers = collect($headers)->map(function($value) { |
|
| 115 | 115 | $split = explode(':', $value); // explode to get key + values |
| 116 | 116 | $key = array_shift($split); // extract the key and keep the values in the array |
| 117 | 117 | $value = implode(':', $split); // implode values into string again |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | { |
| 136 | 136 | $uri = $this->getUri($route); |
| 137 | 137 | foreach ($bindings as $model => $id) { |
| 138 | - $uri = str_replace('{'.$model.'}', $id, $uri); |
|
| 138 | + $uri = str_replace('{' . $model . '}', $id, $uri); |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | return $uri; |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | foreach ($reflectionMethod->getParameters() as $parameter) { |
| 200 | 200 | $parameterType = $parameter->getClass(); |
| 201 | - if (! is_null($parameterType) && class_exists($parameterType->name)) { |
|
| 201 | + if (!is_null($parameterType) && class_exists($parameterType->name)) { |
|
| 202 | 202 | $className = $parameterType->name; |
| 203 | 203 | |
| 204 | 204 | if (is_subclass_of($className, FormRequest::class)) { |
@@ -228,8 +228,8 @@ discard block |
||
| 228 | 228 | */ |
| 229 | 229 | protected function fancyImplode($arr, $first, $last) |
| 230 | 230 | { |
| 231 | - $arr = array_map(function ($value) { |
|
| 232 | - return '`'.$value.'`'; |
|
| 231 | + $arr = array_map(function($value) { |
|
| 232 | + return '`' . $value . '`'; |
|
| 233 | 233 | }, $arr); |
| 234 | 234 | array_push($arr, implode($last, array_splice($arr, -2))); |
| 235 | 235 | |
@@ -239,8 +239,8 @@ discard block |
||
| 239 | 239 | protected function splitValuePairs($parameters, $first = 'is ', $last = 'or ') |
| 240 | 240 | { |
| 241 | 241 | $attribute = ''; |
| 242 | - collect($parameters)->map(function ($item, $key) use (&$attribute, $first, $last) { |
|
| 243 | - $attribute .= '`'.$item.'` '; |
|
| 242 | + collect($parameters)->map(function($item, $key) use (&$attribute, $first, $last) { |
|
| 243 | + $attribute .= '`' . $item . '` '; |
|
| 244 | 244 | if (($key + 1) % 2 === 0) { |
| 245 | 245 | $attribute .= $last; |
| 246 | 246 | } else { |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | } |
| 315 | 315 | break; |
| 316 | 316 | case 'between': |
| 317 | - if (! isset($attributeData['type'])) { |
|
| 317 | + if (!isset($attributeData['type'])) { |
|
| 318 | 318 | $attributeData['type'] = 'numeric'; |
| 319 | 319 | } |
| 320 | 320 | $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
@@ -476,8 +476,8 @@ discard block |
||
| 476 | 476 | foreach ($headers as $name => $value) { |
| 477 | 477 | $name = strtr(strtoupper($name), '-', '_'); |
| 478 | 478 | |
| 479 | - if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
| 480 | - $name = $prefix.$name; |
|
| 479 | + if (!Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
| 480 | + $name = $prefix . $name; |
|
| 481 | 481 | } |
| 482 | 482 | |
| 483 | 483 | $server[$name] = $value; |