@@ -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 | /** |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | if (strpos($path_parts[$i], ':') === false) { |
| 140 | 140 | $node_ns = 'epp'; |
| 141 | 141 | $node_name = $path_parts[$i]; |
| 142 | - $path_parts[$i] = $node_ns . ':' . $node_name; |
|
| 142 | + $path_parts[$i] = $node_ns.':'.$node_name; |
|
| 143 | 143 | } else { |
| 144 | 144 | list($node_ns, $node_name) = explode(':', $path_parts[$i], 2); |
| 145 | 145 | } |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | // get next key |
| 151 | 151 | $next_key = -1; |
| 152 | 152 | foreach (array_keys($this->nodes) as $each) { |
| 153 | - if (preg_match('/' . preg_quote($node_ns . ':' . $node_name, '/') . '\[(\d+)\]$/', $each, $matches)) { |
|
| 153 | + if (preg_match('/'.preg_quote($node_ns.':'.$node_name, '/').'\[(\d+)\]$/', $each, $matches)) { |
|
| 154 | 154 | if ($matches[1] > $next_key) { |
| 155 | 155 | $next_key = (int) $matches[1]; |
| 156 | 156 | } |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | if ($node_ns === 'epp') { |
| 187 | 187 | $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_name); |
| 188 | 188 | } else { |
| 189 | - $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns . ':' . $node_name); |
|
| 189 | + $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns.':'.$node_name); |
|
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | // set attribute |
@@ -225,15 +225,15 @@ discard block |
||
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | if (!empty($this->mapping) && !empty($this->command)) { |
| 228 | - array_unshift($path_parts, $this->mapping . ':' . $this->command); |
|
| 228 | + array_unshift($path_parts, $this->mapping.':'.$this->command); |
|
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | if (!empty($this->command) && !$this->ignore_command) { |
| 232 | - array_unshift($path_parts, 'epp:' . $this->command); |
|
| 232 | + array_unshift($path_parts, 'epp:'.$this->command); |
|
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | if (!empty($this->format)) { |
| 236 | - array_unshift($path_parts, 'epp:' . $this->format); |
|
| 236 | + array_unshift($path_parts, 'epp:'.$this->format); |
|
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | array_unshift($path_parts, 'epp:epp'); |