Completed
Push — master ( 7db7a3...0359ff )
by Greg
05:08
created
classes/DomainMOD/Conversion.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 
123 123
             $log_message = 'Unable to retrieve Yahoo! Finance currency conversion';
124 124
             $log_extra = array('From Currency' => $from_currency, 'To Currency' => $to_currency,
125
-                               'Conversion Rate Result' => $conversion_rate);
125
+                                'Conversion Rate Result' => $conversion_rate);
126 126
             $this->log->error($log_message, $log_extra);
127 127
             return $log_message;
128 128
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -139,6 +139,9 @@
 block discarded – undo
139 139
         }
140 140
     }
141 141
 
142
+    /**
143
+     * @param string $is_existing
144
+     */
142 145
     public function updateConversionRate($conversion_rate, $is_existing, $currency_id, $user_id)
143 146
     {
144 147
         $pdo = $this->system->db();
Please login to merge, or discard this patch.
classes/DomainMOD/Domain.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -110,12 +110,18 @@
 block discarded – undo
110 110
         }
111 111
     }
112 112
 
113
+    /**
114
+     * @param string $expiry_date
115
+     */
113 116
     public function getNewExpiry($expiry_date, $renewal_years)
114 117
     {
115 118
         $expiry_pieces = explode("-", $expiry_date);
116 119
         return $expiry_pieces[0] + $renewal_years . "-" . $expiry_pieces[1] . "-" . $expiry_pieces[2];
117 120
     }
118 121
 
122
+    /**
123
+     * @param string $new_expiry
124
+     */
119 125
     public function writeNewExpiry($domain, $new_expiry, $notes)
120 126
     {
121 127
         $pdo = $this->system->db();
Please login to merge, or discard this patch.
classes/DomainMOD/DwBuild.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@  discard block
 block discarded – undo
99 99
         $this->system->db()->query("DROP TABLE IF EXISTS dw_dns_records");
100 100
     }
101 101
 
102
+    /**
103
+     * @param string $build_start_time_o
104
+     */
102 105
     public function buildFinish($build_start_time_o)
103 106
     {
104 107
         $pdo = $this->system->db();
@@ -141,6 +144,9 @@  discard block
 block discarded – undo
141 144
         return $empty_assets;
142 145
     }
143 146
 
147
+    /**
148
+     * @param string $empty_assets
149
+     */
144 150
     public function updateEmpty($empty_assets)
145 151
     {
146 152
         if ($empty_assets == '1') {
@@ -163,6 +169,9 @@  discard block
 block discarded – undo
163 169
         }
164 170
     }
165 171
 
172
+    /**
173
+     * @param string $api_call
174
+     */
166 175
     public function apiCall($api_call, $host, $protocol, $port, $username, $api_token, $hash)
167 176
     {
168 177
         return $this->apiGet($api_call, $host, $protocol, $port, $username, $api_token, $hash);
Please login to merge, or discard this patch.
classes/DomainMOD/DwClean.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -70,6 +70,10 @@
 block discarded – undo
70 70
             WHERE r.dns_zone_id = z.id");
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $field
75
+     * @param integer $wrap_at
76
+     */
73 77
     public function wrapLine($field, $wrap_at)
74 78
     {
75 79
         $pdo = $this->system->db();
Please login to merge, or discard this patch.
classes/DomainMOD/DwServers.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@
 block discarded – undo
81 81
         }
82 82
     }
83 83
 
84
+    /**
85
+     * @param string $build_start_time
86
+     */
84 87
     public function serverFinish($server_id, $build_start_time)
85 88
     {
86 89
         $pdo = $this->system->db();
Please login to merge, or discard this patch.
classes/DomainMOD/DwStats.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@  discard block
 block discarded – undo
44 44
         }
45 45
     }
46 46
 
47
+    /**
48
+     * @param string $table
49
+     */
47 50
     public function getTotals($server_id, $table)
48 51
     {
49 52
         $pdo = $this->system->db();
@@ -58,6 +61,11 @@  discard block
 block discarded – undo
58 61
         return $stmt->fetchColumn();
59 62
     }
60 63
 
64
+    /**
65
+     * @param string $total_accounts
66
+     * @param string $total_dns_zones
67
+     * @param string $total_dns_records
68
+     */
61 69
     public function updateServerTotals($server_id, $total_accounts, $total_dns_zones, $total_dns_records)
62 70
     {
63 71
         $pdo = $this->system->db();
@@ -119,6 +127,12 @@  discard block
 block discarded – undo
119 127
         return $stmt->fetchColumn();
120 128
     }
121 129
 
130
+    /**
131
+     * @param string $total_dw_servers
132
+     * @param string $total_dw_accounts
133
+     * @param string $total_dw_dns_zones
134
+     * @param string $total_dw_records
135
+     */
122 136
     public function updateTable($total_dw_servers, $total_dw_accounts, $total_dw_dns_zones, $total_dw_records)
123 137
     {
124 138
         $pdo = $this->system->db();
Please login to merge, or discard this patch.
classes/DomainMOD/Scheduler.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@
 block discarded – undo
76 76
         $stmt->execute();
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $end_time
81
+     */
79 82
     public function getTimeDifference($start_time, $end_time)
80 83
     {
81 84
         $difference = (strtotime($end_time) - strtotime($start_time));
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -127,10 +127,10 @@
 block discarded – undo
127 127
     public function hourSelect($hour)
128 128
     {
129 129
         $hours = array('00' => '00:00', '01' => '01:00', '02' => '02:00', '03' => '03:00', '04' => '04:00',
130
-                       '05' => '05:00', '06' => '06:00', '07' => '07:00', '08' => '08:00', '09' => '09:00',
131
-                       '10' => '10:00', '11' => '11:00', '12' => '12:00', '13' => '13:00', '14' => '14:00',
132
-                       '15' => '15:00', '16' => '16:00', '17' => '17:00', '18' => '18:00', '19' => '19:00',
133
-                       '20' => '20:00', '21' => '21:00', '22' => '22:00', '23' => '23:00');
130
+                        '05' => '05:00', '06' => '06:00', '07' => '07:00', '08' => '08:00', '09' => '09:00',
131
+                        '10' => '10:00', '11' => '11:00', '12' => '12:00', '13' => '13:00', '14' => '14:00',
132
+                        '15' => '15:00', '16' => '16:00', '17' => '17:00', '18' => '18:00', '19' => '19:00',
133
+                        '20' => '20:00', '21' => '21:00', '22' => '22:00', '23' => '23:00');
134 134
         ob_start();
135 135
         foreach ($hours as $key => $value) { ?>
136 136
             <option value="<?php echo $key; ?>"<?php if ($hour == $key) echo ' selected'; ?>><?php echo $value; ?></option><?php
Please login to merge, or discard this patch.
classes/DomainMOD/System.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@  discard block
 block discarded – undo
61 61
         return array($installation_mode, $result_message);
62 62
     }
63 63
 
64
+    /**
65
+     * @return string
66
+     */
64 67
     public function checkForSettingsTable()
65 68
     {
66 69
         $pdo = $this->db();
@@ -144,6 +147,9 @@  discard block
 block discarded – undo
144 147
         $_SESSION['s_has_ssl_cert'] = $this->checkForRows($sql);
145 148
     }
146 149
 
150
+    /**
151
+     * @param string $sql
152
+     */
147 153
     public function checkForRows($sql)
148 154
     {
149 155
         $pdo = $this->db();
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -196,9 +196,13 @@  discard block
 block discarded – undo
196 196
     {
197 197
         $pdo = $this->db();
198 198
         $result = $this->checkForSettingsTable();
199
-        if (!$result) return '0';
199
+        if (!$result) {
200
+            return '0';
201
+        }
200 202
         $stmt = $pdo->query("SHOW COLUMNS FROM `settings` LIKE 'debug_mode'");
201
-        if ($stmt === false) return '0';
203
+        if ($stmt === false) {
204
+            return '0';
205
+        }
202 206
         $result = $stmt->fetchColumn();
203 207
         if (!$result) {
204 208
             return '0';
@@ -266,7 +270,9 @@  discard block
 block discarded – undo
266 270
             $qrun->store_result();
267 271
             call_user_func_array(array($qrun, 'bind_result'), $binding);
268 272
 
269
-        } else $error->outputSqlError($dbcon, '1', 'ERROR');
273
+        } else {
274
+            $error->outputSqlError($dbcon, '1', 'ERROR');
275
+        }
270 276
         return $qrun;
271 277
     }
272 278
 
Please login to merge, or discard this patch.
classes/DomainMOD/Maintenance.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -399,7 +399,7 @@
 block discarded – undo
399 399
 
400 400
     public function zeroInvalidIpIds()
401 401
     { // This zeroes out API IP address IDs in the registrar_account table that are no longer valid. For example, if an
402
-      // IP has been deleted.
402
+        // IP has been deleted.
403 403
         $pdo = $this->system->db();
404 404
         $stmt = $pdo->query("
405 405
             SELECT id
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -398,7 +398,8 @@
 block discarded – undo
398 398
     }
399 399
 
400 400
     public function zeroInvalidIpIds()
401
-    { // This zeroes out API IP address IDs in the registrar_account table that are no longer valid. For example, if an
401
+    {
402
+// This zeroes out API IP address IDs in the registrar_account table that are no longer valid. For example, if an
402 403
       // IP has been deleted.
403 404
         $pdo = $this->system->db();
404 405
         $stmt = $pdo->query("
Please login to merge, or discard this patch.