Completed
Pull Request — master (#82)
by
unknown
01:36
created
src/AfriCC/EPP/Frame/Command/Update/Contact.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
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])) {
Please login to merge, or discard this patch.
src/AfriCC/EPP/AddrTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/AfriCC/EPP/DOM/DOMTools.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/AfriCC/EPP/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/AfriCC/EPP/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
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
         );
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $buffer = (string) $frame;
185 185
         $header = pack('N', mb_strlen($buffer, 'ASCII') + 4);
186 186
 
187
-        return $this->send($header . $buffer);
187
+        return $this->send($header.$buffer);
188 188
     }
189 189
 
190 190
     protected function log($message, $color = '0;32')
Please login to merge, or discard this patch.
src/AfriCC/EPP/AbstractFrame.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     private function import(DOMDocument $import = null)
87 87
     {
88
-        if(is_null($import)){
88
+        if (is_null($import)) {
89 89
             return;
90 90
         }
91 91
         $node = $this->importNode($import->documentElement, true);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.