mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
Merge pull request #3696 from marc1706/ticket/13930-master
[ticket/13930] Check for correct spacing between keyword & parenthesis * marc1706/ticket/13930-master: [ticket/13930] Add missing space to mssql_extractor [ticket/13930] Add missing spaces to code [ticket/13930] Use OpeningParenthesisSniff in legacy ruleset [ticket/13930] Remove not needed return statements [ticket/13930] Add missing spaces to code [ticket/13930] Check for correct spacing between keyword & parenthesis
This commit is contained in:
2
phpBB/phpbb/cache/driver/memcache.php
vendored
2
phpBB/phpbb/cache/driver/memcache.php
vendored
@@ -50,7 +50,7 @@ class memcache extends \phpbb\cache\driver\memory
|
||||
parent::__construct();
|
||||
|
||||
$this->memcache = new \Memcache;
|
||||
foreach(explode(',', PHPBB_ACM_MEMCACHE) as $u)
|
||||
foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u)
|
||||
{
|
||||
$parts = explode('/', $u);
|
||||
$this->memcache->addServer(trim($parts[0]), trim($parts[1]));
|
||||
|
@@ -184,7 +184,7 @@ class mssql_extractor extends base_extractor
|
||||
{
|
||||
$this->write_data_mssql($table_name);
|
||||
}
|
||||
else if($this->db->get_sql_layer() === 'mssqlnative')
|
||||
else if ($this->db->get_sql_layer() === 'mssqlnative')
|
||||
{
|
||||
$this->write_data_mssqlnative($table_name);
|
||||
}
|
||||
|
@@ -535,7 +535,7 @@ class log implements \phpbb\log\log_interface
|
||||
'ORDER_BY' => $sort_by,
|
||||
);
|
||||
|
||||
if($log_time)
|
||||
if ($log_time)
|
||||
{
|
||||
$get_logs_sql_ary['WHERE'] = 'l.log_time >= ' . (int) $log_time . '
|
||||
AND ' . $get_logs_sql_ary['WHERE'];
|
||||
|
@@ -147,7 +147,7 @@ class fulltext_sphinx
|
||||
global $phpbb_container; // TODO inject into object
|
||||
$this->db_tools = $phpbb_container->get('dbal.tools');
|
||||
|
||||
if(!$this->config['fulltext_sphinx_id'])
|
||||
if (!$this->config['fulltext_sphinx_id'])
|
||||
{
|
||||
$this->config->set('fulltext_sphinx_id', unique_id());
|
||||
}
|
||||
|
Reference in New Issue
Block a user