diff --git a/src/Endpoints/TLS.php b/src/Endpoints/TLS.php index a675b01..46c960e 100644 --- a/src/Endpoints/TLS.php +++ b/src/Endpoints/TLS.php @@ -128,4 +128,4 @@ class TLS implements API return false; } -} \ No newline at end of file +} diff --git a/src/Endpoints/ZoneSettings.php b/src/Endpoints/ZoneSettings.php index e8877b7..03c66d9 100644 --- a/src/Endpoints/ZoneSettings.php +++ b/src/Endpoints/ZoneSettings.php @@ -92,7 +92,8 @@ class ZoneSettings implements API public function updateMinifySetting($zoneID, $html, $css, $js) { $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/minify', [ + 'zones/' . $zoneID . '/settings/minify', + [ 'value' => [ 'html' => $html, 'css' => $css, @@ -112,7 +113,8 @@ class ZoneSettings implements API public function updateRocketLoaderSetting($zoneID, $value) { $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/rocket_loader', [ + 'zones/' . $zoneID . '/settings/rocket_loader', + [ 'value' => $value, ] ); @@ -128,7 +130,8 @@ class ZoneSettings implements API public function updateAlwaysOnlineSetting($zoneID, $value) { $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/always_online', [ + 'zones/' . $zoneID . '/settings/always_online', + [ 'value' => $value, ] ); @@ -144,7 +147,8 @@ class ZoneSettings implements API public function updateEmailObfuscationSetting($zoneID, $value) { $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/email_obfuscation', [ + 'zones/' . $zoneID . '/settings/email_obfuscation', + [ 'value' => $value, ] ); @@ -160,7 +164,8 @@ class ZoneSettings implements API public function updateHotlinkProtectionSetting($zoneID, $value) { $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/hotlink_protection', [ + 'zones/' . $zoneID . '/settings/hotlink_protection', + [ 'value' => $value, ] ); @@ -172,4 +177,4 @@ class ZoneSettings implements API return false; } -} \ No newline at end of file +}