Lame code sniff
authorAlexander Ebert <ebert@woltlab.com>
Sun, 15 Dec 2013 15:37:53 +0000 (16:37 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 15 Dec 2013 15:37:53 +0000 (16:37 +0100)
wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php

index f7660dfa52932c5a0c7adcc78ee76b0237739d5b..77b1cc3e3b3e0e761d7eb01f54692be28a9589e5 100644 (file)
@@ -106,7 +106,8 @@ abstract class AbstractExporter implements IExporter {
        public function init() {
                $host = $this->databaseHost;
                $port = 0;
-               if (preg_match('^~([0-9.]+):([0-9]{1,5})~$', $host, $matches)) { // simple check, does not care for valid ip addresses
+               if (preg_match('^~([0-9.]+):([0-9]{1,5})~$', $host, $matches)) {
+                       // simple check, does not care for valid ip addresses
                        $host = $matches[1];
                        $port = $matches[2];
                }