Skip to content

Commit

Permalink
Run fix_formatting.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
uphlewis committed May 31, 2023
1 parent 09685d0 commit ba4ac7d
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 22 deletions.
1 change: 0 additions & 1 deletion src/CentralNic/Data/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class Configuration extends DataSet
{

public static function rules(): Rules
{
return new Rules([
Expand Down
6 changes: 2 additions & 4 deletions src/CentralNic/Helper/CentralNicApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public function register(
int $period,
array $contacts,
array $nameServers
): array
{
): array {
$domain = new eppDomain($domainName, $contacts[eppContactHandle::CONTACT_TYPE_REGISTRANT], [
new eppContactHandle($contacts[eppContactHandle::CONTACT_TYPE_ADMIN], eppContactHandle::CONTACT_TYPE_ADMIN),
new eppContactHandle($contacts[eppContactHandle::CONTACT_TYPE_TECH], eppContactHandle::CONTACT_TYPE_TECH),
Expand Down Expand Up @@ -324,8 +323,7 @@ public function updateEppCode(string $domainName): string
public function updateNameServers(
string $domainName,
array $nameservers
): string
{
): string {
// If new nameservers are given, get the old ones to remove them
$hosts = [];
foreach ($nameservers as $nameserver) {
Expand Down
9 changes: 1 addition & 8 deletions src/CentralNic/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function domainAvailabilityCheck(DacParams $params): DacResult
{
$sld = Utils::normalizeSld($params->sld);
$domains = array_map(
fn($tld) => $sld . "." . Utils::normalizeTld($tld),
fn ($tld) => $sld . "." . Utils::normalizeTld($tld),
$params->tlds
);

Expand Down Expand Up @@ -163,7 +163,6 @@ private function getRegisterParams(RegisterDomainParams $params): array
if (!$this->api()->getContactInfo($registrantID)) {
throw $this->errorResult("Invalid registrant ID provided!", $params);
}

} else {
if (!Arr::has($params, 'registrant.register')) {
throw $this->errorResult('Registrant contact data is required!');
Expand All @@ -180,7 +179,6 @@ private function getRegisterParams(RegisterDomainParams $params): array
if (!$this->api()->getContactInfo($adminID)) {
throw $this->errorResult("Invalid registrant ID provided!", $params);
}

} else {
if (!Arr::has($params, 'admin.register')) {
throw $this->errorResult('Admin contact data is required!');
Expand All @@ -207,7 +205,6 @@ private function getRegisterParams(RegisterDomainParams $params): array
);
}


if (Arr::has($params, 'billing.id')) {
$billingID = $params->billing->id;

Expand Down Expand Up @@ -251,7 +248,6 @@ public function transfer(TransferParams $params): DomainResult
$transferId = $this->api()->initiateTransfer($domainName, $eppCode, intval($params->renew_years));

throw $this->errorResult(sprintf('Transfer for %s domain successfully created!', $domainName), ['transfer_id' => $transferId]);

} catch (eppException $e) {
$this->_eppExceptionHandler($e, $params->toArray());
}
Expand Down Expand Up @@ -328,7 +324,6 @@ public function updateNameservers(UpdateNameserversParams $params): NameserversR
}

try {

$this->api()->updateNameServers($domainName, $nameServers);

$hosts = $this->api()->getHosts($domainName);
Expand Down Expand Up @@ -374,7 +369,6 @@ public function setLock(LockParams $params): DomainResult
$this->api()->setRegistrarLock($domainName, $addStatuses, $removeStatuses);

return $this->_getInfo($domainName, sprintf("Lock %s!", $lock ? 'enabled' : 'disabled'));

} catch (eppException $e) {
return $this->_eppExceptionHandler($e, $params->toArray());
}
Expand Down Expand Up @@ -447,7 +441,6 @@ protected function connect(): EppConnection
}

return $this->connection;

} catch (eppException $e) {
switch ($e->getCode()) {
case 2001:
Expand Down
1 change: 0 additions & 1 deletion src/CoccaEpp/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public function domainAvailabilityCheck(DacParams $params): DacResult
}
}


foreach ($checkDomains ?? [] as $chk) {
$canRegister = boolval($chk['@name']['avail']);
$canTransfer = false;
Expand Down
2 changes: 0 additions & 2 deletions src/Hexonet/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,6 @@ protected function updateContact(string $contactId, ContactParams $params): Cont
throw $this->errorResult('Invalid registrant ID provided!', compact('contactId', 'params'), [], $e);
}


// Set Parameters for the update query
$eppContactType = $params->type;

Expand Down Expand Up @@ -888,7 +887,6 @@ protected function _eppExceptionHandler(eppException $exception, $data = [], $de
throw $this->errorResult($errorMessage, $data, $debug, $exception);
}


/**
* Ensures the provider instance has a logged in EppConnection and returns it.
*
Expand Down
4 changes: 0 additions & 4 deletions src/NameSilo/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ public function poll(PollParams $params): PollResult
'domain' => $domain
], 'checkTransferStatus', 'GET');


if ($since !== null && $since->gt(Carbon::parse((string)$checkTransferStatus->reply->date))) {
continue;
}
Expand Down Expand Up @@ -213,7 +212,6 @@ public function register(RegisterDomainParams $params): DomainResult
'billing' => $this->_handleContact($params->billing, $domain),
];


for ($i = 1; $i <= self::MAX_CUSTOM_NAMESERVERS; $i++) {
if (Arr::has($params, 'nameservers.ns' . $i)) {
$data['ns' . $i] = Arr::get($params, 'nameservers.ns' . $i . '.host');
Expand Down Expand Up @@ -734,7 +732,6 @@ protected function display_xml_error($error, $xml)
return "$return\n---\n";
}


/**
* @param string $email
* @param string $telephone
Expand Down Expand Up @@ -979,7 +976,6 @@ protected function _allContactInfo(string $registrantId, string $billingId, stri
return PromiseUtils::all($promises)->wait();
}


protected function formatDate(?string $date): ?string
{
if (!isset($date)) {
Expand Down
1 change: 0 additions & 1 deletion src/Namecheap/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ private function checkRegisterParams(RegisterDomainParams $params): void
}
}


/**
* @param ArrayAccess $params
* @param string $prefix
Expand Down
1 change: 0 additions & 1 deletion src/OpenProvider/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,6 @@ public function poll(PollParams $params): PollResult

$offset += $limit;


if (!isset($response['data']['results']) || $response['data']['total'] == 0) {
break;
}
Expand Down

0 comments on commit ba4ac7d

Please sign in to comment.