Completed
Pull Request — master (#82)
by
unknown
01:36
created
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.