@@ -150,7 +150,7 @@ |
||
| 150 | 150 | */ |
| 151 | 151 | public function removeSecDNSAll($all = true) |
| 152 | 152 | { |
| 153 | - $this->set('//epp:epp/epp:command/epp:extension/secDNS:update/secDNS:rem/secDNS:all', $all ? 'true': 'false'); |
|
| 153 | + $this->set('//epp:epp/epp:command/epp:extension/secDNS:update/secDNS:rem/secDNS:all', $all ? 'true' : 'false'); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | public function removeAdminContact($contact) |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | parent::__construct($config); |
| 32 | 32 | |
| 33 | 33 | if (!empty($config['chunk_size'])) { |
| 34 | - $this->chunk_size = (int)$config['chunk_size']; |
|
| 34 | + $this->chunk_size = (int) $config['chunk_size']; |
|
| 35 | 35 | } else { |
| 36 | 36 | $this->chunk_size = 1024; |
| 37 | 37 | } |
@@ -69,10 +69,10 @@ discard block |
||
| 69 | 69 | stream_context_set_option($context, 'ssl', 'passphrase', $this->passphrase); |
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | - if ($this->ca_cert !== null){ |
|
| 72 | + if ($this->ca_cert !== null) { |
|
| 73 | 73 | stream_context_set_option($context, 'ssl', 'cafile', $this->ca_cert); |
| 74 | 74 | } |
| 75 | - if ($this->pk_cert !== null){ |
|
| 75 | + if ($this->pk_cert !== null) { |
|
| 76 | 76 | stream_context_set_option($context, 'ssl', 'local_pk', $this->pk_cert); |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $buffer = (string) $frame; |
| 163 | 163 | $header = pack('N', mb_strlen($buffer, 'ASCII') + 4); |
| 164 | 164 | |
| 165 | - return $this->send($header . $buffer); |
|
| 165 | + return $this->send($header.$buffer); |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | /** |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | if (!empty($config['port'])) { |
| 40 | - $this->port = (int)$config['port']; |
|
| 40 | + $this->port = (int) $config['port']; |
|
| 41 | 41 | } else { |
| 42 | 42 | $this->port = false; |
| 43 | 43 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | $login = new LoginCommand(); |
| 123 | 123 | $login->setClientId($this->username); |
| 124 | 124 | $login->setPassword($this->password); |
| 125 | - if ($newPassword){ |
|
| 125 | + if ($newPassword) { |
|
| 126 | 126 | $login->setNewPassword($newPassword); |
| 127 | 127 | } |
| 128 | 128 | $login->setVersion('1.0'); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @param bool|string $newPassword String with new password to set upon login, false if no password |
| 41 | 41 | */ |
| 42 | - public function connect($newPassword=false) |
|
| 42 | + public function connect($newPassword = false) |
|
| 43 | 43 | { |
| 44 | 44 | $proto = \parse_url($this->host, PHP_URL_SCHEME); |
| 45 | 45 | if ($this->ssl || $proto == 'https') { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | public function send(FrameInterface $frame) |
| 125 | 125 | { |
| 126 | 126 | |
| 127 | - $content = (string)$frame; |
|
| 127 | + $content = (string) $frame; |
|
| 128 | 128 | curl_setopt($this->curl, CURLOPT_POSTFIELDS, $content); |
| 129 | 129 | |
| 130 | 130 | return curl_exec($this->curl); |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | protected function log($message) |
| 160 | 160 | { |
| 161 | - if($this->debug) { |
|
| 161 | + if ($this->debug) { |
|
| 162 | 162 | \error_log($message); |
| 163 | 163 | } |
| 164 | 164 | } |