Passed
Branch master (c0a5de)
by Xavier
03:15 queued 01:29
created
src/App/Resources/Middleware/CountryMiddleware.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,9 @@
 block discarded – undo
17 17
         $country_id = $request->getAttribute('routeInfo')[2]['country'];
18 18
 
19 19
         // Useful when a client edits the URL and types a language that does not exist.
20
-        if (!$this->checkCountry($country_id))
21
-            return $response->withRedirect($this->router->pathFor('wrong-entry'));
20
+        if (!$this->checkCountry($country_id)) {
21
+                    return $response->withRedirect($this->router->pathFor('wrong-entry'));
22
+        }
22 23
 
23 24
         setcookie('country', $country_id, time() + (30 * 24 * 60 * 60)); // 30 days
24 25
 
Please login to merge, or discard this patch.
src/App/Model/User.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         return User::find($uid)->user['sourcedId'];
16 16
     }
17 17
 
18
-   /** protected $fillable = [
18
+    /** protected $fillable = [
19 19
         'username',
20 20
         'email',
21 21
         'password',
Please login to merge, or discard this patch.