Completed
Pull Request — develop (#1702)
by Christian
01:06 queued 43s
created
src/N98/Util/Console/Helper/DatabaseHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                 list($host, $port) = explode(':', $this->dbSettings['host'], 2);
160 160
                 $this->dbSettings['host'] = $host;
161 161
                 if (is_numeric($port)) {
162
-                    $this->dbSettings['port'] = (int)$port;
162
+                    $this->dbSettings['port'] = (int) $port;
163 163
                 }
164 164
             }
165 165
         }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 list($host, $port) = explode(':', $this->dbSettings['host'], 2);
207 207
                 $this->dbSettings['host'] = $host;
208 208
                 if (is_numeric($port)) {
209
-                    $this->dbSettings['port'] = (int)$port;
209
+                    $this->dbSettings['port'] = (int) $port;
210 210
                 }
211 211
             }
212 212
         }
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
             . ' '
452 452
             . '-u' . escapeshellarg($this->dbSettings['username'])
453 453
             . ' '
454
-            . (isset($this->dbSettings['port']) && is_numeric($this->dbSettings['port']) && (int)$this->dbSettings['port'] > 0
454
+            . (isset($this->dbSettings['port']) && is_numeric($this->dbSettings['port']) && (int) $this->dbSettings['port'] > 0
455 455
                 ? '-P' . escapeshellarg($this->dbSettings['port']) . ' ' : '')
456 456
             . (strlen($this->dbSettings['password'])
457 457
                 ? '--password=' . escapeshellarg($this->dbSettings['password']) . ' ' : '')
Please login to merge, or discard this patch.