Completed
Pull Request — master (#67)
by
unknown
01:33
created
src/AfriCC/EPP/Extension/NASK/Transfer/Domain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      *
21 21
      * This element can only be applied on request frame with no period specified
22 22
      */
23
-    public function resendConfirmationRequest(){
23
+    public function resendConfirmationRequest() {
24 24
         $this->set('//epp:epp/epp:command/epp:extension/extdom:transfer/extdom:resendConfirmationRequest');
25 25
     }
26 26
 
Please login to merge, or discard this patch.
src/AfriCC/EPP/Extension/NASK/Transfer/Future.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 class Future extends TransferCommand implements ExtensionInterface
11 11
 {
12 12
 
13
-    protected $extension= 'extfut';
13
+    protected $extension = 'extfut';
14 14
 
15
-    protected $extension_xmlns='http://www.dns.pl/nask-epp-schema/extfut-2.0';
15
+    protected $extension_xmlns = 'http://www.dns.pl/nask-epp-schema/extfut-2.0';
16 16
 
17 17
     public function getExtensionNamespace()
18 18
     {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         }
51 51
     }
52 52
 
53
-    public function resendConfirmationRequest(){
53
+    public function resendConfirmationRequest() {
54 54
         $this->set('//epp:epp/epp:command/epp:extension/extfut:transfer/extfut:resendConfirmationRequest');
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/AfriCC/EPP/Extension/NASK/Report/Domain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     {
77 77
         $node = $this->set('extreport:domain/extreport:statuses');
78 78
         
79
-        $node->setAttribute('statusesIn', ($statusesIn) ? 'true':'false');
79
+        $node->setAttribute('statusesIn', ($statusesIn) ? 'true' : 'false');
80 80
     }
81 81
 }
82 82
 
Please login to merge, or discard this patch.
src/AfriCC/EPP/Extension/NASK/Report/Prepaid.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     private function isAccountType($accountType)
16 16
     {
17
-        switch (strtoupper($accountType)){
17
+        switch (strtoupper($accountType)) {
18 18
             case 'DOMAIN':
19 19
             case 'ENUM':
20 20
                 return true;
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function setPaymentsAccountType($accountType)
43 43
     {
44
-        if(!$this->isAccountType($accountType)){
44
+        if (!$this->isAccountType($accountType)) {
45 45
             throw new \Exception(sprintf('"%s" is not valid Account Type!', $accountType));
46 46
         }
47 47
         $this->set('extreport:prepaid/extreport:payment/extreport:accountType', $accountType);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function setFundsAccountType($accountType)
67 67
     {
68
-        if(!$this->isAccountType($accountType)){
68
+        if (!$this->isAccountType($accountType)) {
69 69
             throw new \Exception(sprintf('"%s" is not valid Account Type!', $accountType));
70 70
         }
71 71
         $this->set('extreport:prepaid/extreport:paymentFunds/extreport:accountType', $accountType);
Please login to merge, or discard this patch.
src/AfriCC/EPP/Extension/NASK/Renew/Domain.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 
7 7
 class Domain extends DomainRenew implements ExtensionInterface
8 8
 {
9
-    protected $extension= 'extdom';
9
+    protected $extension = 'extdom';
10 10
 
11
-    protected $extension_xmlns='http://www.dns.pl/nask-epp-schema/extdom-2.0';
11
+    protected $extension_xmlns = 'http://www.dns.pl/nask-epp-schema/extdom-2.0';
12 12
 
13 13
     public function getExtensionNamespace()
14 14
     {
Please login to merge, or discard this patch.
src/AfriCC/EPP/Extension/NASK/ObjectSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
     
44 44
     private static $backup;
45 45
     
46
-    public static function overwriteParent(){
46
+    public static function overwriteParent() {
47 47
         self::$backup = MainObjectSpec::$specs;
48 48
         MainObjectSpec::$specs = self::$specs;
49 49
     }
50 50
     
51 51
     public static function restoreParent() {
52
-        if(!empty(self::$backup)){
52
+        if (!empty(self::$backup)) {
53 53
             MainObjectSpec::$specs = self::$backup; 
54 54
         }
55 55
     }
Please login to merge, or discard this patch.
src/AfriCC/EPP/AbstractFrame.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             if (strpos($path_parts[$i], ':') === false) {
142 142
                 $node_ns = 'epp';
143 143
                 $node_name = $path_parts[$i];
144
-                $path_parts[$i] = $node_ns . ':' . $node_name;
144
+                $path_parts[$i] = $node_ns.':'.$node_name;
145 145
             } else {
146 146
                 list($node_ns, $node_name) = explode(':', $path_parts[$i], 2);
147 147
             }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                 // get next key
153 153
                 $next_key = -1;
154 154
                 foreach (array_keys($this->nodes) as $each) {
155
-                    if (preg_match('/' . preg_quote($node_ns . ':' . $node_name, '/') . '\[(\d+)\]$/', $each, $matches)) {
155
+                    if (preg_match('/'.preg_quote($node_ns.':'.$node_name, '/').'\[(\d+)\]$/', $each, $matches)) {
156 156
                         if ($matches[1] > $next_key) {
157 157
                             $next_key = (int) $matches[1];
158 158
                         }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             if ($node_ns === 'epp') {
189 189
                 $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_name);
190 190
             } else {
191
-                $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns . ':' . $node_name);
191
+                $this->nodes[$node_path] = $this->createElementNS($node_xmlns, $node_ns.':'.$node_name);
192 192
             }
193 193
 
194 194
             // set attribute
@@ -227,15 +227,15 @@  discard block
 block discarded – undo
227 227
         }
228 228
 
229 229
         if (!empty($this->mapping) && !empty($this->command)) {
230
-            array_unshift($path_parts, $this->mapping . ':' . $this->command);            
230
+            array_unshift($path_parts, $this->mapping.':'.$this->command);            
231 231
         }
232 232
         
233 233
         if (!empty($this->command) && !$this->ignore_command) {
234
-            array_unshift($path_parts, 'epp:' . $this->command);
234
+            array_unshift($path_parts, 'epp:'.$this->command);
235 235
         }
236 236
 
237 237
         if (!empty($this->format)) {
238
-            array_unshift($path_parts, 'epp:' . $this->format);
238
+            array_unshift($path_parts, 'epp:'.$this->format);
239 239
         }
240 240
 
241 241
         array_unshift($path_parts, 'epp:epp');
Please login to merge, or discard this patch.