From 4f3f82b1baebee5c79fe2e69320b6ac3d92f95d9 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Tue, 21 Nov 2017 17:28:47 +0100 Subject: [PATCH] Remove redundant parentheses --- src/Endpoints/User.php | 4 ++-- src/Endpoints/Zones.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Endpoints/User.php b/src/Endpoints/User.php index a06c720..705d753 100644 --- a/src/Endpoints/User.php +++ b/src/Endpoints/User.php @@ -27,12 +27,12 @@ class User implements API public function getUserID(): string { - return ($this->getUserDetails())->id; + return $this->getUserDetails()->id; } public function getUserEmail(): string { - return ($this->getUserDetails())->email; + return $this->getUserDetails()->email; } public function updateUserDetails(array $details): \stdClass diff --git a/src/Endpoints/Zones.php b/src/Endpoints/Zones.php index ce9258b..c35cd3e 100644 --- a/src/Endpoints/Zones.php +++ b/src/Endpoints/Zones.php @@ -134,7 +134,7 @@ class Zones implements API */ 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());