mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-22 16:22:58 +02:00
[ticket/11981] Fix code sniffer complaints
PHPBB3-11981
This commit is contained in:
@@ -47,11 +47,11 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
||||
$this->server = ($this->persistency) ? 'p:' . (($sqlserver) ? $sqlserver : 'localhost') : $sqlserver;
|
||||
|
||||
$this->dbname = $database;
|
||||
$port = (!$port) ? NULL : $port;
|
||||
$port = (!$port) ? null : $port;
|
||||
|
||||
// If port is set and it is not numeric, most likely mysqli socket is set.
|
||||
// Try to map it to the $socket parameter.
|
||||
$socket = NULL;
|
||||
$socket = null;
|
||||
if ($port)
|
||||
{
|
||||
if (is_numeric($port))
|
||||
@@ -61,7 +61,7 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
||||
else
|
||||
{
|
||||
$socket = $port;
|
||||
$port = NULL;
|
||||
$port = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user