Remove redundant parentheses

This commit is contained in:
Kleis Auke Wolthuizen
2017-11-21 17:28:47 +01:00
parent 7c9ea4874d
commit 4f3f82b1ba
2 changed files with 3 additions and 3 deletions

View File

@@ -27,12 +27,12 @@ class User implements API
public function getUserID(): string public function getUserID(): string
{ {
return ($this->getUserDetails())->id; return $this->getUserDetails()->id;
} }
public function getUserEmail(): string public function getUserEmail(): string
{ {
return ($this->getUserDetails())->email; return $this->getUserDetails()->email;
} }
public function updateUserDetails(array $details): \stdClass public function updateUserDetails(array $details): \stdClass

View File

@@ -134,7 +134,7 @@ class Zones implements API
*/ */
public function changeDevelopmentMode(string $zoneID, bool $enable = false): bool public function changeDevelopmentMode(string $zoneID, bool $enable = false): bool
{ {
$response = $this->adapter->patch('zones/' . $zoneID . '/settings/development_mode', [], ['value' => ($enable ? 'on' : 'off')]); $response = $this->adapter->patch('zones/' . $zoneID . '/settings/development_mode', [], ['value' => $enable ? 'on' : 'off']);
$body = json_decode($response->getBody()); $body = json_decode($response->getBody());