@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | $response = $this->authenticate($hostname, $client_id, $client_secret, $username, $password, $handler); |
| 67 | 67 | |
| 68 | - if (! isset($response['access_token']) || ! isset($response['subdomain'])) { |
|
| 68 | + if (!isset($response['access_token']) || !isset($response['subdomain'])) { |
|
| 69 | 69 | throw new Exception("Incorrect response from Authentication: 'access_token' or 'subdomain' is missing."); |
| 70 | 70 | } |
| 71 | 71 | |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | */ |
| 441 | 441 | public function getItemAccessControls(string $itemId, string $userId = ''):array |
| 442 | 442 | { |
| 443 | - if (! empty($userId)) { |
|
| 443 | + if (!empty($userId)) { |
|
| 444 | 444 | return $this->get("AccessControls(principalid={$userId},itemid={$itemId})"); |
| 445 | 445 | } else { |
| 446 | 446 | return $this->get("Items({$itemId})/AccessControls"); |
@@ -563,8 +563,8 @@ discard block |
||
| 563 | 563 | { |
| 564 | 564 | return http_build_query( |
| 565 | 565 | array_map( |
| 566 | - function ($parameter) { |
|
| 567 | - if (! is_bool($parameter)) { |
|
| 566 | + function($parameter) { |
|
| 567 | + if (!is_bool($parameter)) { |
|
| 568 | 568 | return $parameter; |
| 569 | 569 | } |
| 570 | 570 | |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | */ |
| 585 | 585 | protected function jsonValidator($data = null):bool |
| 586 | 586 | { |
| 587 | - if (! empty($data)) { |
|
| 587 | + if (!empty($data)) { |
|
| 588 | 588 | @json_decode($data); |
| 589 | 589 | |
| 590 | 590 | return json_last_error() === JSON_ERROR_NONE; |