Passed
Pull Request — master (#12)
by Peter
02:34
created
includes/ddns.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
     protected $iniFilePath = "./conf/";
21 21
     protected $iniFileInwx = "inwx.ini";
22 22
     protected $iniFileDomain = "";
23
-    protected $inwx = [];       // apiurl, username, password
24
-    protected $domain = [];     // inwx => domain, subdomain; ddns => apikey
25
-    protected $IP4 = [];        // oldip, newip, id, set
26
-    protected $IP6 = [];        // oldip, newip, id, set
23
+    protected $inwx = []; // apiurl, username, password
24
+    protected $domain = []; // inwx => domain, subdomain; ddns => apikey
25
+    protected $IP4 = []; // oldip, newip, id, set
26
+    protected $IP6 = []; // oldip, newip, id, set
27 27
     protected $domrobot;
28 28
     protected $logger;
29 29
     protected $returnStatus = "";
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             $params['id'] = $this->IP4['id'];
183 183
             $params['content'] = $this->IP4['newip'] = $ip;
184 184
             $oldip = $this->IP4['oldip'];
185
-        } elseif ($type == 'ipv6' && $this->IP6['set'] &&  filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
185
+        } elseif ($type == 'ipv6' && $this->IP6['set'] && filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
186 186
             $params['id'] = $this->IP6['id'];
187 187
             $params['content'] = $this->IP6['newip'] = $ip;
188 188
             $oldip = $this->IP6['oldip'];
Please login to merge, or discard this patch.