diff --git a/src/CloudFlare/Zone/SSL.php b/src/CloudFlare/Zone/SSL.php index 5939d2f..904c57f 100644 --- a/src/CloudFlare/Zone/SSL.php +++ b/src/CloudFlare/Zone/SSL.php @@ -15,6 +15,21 @@ */ class SSL extends Api { + /** + * Get SSL Verification permission needed: #ssl:read + * + * @param string $zone_identifier API item identifier tag + * @param string $retry Immediately retry SSL Verification + */ + public function verification($zone_identifier, $retry = null) + { + $data = [ + 'retry' => $retry, + ]; + + return $this->get('zones/'.$zone_identifier.'/ssl/verification', $data); + } + /** * List SSL configurations (permission needed: #ssl:read) * diff --git a/src/CloudFlare/Zone/Settings.php b/src/CloudFlare/Zone/Settings.php index c9caf0d..a22bb18 100644 --- a/src/CloudFlare/Zone/Settings.php +++ b/src/CloudFlare/Zone/Settings.php @@ -74,7 +74,7 @@ public function always_online($zone_identifier) */ public function always_use_https($zone_identifier) { - return $this->get('zones/' . $zone_identifier . '/settings/always_use_https'); + return $this->get('zones/'.$zone_identifier.'/settings/always_use_https'); } /** @@ -458,10 +458,11 @@ public function change_always_on($zone_identifier, $value = null) */ public function change_always_use_https($zone_identifier, $value = null) { - $data = array( - 'value' => $value - ); - return $this->patch('zones/' . $zone_identifier . '/settings/always_use_https', $data); + $data = [ + 'value' => $value, + ]; + + return $this->patch('zones/'.$zone_identifier.'/settings/always_use_https', $data); } /** diff --git a/tests/ApiTest.php b/tests/ApiTest.php index e486a36..4a7ec2d 100644 --- a/tests/ApiTest.php +++ b/tests/ApiTest.php @@ -50,6 +50,7 @@ public function testSetCurlOption() public function testHttpNoCredentials() { $http = new Api(); + try { $http->get('test'); $this->fail('Expected exception not thrown');