Completed
Push — development ( b00a9d...82e2af )
by Claudio
02:27
created
app/Http/Controllers/ArticleController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,9 @@
 block discarded – undo
75 75
      */
76 76
     public function one(string $countryId, string $articleName): Response
77 77
     {
78
-        if (($article = Article::find(strstr($articleName, '_', true))) == null)
79
-            return response()->json(null, 404);
78
+        if (($article = Article::find(strstr($articleName, '_', true))) == null) {
79
+                    return response()->json(null, 404);
80
+        }
80 81
 
81 82
         $related = ($latest = Article::all())->filter(function ($item) use ($article) {
82 83
             return in_array($article->categories[0], $item->categories);
Please login to merge, or discard this patch.