@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | public function handle(Request $request, Closure $next) |
| 24 | 24 | { |
| 25 | 25 | $response = $next($request); |
| 26 | - if (! method_exists($response, 'header')) { |
|
| 26 | + if (!method_exists($response, 'header')) { |
|
| 27 | 27 | return $response; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | private function addCorsHeaders($response) |
| 39 | 39 | { |
| 40 | - if (! $response->headers->has('Access-Control-Allow-Origin')) { |
|
| 40 | + if (!$response->headers->has('Access-Control-Allow-Origin')) { |
|
| 41 | 41 | $response = $response->header('Access-Control-Allow-Origin', config('tma-helper.cors.allowedOrigins', 'localhost')) |
| 42 | 42 | ->header('Access-Control-Allow-Methods', config('tma-helper.cors.allowedMethods')); |
| 43 | 43 | |