@@ -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 | } |
@@ -63,13 +63,13 @@ |
||
| 63 | 63 | |
| 64 | 64 | public function createRequest($verb, $path) |
| 65 | 65 | { |
| 66 | - if (! isset($this->accessToken)) { |
|
| 66 | + if (!isset($this->accessToken)) { |
|
| 67 | 67 | $this->accessToken = $this->provider->getAccessToken('client_credentials'); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | return $this->provider->getAuthenticatedRequest( |
| 71 | 71 | $verb, |
| 72 | - self::BASE_URI . $path, |
|
| 72 | + self::BASE_URI.$path, |
|
| 73 | 73 | $this->accessToken |
| 74 | 74 | ); |
| 75 | 75 | } |
@@ -43,15 +43,15 @@ |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | - * Takes parameters passed in, makes a request to the API, and processes the response. |
|
| 47 | - * |
|
| 48 | - * @param string $verb |
|
| 49 | - * @param string $path |
|
| 50 | - * @param array $query |
|
| 51 | - * @param array $options |
|
| 52 | - * |
|
| 53 | - * @return object|array|StreamInterface |
|
| 54 | - */ |
|
| 46 | + * Takes parameters passed in, makes a request to the API, and processes the response. |
|
| 47 | + * |
|
| 48 | + * @param string $verb |
|
| 49 | + * @param string $path |
|
| 50 | + * @param array $query |
|
| 51 | + * @param array $options |
|
| 52 | + * |
|
| 53 | + * @return object|array|StreamInterface |
|
| 54 | + */ |
|
| 55 | 55 | public function request(string $verb, string $path, array $options = []) |
| 56 | 56 | { |
| 57 | 57 | $options['query'] = $this->query; |
@@ -12,16 +12,16 @@ |
||
| 12 | 12 | interface ClientInterface |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * Makes a request to the API. |
|
| 17 | - * |
|
| 18 | - * @param string $verb |
|
| 19 | - * @param string $path |
|
| 20 | - * @param array $query |
|
| 21 | - * @param array $options |
|
| 22 | - * |
|
| 23 | - * @return object|array|StreamInterface |
|
| 24 | - */ |
|
| 15 | + /** |
|
| 16 | + * Makes a request to the API. |
|
| 17 | + * |
|
| 18 | + * @param string $verb |
|
| 19 | + * @param string $path |
|
| 20 | + * @param array $query |
|
| 21 | + * @param array $options |
|
| 22 | + * |
|
| 23 | + * @return object|array|StreamInterface |
|
| 24 | + */ |
|
| 25 | 25 | public function request(string $verb, string $path, array $options = []); |
| 26 | 26 | |
| 27 | 27 | /** |