Completed
Pull Request — master (#82)
by
unknown
02:05
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/AbstractFrame.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,6 @@
 block discarded – undo
43 43
     /**
44 44
      * Construct (with import if specified) frame
45 45
      *
46
-     * @param DOMDocument $import
47
-     * @param ObjectSpec $objectSpec
48 46
      */
49 47
     public function __construct()
50 48
     {
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -56,21 +56,21 @@  discard block
 block discarded – undo
56 56
         $objectSpec = null;
57 57
 
58 58
         $num = func_num_args();
59
-        if($num>2){
59
+        if ($num > 2) {
60 60
             throw new Exception("Too many arguments");
61 61
         }
62 62
 
63 63
         $args = func_get_args();
64
-        foreach($args as $arg){
65
-            if($arg instanceof \DOMDocument){
64
+        foreach ($args as $arg) {
65
+            if ($arg instanceof \DOMDocument) {
66 66
                 $import = $arg;
67 67
             }
68
-            if($arg instanceof ObjectSpec){
68
+            if ($arg instanceof ObjectSpec) {
69 69
                 $objectSpec = $arg;
70 70
             }
71 71
         }
72 72
 
73
-        if(\is_null($objectSpec)){
73
+        if (\is_null($objectSpec)) {
74 74
             $objectSpec = new ObjectSpec();
75 75
         }
76 76
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             if (strpos($path_parts[$i], ':') === false) {
170 170
                 $node_ns = 'epp';
171 171
                 $node_name = $path_parts[$i];
172
-                $path_parts[$i] = $node_ns . ':' . $node_name;
172
+                $path_parts[$i] = $node_ns.':'.$node_name;
173 173
             } else {
174 174
                 list($node_ns, $node_name) = explode(':', $path_parts[$i], 2);
175 175
             }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                 // get next key
181 181
                 $next_key = -1;
182 182
                 foreach (array_keys($this->nodes) as $each) {
183
-                    if (preg_match('/' . preg_quote($node_ns . ':' . $node_name, '/') . '\[(\d+)\]$/', $each, $matches)) {
183
+                    if (preg_match('/'.preg_quote($node_ns.':'.$node_name, '/').'\[(\d+)\]$/', $each, $matches)) {
184 184
                         if ($matches[1] > $next_key) {
185 185
                             $next_key = (int) $matches[1];
186 186
                         }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             if ($node_ns === 'epp') {
217 217
                 $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_name);
218 218
             } else {
219
-                $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns . ':' . $node_name);
219
+                $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns.':'.$node_name);
220 220
             }
221 221
 
222 222
             // set attribute
@@ -255,15 +255,15 @@  discard block
 block discarded – undo
255 255
         }
256 256
 
257 257
         if (!empty($this->mapping) && !empty($this->command)) {
258
-            array_unshift($path_parts, $this->mapping . ':' . $this->command);
258
+            array_unshift($path_parts, $this->mapping.':'.$this->command);
259 259
         }
260 260
 
261 261
         if (!empty($this->command) && !$this->ignore_command) {
262
-            array_unshift($path_parts, 'epp:' . $this->command);
262
+            array_unshift($path_parts, 'epp:'.$this->command);
263 263
         }
264 264
 
265 265
         if (!empty($this->format)) {
266
-            array_unshift($path_parts, 'epp:' . $this->format);
266
+            array_unshift($path_parts, 'epp:'.$this->format);
267 267
         }
268 268
 
269 269
         array_unshift($path_parts, 'epp:epp');
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/Frame/ResponseFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
         $xpath = new DOMXPath($xml);
37 37
 
38
-        if(is_null($objectSpec)){
38
+        if (is_null($objectSpec)) {
39 39
             $objectSpec = new ObjectSpec();
40 40
         }
41 41
 
Please login to merge, or discard this patch.
src/AfriCC/EPP/AbstractClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             $this->debug = false;
88 88
         }
89 89
 
90
-        if(is_null($objectSpec)){
90
+        if (is_null($objectSpec)) {
91 91
             $objectSpec = new ObjectSpec();
92 92
         }
93 93
 
Please login to merge, or discard this patch.