diff --git a/src/whois.ie.php b/src/whois.ie.php index 936c81e..e5be69b 100644 --- a/src/whois.ie.php +++ b/src/whois.ie.php @@ -34,31 +34,32 @@ class ie_handler { function parse($data_str, $query) { - $translate = array( - 'nic-hdl' => 'handle', - 'person' => 'name', - 'renewal' => 'expires' - ); + $translate = [ + 'nic-hdl' => 'handle', + 'person' => 'name', + 'renewal' => 'expires', + 'registration' => 'created', + 'ren-status' => 'status' + ]; - $contacts = array( - 'admin-c' => 'admin', - 'tech-c' => 'tech', - ); + $contacts = [ + 'admin-c' => 'admin', + 'tech-c' => 'tech', + ]; $reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd'); if (isset($reg['domain']['descr'])) { - $reg['owner']['organization'] = $reg['domain']['descr'][0]; + $reg['owner']['organization'] = $reg['domain']['descr']; unset($reg['domain']['descr']); } $r['regrinfo'] = $reg; - $r['regyinfo'] = array( + $r['regyinfo'] = [ 'referrer' => 'http://www.domainregistry.ie', 'registrar' => 'IE Domain Registry' - ); + ]; return $r; } } -?>