phpcs fix

This commit is contained in:
Jonny Barnes 2018-01-06 21:50:15 +00:00
parent 499674599b
commit 6e73872efc

View file

@ -31,7 +31,10 @@ class ArticlesController extends Controller
{
$article = Article::where('titleurl', $slug)->firstOrFail();
if ($article->updated_at->year != $year || $article->updated_at->month != $month) {
return redirect('/blog/' . $article->updated_at->year . '/' . $article->updated_at->format('m') .'/' . $slug);
return redirect('/blog/'
. $article->updated_at->year
. '/' . $article->updated_at->format('m')
.'/' . $slug);
}
return view('articles.show', compact('article'));