@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | $uri = $this->getUri($route); |
81 | 81 | foreach ($bindings as $model => $id) { |
82 | - $uri = str_replace('{'.$model.'}', $id, $uri); |
|
82 | + $uri = str_replace('{' . $model . '}', $id, $uri); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | return $uri; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | foreach ($reflectionMethod->getParameters() as $parameter) { |
143 | 143 | $parameterType = $parameter->getClass(); |
144 | - if (! is_null($parameterType) && class_exists($parameterType->name)) { |
|
144 | + if (!is_null($parameterType) && class_exists($parameterType->name)) { |
|
145 | 145 | $className = $parameterType->name; |
146 | 146 | |
147 | 147 | if (is_subclass_of($className, FormRequest::class)) { |
@@ -171,8 +171,8 @@ discard block |
||
171 | 171 | */ |
172 | 172 | protected function fancyImplode($arr, $first, $last) |
173 | 173 | { |
174 | - $arr = array_map(function ($value) { |
|
175 | - return '`'.$value.'`'; |
|
174 | + $arr = array_map(function($value) { |
|
175 | + return '`' . $value . '`'; |
|
176 | 176 | }, $arr); |
177 | 177 | array_push($arr, implode($last, array_splice($arr, -2))); |
178 | 178 | |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
236 | 236 | break; |
237 | 237 | case 'between': |
238 | - if (! isset($attributeData['type'])) { |
|
238 | + if (!isset($attributeData['type'])) { |
|
239 | 239 | $attributeData['type'] = 'numeric'; |
240 | 240 | } |
241 | 241 | $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
@@ -392,8 +392,8 @@ discard block |
||
392 | 392 | foreach ($headers as $name => $value) { |
393 | 393 | $name = strtr(strtoupper($name), '-', '_'); |
394 | 394 | |
395 | - if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
396 | - $name = $prefix.$name; |
|
395 | + if (!Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
396 | + $name = $prefix . $name; |
|
397 | 397 | } |
398 | 398 | |
399 | 399 | $server[$name] = $value; |