Passed
Push — master ( 66725d...572fe3 )
by Arthur
20:58
created
src/Foundation/Abstracts/Tests/HttpTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,32 +58,32 @@
 block discarded – undo
58 58
         }
59 59
 
60 60
         if ($unwrap) {
61
-            return json_decode($content, true)['data'] ?? json_decode($content, true);
61
+            return json_decode($content, true)[ 'data' ] ?? json_decode($content, true);
62 62
         }
63 63
 
64 64
         return json_decode($content, true);
65 65
     }
66 66
 
67
-    protected function http(string $method, string $route, array $payload = [])
67
+    protected function http(string $method, string $route, array $payload = [ ])
68 68
     {
69 69
         return $this->sendRequest($method, $route, $payload, true);
70 70
     }
71 71
 
72
-    private function sendRequest(string $method, string $route, array $payload = [], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
72
+    private function sendRequest(string $method, string $route, array $payload = [ ], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
73 73
     {
74 74
         return $this->json($method, env('API_URL').$route, $payload, $authenticated ? [
75 75
             'Authorization' => 'Bearer '.$this->getAuth0Service()->getTestUserToken()->id_token,
76
-        ] : []);
76
+        ] : [ ]);
77 77
     }
78 78
 
79
-    protected function sendRequestWithToken($token, string $method, string $route, array $payload = [], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
79
+    protected function sendRequestWithToken($token, string $method, string $route, array $payload = [ ], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
80 80
     {
81 81
         return $this->json($method, env('API_URL').'/'.$route, $payload, $authenticated ? [
82 82
             'Authorization' => 'Bearer '.$token,
83
-        ] : []);
83
+        ] : [ ]);
84 84
     }
85 85
 
86
-    protected function httpNoAuth(string $method, string $route, array $payload = [])
86
+    protected function httpNoAuth(string $method, string $route, array $payload = [ ])
87 87
     {
88 88
         return $this->sendRequest($method, $route, $payload, false);
89 89
     }
Please login to merge, or discard this patch.