Update class-wc-retailcrm-url-validator.php
Fix style
This commit is contained in:
parent
a5c17b8f7d
commit
74c1ec271b
1 changed files with 2 additions and 0 deletions
|
@ -174,8 +174,10 @@ if (!class_exists('WC_Retailcrm_Url_Validator')) :
|
|||
|
||||
if (!$content instanceof WP_ERROR && $content['response']['code'] === 200) {
|
||||
$domains = json_decode($content['body'], true);
|
||||
|
||||
return array_column($domains['domains'], 'domain');
|
||||
}
|
||||
|
||||
return self::CRM_ALL_DOMAINS;
|
||||
} catch (Exception $exception) {
|
||||
throw new ValidatorException($this->getFileError);
|
||||
|
|
Loading…
Add table
Reference in a new issue