[ticket/249] Fix codesniffer complaints in portal files
B3P-249
This commit is contained in:
@@ -110,7 +110,7 @@ function phpbb_fetch_posts($module_id, $forum_from, $permissions, $number_of_pos
|
||||
if ($permissions == true)
|
||||
{
|
||||
$disallow_access = array_unique(array_keys($auth->acl_getf('!f_read', true)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$disallow_access = array();
|
||||
@@ -316,7 +316,7 @@ function phpbb_fetch_posts($module_id, $forum_from, $permissions, $number_of_pos
|
||||
$message = get_sub_taged_string($message, $row['bbcode_uid'], $maxlen);
|
||||
$posts[$i]['striped'] = true;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$message = str_replace("\n", '<br/> ', $row['post_text']);
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ class portal_upload
|
||||
|
||||
if (!sizeof($file->error))
|
||||
{
|
||||
// Let's start moving our files where they belong
|
||||
// Let's start moving our files where they belong
|
||||
foreach ($actions['NEW_FILES'] as $source => $target)
|
||||
{
|
||||
/*
|
||||
@@ -245,7 +245,7 @@ class portal_upload
|
||||
}
|
||||
|
||||
foreach (scandir($dir) as $item)
|
||||
{
|
||||
{
|
||||
if ($item == '.' || $item == '..')
|
||||
{
|
||||
continue;
|
||||
|
||||
@@ -175,7 +175,6 @@ class phpbb_trim_message_bbcodes
|
||||
$this->is_sensitive = true;
|
||||
}
|
||||
|
||||
|
||||
$this->open_bbcode($bbcode_tag, $this->cur_position);
|
||||
$this->cur_position += utf8_strlen($exploded_parts[0]) + $bbcode_end_length;
|
||||
$this->bbcode_action($bbcode_tag, 'open_end', $this->cur_position);
|
||||
@@ -376,7 +375,7 @@ class phpbb_trim_message_bbcodes
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (($smiley_code = utf8_substr($content, $last_html_opening + 7, ($last_html_closing - $last_html_opening - 11))) != '--')
|
||||
{
|
||||
if ($last_smiley == $smiley_code)
|
||||
|
||||
Reference in New Issue
Block a user