@@ -70,7 +70,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | |
@@ -192,8 +192,8 @@ discard block |
||
192 | 192 | protected function splitValuePairs($parameters, $first = 'is ', $last = 'or ') { |
193 | 193 | $attribute = ''; |
194 | 194 | collect($parameters)->map(function($item, $key) use (&$attribute, $first, $last) { |
195 | - $attribute .= '`'.$item.'` '; |
|
196 | - if (($key+1) % 2 === 0) { |
|
195 | + $attribute .= '`' . $item . '` '; |
|
196 | + if (($key + 1) % 2 === 0) { |
|
197 | 197 | $attribute .= $last; |
198 | 198 | } else { |
199 | 199 | $attribute .= $first; |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | } |
266 | 266 | break; |
267 | 267 | case 'between': |
268 | - if (! isset($attributeData['type'])) { |
|
268 | + if (!isset($attributeData['type'])) { |
|
269 | 269 | $attributeData['type'] = 'numeric'; |
270 | 270 | } |
271 | 271 | $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
@@ -427,8 +427,8 @@ discard block |
||
427 | 427 | foreach ($headers as $name => $value) { |
428 | 428 | $name = strtr(strtoupper($name), '-', '_'); |
429 | 429 | |
430 | - if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
431 | - $name = $prefix.$name; |
|
430 | + if (!Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
431 | + $name = $prefix . $name; |
|
432 | 432 | } |
433 | 433 | |
434 | 434 | $server[$name] = $value; |