Skip to content
This repository was archived by the owner on Nov 2, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/CloudFlare/Zone/SSL.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*
Expand Down
11 changes: 6 additions & 5 deletions src/CloudFlare/Zone/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down
1 change: 1 addition & 0 deletions tests/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function testSetCurlOption()
public function testHttpNoCredentials()
{
$http = new Api();

try {
$http->get('test');
$this->fail('Expected exception not thrown');
Expand Down