Completed
Pull Request — master (#70)
by guillaume
06:44
created
app/Src/UseCases/Infra/Gateway/SessionAuthGateway.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function current(): ?User
15 15
     {
16 16
         $userModel = Auth::user();
17
-        if(!isset($userModel)){
17
+        if (!isset($userModel)) {
18 18
             return null;
19 19
         }
20 20
         return new User($userModel->uuid, $userModel->email, $userModel->firstname, $userModel->lastname, $userModel->organization_id);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         Auth::login($autenticable);
27 27
     }
28 28
 
29
-    public function wikiSessionId():? string
29
+    public function wikiSessionId(): ? string
30 30
     {
31 31
         return Session::get('wiki_session_id');
32 32
     }
Please login to merge, or discard this patch.
app/Src/UseCases/Domain/Shared/Gateway/AuthGateway.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 interface AuthGateway
10 10
 {
11
-    public function current():? User;
11
+    public function current(): ? User;
12 12
     public function log(User $u);
13
-    public function wikiSessionId():?string;
13
+    public function wikiSessionId(): ?string;
14 14
 }
Please login to merge, or discard this patch.