fix lint
This commit is contained in:
@@ -61,14 +61,14 @@ class Accounts implements API
|
|||||||
|
|
||||||
public function lockDomain(string $accountID, string $domainName): \stdClass
|
public function lockDomain(string $accountID, string $domainName): \stdClass
|
||||||
{
|
{
|
||||||
$response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ["locked" => true]);
|
$response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ['locked' => true]);
|
||||||
$this->body = json_decode($response->getBody());
|
$this->body = json_decode($response->getBody());
|
||||||
return $this->body;
|
return $this->body;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function unlockDomain(string $accountID, string $domainName): \stdClass
|
public function unlockDomain(string $accountID, string $domainName): \stdClass
|
||||||
{
|
{
|
||||||
$response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ["locked" => false]);
|
$response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ['locked' => false]);
|
||||||
$this->body = json_decode($response->getBody());
|
$this->body = json_decode($response->getBody());
|
||||||
return $this->body;
|
return $this->body;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,12 +58,9 @@ class Zones implements API
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function pause(string $zoneID, bool $paused = true): bool
|
public function pause(string $zoneID): bool
|
||||||
{
|
{
|
||||||
$options = [
|
$user = $this->adapter->patch('zones/' . $zoneID, ['paused' => true]);
|
||||||
'paused' => $paused,
|
|
||||||
];
|
|
||||||
$user = $this->adapter->patch('zones/' . $zoneID, $options);
|
|
||||||
$this->body = json_decode($user->getBody());
|
$this->body = json_decode($user->getBody());
|
||||||
|
|
||||||
if (isset($this->body->result->id)) {
|
if (isset($this->body->result->id)) {
|
||||||
@@ -72,7 +69,19 @@ class Zones implements API
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function unpause(string $zoneID): bool
|
||||||
|
{
|
||||||
|
$user = $this->adapter->patch('zones/' . $zoneID, ['paused' => false]);
|
||||||
|
$this->body = json_decode($user->getBody());
|
||||||
|
|
||||||
|
if (isset($this->body->result->id)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public function getZoneById(
|
public function getZoneById(
|
||||||
string $zoneId
|
string $zoneId
|
||||||
): \stdClass {
|
): \stdClass {
|
||||||
|
|||||||
Reference in New Issue
Block a user