mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11620] Minor indentation changes and comment clarity
PHPBB3-11620
This commit is contained in:
parent
be16459b89
commit
cc6147f876
2 changed files with 5 additions and 7 deletions
|
@ -23,11 +23,11 @@ class phpbb_session_check_ban_test extends phpbb_session_test_case
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array('All false values, should not be banned',
|
array('All false values, should not be banned',
|
||||||
false, false, false, false, /* ?: */ false),
|
false, false, false, false, /* should be banned? -> */ false),
|
||||||
array('Matching values in the database, should be banned',
|
array('Matching values in the database, should be banned',
|
||||||
4, '127.0.0.1', 'bar@example.org', true, /* ?: */ true),
|
4, '127.0.0.1', 'bar@example.org', true, /* should be banned? -> */ true),
|
||||||
array('IP Banned, should be banned',
|
array('IP Banned, should be banned',
|
||||||
false, '127.1.1.1', false, false, /* ?: */ true),
|
false, '127.1.1.1', false, false, /* should be banned? -> */ true),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,8 +49,7 @@ class phpbb_session_check_ban_test extends phpbb_session_test_case
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$is_banned =
|
$is_banned = $session->check_ban($user_id, $user_ips, $user_email, $return);
|
||||||
$session->check_ban($user_id, $user_ips, $user_email, $return);
|
|
||||||
} catch (PHPUnit_Framework_Error_Notice $e)
|
} catch (PHPUnit_Framework_Error_Notice $e)
|
||||||
{
|
{
|
||||||
// User error was triggered, user must have been banned
|
// User error was triggered, user must have been banned
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../test_framework/phpbb_session_test_case.php';
|
require_once dirname(__FILE__) . '/../test_framework/phpbb_session_test_case.php';
|
||||||
|
|
||||||
|
|
||||||
class phpbb_session_check_isvalid_test extends phpbb_session_test_case
|
class phpbb_session_check_isvalid_test extends phpbb_session_test_case
|
||||||
{
|
{
|
||||||
public function getDataSet()
|
public function getDataSet()
|
||||||
|
|
Loading…
Add table
Reference in a new issue