mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 12:09:02 -05:00
refactor: preslash simple functions
- Add pre-slash to short named functions to improve performance by almost 30% - @see https://stackoverflow.com/questions/55419673/php7-adding-a-slash-to-all-standard-php-functions-php-cs-fixer-rule
This commit is contained in:
@@ -26,7 +26,7 @@ class ArticleController extends Controller
|
||||
{
|
||||
$articles = Article::latest()->paginate(6);
|
||||
|
||||
return view('article.index', ['articles' => $articles]);
|
||||
return \view('article.index', ['articles' => $articles]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,6 +40,6 @@ class ArticleController extends Controller
|
||||
{
|
||||
$article = Article::with(['user', 'comments'])->findOrFail($id);
|
||||
|
||||
return view('article.show', ['article' => $article]);
|
||||
return \view('article.show', ['article' => $article]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user