1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

[ticket/9687] Fix code style and tests

PHPBB3-9687
This commit is contained in:
Oliver Schramm
2018-10-01 23:40:15 +02:00
committed by Marc Alexander
parent 64ab1fc24c
commit e7015bf1dd
17 changed files with 78 additions and 55 deletions

View File

@@ -15,7 +15,6 @@ namespace phpbb\ban;
use phpbb\ban\exception\ban_insert_failed_exception;
use phpbb\ban\exception\invalid_length_exception;
use phpbb\ban\exception\no_items_specified_exception;
use phpbb\ban\exception\type_not_found_exception;
class manager
@@ -189,7 +188,7 @@ class manager
$user_ids = [];
while ($row = $this->db->sql_fetchrow($result))
{
$user_ids[] = (int)$row['user_id'];
$user_ids[] = (int) $row['user_id'];
}
$this->db->sql_freeresult($result);
}

View File

@@ -95,7 +95,7 @@ abstract class base implements type_interface
}
$this->excluded = [
(int)$this->user->data['user_id'] => $this->user->data[$user_column],
(int) $this->user->data['user_id'] => $this->user->data[$user_column],
];
$sql = "SELECT user_id, {$user_column}

View File

@@ -14,7 +14,6 @@
namespace phpbb\ban\type;
use phpbb\ban\exception\no_valid_emails_exception;
use phpbb\ban\exception\no_valid_users_exception;
use phpbb\exception\runtime_exception;
class email extends base

View File

@@ -13,8 +13,6 @@
namespace phpbb\ban\type;
use phpbb\mimetype\null_guesser;
/**
* Interface implemented by all ban types
*/