@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($teams) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($team) { |
|
18 | + parent::__construct(array_map(function($team) { |
|
19 | 19 | return new TeamResponse($team); |
20 | 20 | }, $teams), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($permissions) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($permission) { |
|
18 | + parent::__construct(array_map(function($permission) { |
|
19 | 19 | return new PermissionResponse($permission); |
20 | 20 | }, $permissions), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($environments) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($environment) { |
|
18 | + parent::__construct(array_map(function($environment) { |
|
19 | 19 | return new EnvironmentResponse($environment); |
20 | 20 | }, $environments), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($invitations) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($invitation) { |
|
18 | + parent::__construct(array_map(function($invitation) { |
|
19 | 19 | return new InvitationResponse($invitation); |
20 | 20 | }, $invitations), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($roles) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($role) { |
|
18 | + parent::__construct(array_map(function($role) { |
|
19 | 19 | return new RoleResponse($role); |
20 | 20 | }, $roles), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($organizations) |
17 | 17 | { |
18 | - parent::__construct(array_map(function ($organization) { |
|
18 | + parent::__construct(array_map(function($organization) { |
|
19 | 19 | return new OrganizationResponse($organization); |
20 | 20 | }, $organizations), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -539,7 +539,7 @@ |
||
539 | 539 | { |
540 | 540 | |
541 | 541 | $options = [ |
542 | - 'form_params' => $config, |
|
542 | + 'form_params' => $config, |
|
543 | 543 | ]; |
544 | 544 | |
545 | 545 | return new OperationResponse( |
@@ -90,18 +90,18 @@ |
||
90 | 90 | */ |
91 | 91 | public function makeRequest(string $verb, string $path, array $query = [], array $options = []) |
92 | 92 | { |
93 | - if (! isset($this->accessToken)) { |
|
93 | + if (!isset($this->accessToken)) { |
|
94 | 94 | $this->accessToken = $this->provider->getAccessToken('client_credentials'); |
95 | 95 | } |
96 | 96 | |
97 | 97 | try { |
98 | 98 | $request = $this->provider->getAuthenticatedRequest( |
99 | 99 | $verb, |
100 | - self::BASE_URI . $path, |
|
100 | + self::BASE_URI.$path, |
|
101 | 101 | $this->accessToken |
102 | 102 | ); |
103 | 103 | $client = new GuzzleClient(); |
104 | - $response = $client->send($request, $options); |
|
104 | + $response = $client->send($request, $options); |
|
105 | 105 | } catch (ClientException $e) { |
106 | 106 | print $e->getMessage(); |
107 | 107 | $response = $e->getResponse(); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function __construct($notifications) |
16 | 16 | { |
17 | - parent::__construct(array_map(function ($notification) { |
|
17 | + parent::__construct(array_map(function($notification) { |
|
18 | 18 | return new NotificationResponse($notification); |
19 | 19 | }, $notifications), self::ARRAY_AS_PROPS); |
20 | 20 | } |