[ticket/269] Fix codesniffer complaints

B3P-269
This commit is contained in:
Marc Alexander
2014-06-27 17:38:00 +02:00
parent 03509a3195
commit 4a7f5e6ed8
17 changed files with 22 additions and 1728 deletions

View File

@@ -132,7 +132,7 @@ class birthday_list extends module_base
'AGE' => ($age = (int) substr($row['user_birthday'], -4)) ? ' (' . ($now['year'] - $age) . ')' : '',
));
}
elseif ($this->config['board3_birthdays_ahead_' . $module_id] > 0)
else if ($this->config['board3_birthdays_ahead_' . $module_id] > 0)
{
$birthday_ahead_list = true;
$this->template->assign_block_vars('board3_birthday_ahead_list', array(

View File

@@ -452,7 +452,7 @@ class calendar extends module_base
{
trigger_error($this->user->lang['ACP_PORTAL_CALENDAR_EVENT_PAST']. adm_back_link($u_action), E_USER_WARNING);
}
elseif ($end_time < $start_time && !$event_all_day)
else if ($end_time < $start_time && !$event_all_day)
{
trigger_error($this->user->lang['ACP_PORTAL_CALENDAR_EVENT_START_FIRST']. adm_back_link($u_action), E_USER_WARNING);
}

View File

@@ -209,7 +209,7 @@ class leaders extends module_base
{
$which_row = 'b3p_admins';
}
elseif ($row['group_name'] == 'GLOBAL_MODERATORS')
else if ($row['group_name'] == 'GLOBAL_MODERATORS')
{
$which_row = 'b3p_moderators';
}

View File

@@ -229,7 +229,7 @@ class poll extends module_base
$update = $this->request->variable('update', false);
$poll_view = $this->request->variable('polls', '');
$poll_view_ar = (strpos($poll_view, ',') !== FALSE) ? explode(',', $poll_view) : (($poll_view != '') ? array($poll_view) : array());
$poll_view_ar = (strpos($poll_view, ',') !== false) ? explode(',', $poll_view) : (($poll_view != '') ? array($poll_view) : array());
if ($update && $this->config['board3_poll_allow_vote_' . $module_id])
{
@@ -493,7 +493,7 @@ class poll extends module_base
$make_poll_view = array();
if(in_array($topic_id, $poll_view_ar) === FALSE)
if(in_array($topic_id, $poll_view_ar) === false)
{
$make_poll_view[] = $topic_id;
$make_poll_view = array_merge($poll_view_ar, $make_poll_view);