Skip to content

Commit 3601245

Browse files
committed
Update ReflectorFactory.php
1 parent cebf7ba commit 3601245

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/ReflectorFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ public static function create(string $cacheDir): QueryReflector
9494
$options[PDO::MYSQL_ATTR_SSL_CA] = $ssl;
9595
$options[PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = false;
9696
}
97-
$port = $port != null ? ';port='.$port : '';
98-
$pdo = new PDO(sprintf('mysql:dbname=%s;host=%s', $dbname, $host). $port, $user, $password, $options);
97+
$port = $port !== null ? ';port=' . $port : '';
98+
$pdo = new PDO(sprintf('mysql:dbname=%s;host=%s', $dbname, $host) . $port, $user, $password, $options);
9999
$reflector = new PdoMysqlQueryReflector($pdo);
100100
$schemaHasher = new SchemaHasherMysql($pdo);
101101
} elseif ('pdo-pgsql' === $reflector) {
102-
$port = $port != null ? ';port='.$port : '';
103-
$pdo = new PDO(sprintf('pgsql:dbname=%s;host=%s', $dbname, $host). $port, $user, $password);
102+
$port = $port !== null ? ';port=' . $port : '';
103+
$pdo = new PDO(sprintf('pgsql:dbname=%s;host=%s', $dbname, $host) . $port, $user, $password);
104104
$reflector = new PdoPgSqlQueryReflector($pdo);
105105
} else {
106106
throw new \RuntimeException('Unknown reflector: ' . $reflector);

0 commit comments

Comments
 (0)