summaryrefslogtreecommitdiffstats
path: root/etc/inc/dyndns.class
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
committerPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
commit6c07db487164262f9191ad02805523bd153e0ba6 (patch)
tree0c266356179ac730233a16c0e3767a0c22514c4d /etc/inc/dyndns.class
parent67d9685607eef7c679fda929ad4855be1b2f9dec (diff)
downloadpfsense-6c07db487164262f9191ad02805523bd153e0ba6.zip
pfsense-6c07db487164262f9191ad02805523bd153e0ba6.tar.gz
Code spacing
and other random stuff I noticed. I think this finishes messing with code style. The codebase should match the developer style guide closely enough that 99.9% of changes will not feel the need to also massage the formatting.
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r--etc/inc/dyndns.class16
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index ff708fd..29b5689 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -595,10 +595,10 @@
/* Setting Variables */
$hostname = "{$this->_dnsHost}.";
$ZoneID = $this->_dnsZoneID;
- $AccessKeyId=$this->_dnsUser;
- $SecretAccessKey=$this->_dnsPass;
- $NewIP=$this->_dnsIP;
- $NewTTL=$this->_dnsTTL;
+ $AccessKeyId = $this->_dnsUser;
+ $SecretAccessKey = $this->_dnsPass;
+ $NewIP = $this->_dnsIP;
+ $NewTTL = $this->_dnsTTL;
/* Include Route 53 Library Class */
require_once('/etc/inc/r53.class');
@@ -623,10 +623,10 @@
/* Get IP for your hostname in Route 53 */
if (false !== ($a_result = SearchRecords($records['ResourceRecordSets'], "$hostname"))) {
- $OldTTL=$a_result[0][TTL];
- $OldIP=$a_result[0][ResourceRecords][0];
+ $OldTTL = $a_result[0][TTL];
+ $OldIP = $a_result[0][ResourceRecords][0];
} else {
- $OldIP="";
+ $OldIP = "";
}
/* Check if we need to update DNS Record */
@@ -1231,7 +1231,7 @@
$lines = count($data)-1;
// loop over the lines
- for ($pos=0; ($successful_update || $pos == 0) && $pos < $lines; $pos++) {
+ for ($pos = 0; ($successful_update || $pos == 0) && $pos < $lines; $pos++) {
$resp = $data[$pos];
if (preg_match('/UAUTH/i', $resp)) {
$status = "DynDNS: The username specified is not authorized to update this hostname and domain.";
OpenPOWER on IntegriCloud