@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | protected $service; |
17 | 17 | |
18 | - public function __construct(?string $name = null, array $data = [], string $dataName = '') |
|
18 | + public function __construct(?string $name = null, array $data = [ ], string $dataName = '') |
|
19 | 19 | { |
20 | 20 | parent::__construct($name, $data, $dataName); |
21 | 21 | $this->service = new BootstrapRegistrarService(); |
@@ -27,9 +27,9 @@ discard block |
||
27 | 27 | |
28 | 28 | private function getUserTokenData(): \stdClass |
29 | 29 | { |
30 | - return Cache::remember('testing:http_access_token', 60, function () { |
|
30 | + return Cache::remember('testing:http_access_token', 60, function() { |
|
31 | 31 | $httpClient = new Client(); |
32 | - $response = $httpClient->post(config('laravel-auth0.domain') . 'oauth/token', [ |
|
32 | + $response = $httpClient->post(config('laravel-auth0.domain').'oauth/token', [ |
|
33 | 33 | 'form_params' => [ |
34 | 34 | 'grant_type' => 'password', |
35 | 35 | 'client_id' => 'Dik7up1ZsRePpdZNjzrHIAUHe8mCb3RK', |
@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | |
50 | 50 | private function sendRequest(string $method, string $route, array $payload = array(), $authenticated = true): \Illuminate\Foundation\Testing\TestResponse |
51 | 51 | { |
52 | - return $this->json($method, env('API_URL') . '/' . $route, $payload, $authenticated ? [ |
|
53 | - "Authorization" => "Bearer " . $this->getUserTokenData()->id_token |
|
54 | - ] : []); |
|
52 | + return $this->json($method, env('API_URL').'/'.$route, $payload, $authenticated ? [ |
|
53 | + "Authorization" => "Bearer ".$this->getUserTokenData()->id_token |
|
54 | + ] : [ ]); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | protected function httpNoAuth(string $method, string $route, array $payload = array()) |