mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
style: nc connector
This commit is contained in:
@@ -29,8 +29,8 @@ class NamecheapConnector extends AbstractProvider
|
|||||||
throw new \Exception('Namecheap account requires at least one address to purchase a domain');
|
throw new \Exception('Namecheap account requires at least one address to purchase a domain');
|
||||||
}
|
}
|
||||||
|
|
||||||
$addressId = (string)$addresses->attributes()['AddressId'];
|
$addressId = (string) $addresses->attributes()['AddressId'];
|
||||||
$address = (array)$this->call('namecheap.users.address.getinfo', ['AddressId' => $addressId], $dryRun)->GetAddressInfoResult;
|
$address = (array) $this->call('namecheap.users.address.getinfo', ['AddressId' => $addressId], $dryRun)->GetAddressInfoResult;
|
||||||
|
|
||||||
if (empty($address['PostalCode'])) {
|
if (empty($address['PostalCode'])) {
|
||||||
$address['PostalCode'] = $address['Zip'];
|
$address['PostalCode'] = $address['Zip'];
|
||||||
@@ -54,7 +54,7 @@ class NamecheapConnector extends AbstractProvider
|
|||||||
private static function mergePrefixKeys(string $prefix, array|object $src, array &$dest)
|
private static function mergePrefixKeys(string $prefix, array|object $src, array &$dest)
|
||||||
{
|
{
|
||||||
foreach ($src as $key => $value) {
|
foreach ($src as $key => $value) {
|
||||||
$dest[$prefix . $key] = $value;
|
$dest[$prefix.$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user