refactor: newline after statement

This commit is contained in:
HDVinnie
2021-09-28 12:49:46 -04:00
parent 86a1d5c728
commit 2a53cea216
142 changed files with 660 additions and 2 deletions
+3
View File
@@ -168,6 +168,7 @@ class TopicController extends Controller
return \redirect()->route('forums.index')
->withErrors($v->errors());
}
$topic->save();
$post = new Post();
$post->content = $request->input('content');
@@ -182,6 +183,7 @@ class TopicController extends Controller
return \redirect()->route('forums.index')
->withErrors($v->errors());
}
$post->save();
$topic->num_post = 1;
$topic->last_reply_at = $post->created_at;
@@ -206,6 +208,7 @@ class TopicController extends Controller
$this->chatRepository->systemMessage(\sprintf('[url=%s]%s[/url] has created a new topic [url=%s]%s[/url]', $profileUrl, $user->username, $topicUrl, $topic->name));
$forum->notifySubscribers($user, $topic);
}
//Achievements
$user->unlock(new UserMadeFirstPost(), 1);
$user->addProgress(new UserMade25Posts(), 1);