Completed
Push — master ( 5a5df7...583e6b )
by Corentin
06:46
created
app/Http/Controllers/LoginController.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -13,17 +13,17 @@  discard block
 block discarded – undo
13 13
 
14 14
 class LoginController extends Controller {
15 15
 
16
-	private $userRepository;
16
+    private $userRepository;
17 17
 	
18
-	public function __construct(UserRepository $repository)
19
-	{
20
-		$this->userRepository = $repository;
21
-	}
18
+    public function __construct(UserRepository $repository)
19
+    {
20
+        $this->userRepository = $repository;
21
+    }
22 22
 
23
-	public function getLoginForm()
24
-	{
25
-		return view('public.login');
26
-	}
23
+    public function getLoginForm()
24
+    {
25
+        return view('public.login');
26
+    }
27 27
     
28 28
     public function loginAttempt(Request $request)
29 29
     {
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
 
44 44
         try 
45 45
         {
46
-        	$user = $this->userRepository->findActive($email);
46
+            $user = $this->userRepository->findActive($email);
47 47
         }
48 48
         catch (RepositoryException $e)
49 49
         {
50
-        	return redirect('/')->with('error', 'The email and password you entered don\'t match')
50
+            return redirect('/')->with('error', 'The email and password you entered don\'t match')
51 51
                                 ->with('email', $email);
52 52
         }
53 53
                         
Please login to merge, or discard this patch.