Remove redundant parentheses
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user