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:
HDVinnie
2020-07-22 15:09:37 -04:00
parent e7ccde0190
commit a975116218
211 changed files with 2497 additions and 2497 deletions
+2 -2
View File
@@ -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]);
}
}