[ticket/553] Fix code sniffer complaints

B3P-553
This commit is contained in:
Marc Alexander
2015-06-01 16:56:36 +02:00
parent 44a1937237
commit 9c90d2834b
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
<?php <?php
// @codingStandardsIgnoreFile
/** /**
* *
* @package Board3 Portal v2.1 * @package Board3 Portal v2.1
@@ -9,7 +10,6 @@
/** /**
* @ignore * @ignore
* @codingStandardsIgnoreFile
*/ */
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {

View File

@@ -246,8 +246,8 @@ class announcements extends module_base
// Assign announcements row // Assign announcements row
$this->template->assign_block_vars('announcements', $announcements_row); $this->template->assign_block_vars('announcements', $announcements_row);
if($announcement < 0)
// Show the announcements overview // Show the announcements overview
if($announcement < 0)
{ {
$count = $fetch_news['topic_count']; $count = $fetch_news['topic_count'];
for ($i = 0; $i < $count; $i++) for ($i = 0; $i < $count; $i++)
@@ -363,12 +363,12 @@ class announcements extends module_base
} }
} }
} }
else
// Show "read full" page // Show "read full" page
else
{ {
$i = $announcement; $i = $announcement;
/** /**
* redirect to portal page if the specified announcement does not exist * redirect to portal page if the specified announcement does not exist
* force #top anchor in order to get rid of the #a anchor * force #top anchor in order to get rid of the #a anchor
*/ */

View File

@@ -243,8 +243,8 @@ class news extends module_base
// Create standard news row // Create standard news row
$this->template->assign_block_vars('news', $news_row); $this->template->assign_block_vars('news', $news_row);
if($news < 0)
// Show the news overview // Show the news overview
if($news < 0)
{ {
$count = $fetch_news['topic_count']; $count = $fetch_news['topic_count'];
for ($i = 0; $i < $count; $i++) for ($i = 0; $i < $count; $i++)
@@ -360,8 +360,8 @@ class news extends module_base
} }
} }
} }
else
// Show "read full" page // Show "read full" page
else
{ {
$i = $news; $i = $news;
$forum_id = $fetch_news[$i]['forum_id']; $forum_id = $fetch_news[$i]['forum_id'];