Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2022-08-25 23:17:20 +00:00
parent 33494ca5ce
commit 2725397734
10 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -72,7 +72,7 @@ class TopicController extends Controller
$firstPost = Post::with('tips')->where('topic_id', '=', $topic->id)->first();
// The user can post a topic here ?
if (!$category->getPermission()->read_topic) {
if (! $category->getPermission()->read_topic) {
// Redirect him to the forum index
return \to_route('forums.index')
->withErrors('You Do Not Have Access To Read This Topic!');
@@ -100,7 +100,7 @@ class TopicController extends Controller
$category = Forum::findOrFail($id);
// The user has the right to create a topic here?
if (!$category->getPermission()->start_topic) {
if (! $category->getPermission()->start_topic) {
return \to_route('forums.index')
->withErrors('You Cannot Start A New Topic Here!');
}
@@ -122,7 +122,7 @@ class TopicController extends Controller
$category = Forum::findOrFail($id);
// The user has the right to create a topic here?
if (!$category->getPermission()->start_topic) {
if (! $category->getPermission()->start_topic) {
return \to_route('forums.index')
->withErrors('You Cannot Start A New Topic Here!');
}