@@ -78,7 +78,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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; |