Completed
Pull Request — master (#98)
by Sebastian
14:51
created
app/Repositories/ArticleRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     public static function findByUrl(string $url): Article
20 20
     {
21
-        $article =  Article::online()
21
+        $article = Article::online()
22 22
             ->where('url->'.content_locale(), $url)
23 23
             ->first();
24 24
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         return Cache::rememberForever(
33 33
             "article.specialArticle.{$specialArticle}",
34
-            function () use ($specialArticle) {
34
+            function() use ($specialArticle) {
35 35
                 return Article::where('technical_name', $specialArticle)->firstOrFail();
36 36
             }
37 37
         );
Please login to merge, or discard this patch.