@@ -104,7 +104,7 @@ |
||
| 104 | 104 | if (strpos($method_name, 'Add') === 0) { |
| 105 | 105 | $method_name = lcfirst($method_name); |
| 106 | 106 | } else { |
| 107 | - $method_name = 'set' . $method_name; |
|
| 107 | + $method_name = 'set'.$method_name; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | if (is_callable([$this, $method_name])) { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $base_path = sprintf($base_path, $this->host_attr_index); |
| 49 | 49 | |
| 50 | - $this->set($base_path . '/domain:hostName', $host); |
|
| 50 | + $this->set($base_path.'/domain:hostName', $host); |
|
| 51 | 51 | |
| 52 | 52 | if (!empty($ips) && is_array($ips)) { |
| 53 | 53 | foreach ($ips as $ip) { |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | if ($ip_type === false) { |
| 56 | 56 | throw new Exception(sprintf('%s is not a valid IP address', $ip)); |
| 57 | 57 | } elseif ($ip_type === Validator::TYPE_IPV4) { |
| 58 | - $this->set($base_path . '/domain:hostAddr[@ip=\'v4\']', $ip); |
|
| 58 | + $this->set($base_path.'/domain:hostAddr[@ip=\'v4\']', $ip); |
|
| 59 | 59 | } elseif ($ip_type === Validator::TYPE_IPV6) { |
| 60 | - $this->set($base_path . '/domain:hostAddr[@ip=\'v6\']', $ip); |
|
| 60 | + $this->set($base_path.'/domain:hostAddr[@ip=\'v6\']', $ip); |
|
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | // if node only has a type attribute lets distinguish them directly |
| 110 | 110 | // and then ignore the attribtue |
| 111 | 111 | if ($each->hasAttribute('type')) { |
| 112 | - $key = $each->localName . '@' . $each->getAttribute('type'); |
|
| 112 | + $key = $each->localName.'@'.$each->getAttribute('type'); |
|
| 113 | 113 | $ignore_attributes = true; |
| 114 | 114 | } else { |
| 115 | 115 | $key = $each->localName; |
@@ -152,12 +152,12 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | if ($insert_key) { |
| 155 | - if (isset($tmp['@' . $key][$attr->nodeName]) && !is_array($tmp['@' . $key][$attr->nodeName])) { |
|
| 156 | - $tmp['@' . $key][$attr->nodeName] = [$tmp['@' . $key][$attr->nodeName]]; |
|
| 155 | + if (isset($tmp['@'.$key][$attr->nodeName]) && !is_array($tmp['@'.$key][$attr->nodeName])) { |
|
| 156 | + $tmp['@'.$key][$attr->nodeName] = [$tmp['@'.$key][$attr->nodeName]]; |
|
| 157 | 157 | } |
| 158 | - $tmp['@' . $key][$attr->nodeName][$insert_key] = $attr->nodeValue; |
|
| 158 | + $tmp['@'.$key][$attr->nodeName][$insert_key] = $attr->nodeValue; |
|
| 159 | 159 | } else { |
| 160 | - $tmp['@' . $key][$attr->nodeName] = $attr->nodeValue; |
|
| 160 | + $tmp['@'.$key][$attr->nodeName] = $attr->nodeValue; |
|
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | } |
@@ -328,7 +328,7 @@ |
||
| 328 | 328 | return false; |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | - $ascii_email = substr($email, 0, $pos) . '@' . idn_to_ascii(substr($email, $pos + 1), IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46); |
|
| 331 | + $ascii_email = substr($email, 0, $pos).'@'.idn_to_ascii(substr($email, $pos + 1), IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46); |
|
| 332 | 332 | |
| 333 | 333 | return (bool) filter_var($ascii_email, FILTER_VALIDATE_EMAIL); |
| 334 | 334 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | // filter out empty user provided values |
| 83 | 83 | $options_array = array_filter( |
| 84 | 84 | $options_array, |
| 85 | - function ($var) { |
|
| 85 | + function($var) { |
|
| 86 | 86 | return !is_null($var); |
| 87 | 87 | } |
| 88 | 88 | ); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | $buffer = (string) $frame; |
| 199 | 199 | $header = pack('N', mb_strlen($buffer, 'ASCII') + 4); |
| 200 | 200 | |
| 201 | - return $this->send($header . $buffer); |
|
| 201 | + return $this->send($header.$buffer); |
|
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | /** |
@@ -8,9 +8,9 @@ |
||
| 8 | 8 | class Domain extends DomainCreate implements ExtensionInterface |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | - protected $extension= 'extdom'; |
|
| 11 | + protected $extension = 'extdom'; |
|
| 12 | 12 | |
| 13 | - protected $extension_xmlns='http://www.dns.pl/nask-epp-schema/extdom-2.0'; |
|
| 13 | + protected $extension_xmlns = 'http://www.dns.pl/nask-epp-schema/extdom-2.0'; |
|
| 14 | 14 | |
| 15 | 15 | public function getExtensionNamespace() |
| 16 | 16 | { |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * |
| 21 | 21 | * @param bool $individual True if person, false if company |
| 22 | 22 | */ |
| 23 | - public function setIndividual($individual=false){ |
|
| 23 | + public function setIndividual($individual = false) { |
|
| 24 | 24 | $this->set('//epp:epp/epp:command/epp:extension/extcon:create/extcon:individual', $individual ? 1 : 0); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @param bool $consent |
| 38 | 38 | */ |
| 39 | - public function setConsentForPublishing($consent=false){ |
|
| 40 | - $this->set('//epp:epp/epp:command/epp:extension/extcon:create/extcon:consentForPublishing', $consent ? 1 : 0 ); |
|
| 39 | + public function setConsentForPublishing($consent = false) { |
|
| 40 | + $this->set('//epp:epp/epp:command/epp:extension/extcon:create/extcon:consentForPublishing', $consent ? 1 : 0); |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * @param string $pw authinfo |
| 22 | 22 | * @param string $roid If specified, authinfo is of domain whose registrant is this contact |
| 23 | 23 | */ |
| 24 | - public function setAuthInfo($pw, $roid = null){ |
|
| 24 | + public function setAuthInfo($pw, $roid = null) { |
|
| 25 | 25 | $node = $this->set('//epp:epp/epp:command/epp:extension/extcon:info/extcon:authInfo/extcon:pw', $pw); |
| 26 | 26 | |
| 27 | 27 | if ($roid !== null) { |
@@ -8,9 +8,9 @@ discard block |
||
| 8 | 8 | class Domain extends DomainUpdate implements ExtensionInterface |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | - protected $extension= 'extdom'; |
|
| 11 | + protected $extension = 'extdom'; |
|
| 12 | 12 | |
| 13 | - protected $extension_xmlns='http://www.dns.pl/nask-epp-schema/extdom-2.0'; |
|
| 13 | + protected $extension_xmlns = 'http://www.dns.pl/nask-epp-schema/extdom-2.0'; |
|
| 14 | 14 | |
| 15 | 15 | public function getExtensionNamespace() |
| 16 | 16 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | return $this->addNs($host, true); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function addHostObj($host, $remove=false) |
|
| 40 | + public function addHostObj($host, $remove = false) |
|
| 41 | 41 | { |
| 42 | 42 | return $this->addNs($host, $remove); |
| 43 | 43 | } |