@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | // filter out empty user provided values |
82 | 82 | $options_array = array_filter( |
83 | 83 | $options_array, |
84 | - function ($var) { |
|
84 | + function($var) { |
|
85 | 85 | return !is_null($var); |
86 | 86 | } |
87 | 87 | ); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | // Socket initialization may fail, before system call connect() |
116 | 116 | // so the $errno is 0 and $errstr isn't populated . |
117 | 117 | // see https://www.php.net/manual/en/function.stream-socket-client.php#refsect1-function.stream-socket-client-errors |
118 | - throw new Exception(sprintf('problem initializing socket: %s code: [%d]',$errstr, $errno), $errno); |
|
118 | + throw new Exception(sprintf('problem initializing socket: %s code: [%d]', $errstr, $errno), $errno); |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | // set stream time out |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $buffer = (string) $frame; |
194 | 194 | $header = pack('N', mb_strlen($buffer, 'ASCII') + 4); |
195 | 195 | |
196 | - return $this->send($header . $buffer); |
|
196 | + return $this->send($header.$buffer); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | protected function log($message, $color = '0;32') |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | if (strpos($path_parts[$i], ':') === false) { |
179 | 179 | $node_ns = 'epp'; |
180 | 180 | $node_name = $path_parts[$i]; |
181 | - $path_parts[$i] = $node_ns . ':' . $node_name; |
|
181 | + $path_parts[$i] = $node_ns.':'.$node_name; |
|
182 | 182 | } else { |
183 | 183 | list($node_ns, $node_name) = explode(':', $path_parts[$i], 2); |
184 | 184 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | // get next key |
190 | 190 | $next_key = -1; |
191 | 191 | foreach (array_keys($this->nodes) as $each) { |
192 | - if (preg_match('/' . preg_quote($node_ns . ':' . $node_name, '/') . '\[(\d+)\]$/', $each, $matches)) { |
|
192 | + if (preg_match('/'.preg_quote($node_ns.':'.$node_name, '/').'\[(\d+)\]$/', $each, $matches)) { |
|
193 | 193 | if ($matches[1] > $next_key) { |
194 | 194 | $next_key = (int) $matches[1]; |
195 | 195 | } |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | if ($node_ns === 'epp') { |
226 | 226 | $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_name); |
227 | 227 | } else { |
228 | - $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns . ':' . $node_name); |
|
228 | + $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns.':'.$node_name); |
|
229 | 229 | } |
230 | 230 | |
231 | 231 | // set attribute |
@@ -264,15 +264,15 @@ discard block |
||
264 | 264 | } |
265 | 265 | |
266 | 266 | if (!empty($this->mapping) && !empty($this->command)) { |
267 | - array_unshift($path_parts, $this->mapping . ':' . $this->command); |
|
267 | + array_unshift($path_parts, $this->mapping.':'.$this->command); |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | if (!empty($this->command) && !$this->ignore_command) { |
271 | - array_unshift($path_parts, 'epp:' . $this->command); |
|
271 | + array_unshift($path_parts, 'epp:'.$this->command); |
|
272 | 272 | } |
273 | 273 | |
274 | 274 | if (!empty($this->format)) { |
275 | - array_unshift($path_parts, 'epp:' . $this->format); |
|
275 | + array_unshift($path_parts, 'epp:'.$this->format); |
|
276 | 276 | } |
277 | 277 | |
278 | 278 | array_unshift($path_parts, 'epp:epp'); |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | |
345 | 345 | public function getExtensionNamespace() |
346 | 346 | { |
347 | - if(!isset($this->extension_xmlns) && ($this instanceof ExtensionInterface)){ |
|
347 | + if (!isset($this->extension_xmlns) && ($this instanceof ExtensionInterface)) { |
|
348 | 348 | throw new Exception(sprintf('Extension %s has no defined namespace', get_class($this))); |
349 | 349 | } |
350 | 350 | return $this->extension_xmlns; |