From 9c90d2834b6e2896863dd3dec5ceb98e6c76d22c Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 1 Jun 2015 16:56:36 +0200 Subject: [PATCH] [ticket/553] Fix code sniffer complaints B3P-553 --- includes/functions.php | 2 +- modules/announcements.php | 6 +++--- modules/news.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 813bb58c..2d8affd5 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1,4 +1,5 @@ template->assign_block_vars('announcements', $announcements_row); - if($announcement < 0) // Show the announcements overview + if($announcement < 0) { $count = $fetch_news['topic_count']; for ($i = 0; $i < $count; $i++) @@ -363,12 +363,12 @@ class announcements extends module_base } } } - else // Show "read full" page + else { $i = $announcement; - /** + /** * redirect to portal page if the specified announcement does not exist * force #top anchor in order to get rid of the #a anchor */ diff --git a/modules/news.php b/modules/news.php index fa5c15d8..718d1b00 100644 --- a/modules/news.php +++ b/modules/news.php @@ -243,8 +243,8 @@ class news extends module_base // Create standard news row $this->template->assign_block_vars('news', $news_row); - if($news < 0) // Show the news overview + if($news < 0) { $count = $fetch_news['topic_count']; for ($i = 0; $i < $count; $i++) @@ -360,8 +360,8 @@ class news extends module_base } } } - else // Show "read full" page + else { $i = $news; $forum_id = $fetch_news[$i]['forum_id'];