Passed
Push — master ( 509f03...bb08d5 )
by Tobias
02:14
created
src/Http/Middleware/Cors.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.