Passed
Branch master (6376ed)
by Shreyans Kumar
08:07
created
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     protected function validateLogin(\Illuminate\Http\Request $request)
53 53
     {
54 54
         $this->validate($request, [
55
-            'email' => 'required', 'password' => 'required','captcha' => 'required|captcha',
55
+            'email' => 'required', 'password' => 'required', 'captcha' => 'required|captcha',
56 56
         ]);
57 57
     }
58 58
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'name' => $data['name'],
73 73
             'email' => $data['email'],
74 74
             'password' => bcrypt($data['password']),
75
-        	'act' => str_random(48),
75
+            'act' => str_random(48),
76 76
         ]);
77 77
 
78 78
         try {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     public function verifyUser($token) {
88 88
         $user = User::where('act', $token)->first();
89
-    	if(isset($user)) {
89
+        if(isset($user)) {
90 90
             if(!$user->verified) {
91 91
                 $user->verified = 1;
92 92
                 $user->save();
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,25 +69,25 @@
 block discarded – undo
69 69
     protected function create(array $data)
70 70
     {
71 71
         $user = User::create([
72
-            'name' => $data['name'],
73
-            'email' => $data['email'],
74
-            'password' => bcrypt($data['password']),
72
+            'name' => $data[ 'name' ],
73
+            'email' => $data[ 'email' ],
74
+            'password' => bcrypt($data[ 'password' ]),
75 75
         	'act' => str_random(48),
76 76
         ]);
77 77
 
78 78
         try {
79 79
             $mailcheck = Mail::to($user->email)->send(new VerifyMail($user));
80 80
 
81
-            return redirect('/login')->with('status','Check you email to Complete Registration.');
81
+            return redirect('/login')->with('status', 'Check you email to Complete Registration.');
82 82
         } catch (Exception $ex) {
83
-            return redirect('/login')->with('warning',$ex);
83
+            return redirect('/login')->with('warning', $ex);
84 84
         }
85 85
     }
86 86
 
87 87
     public function verifyUser($token) {
88 88
         $user = User::where('act', $token)->first();
89
-    	if(isset($user)) {
90
-            if(!$user->verified) {
89
+    	if (isset($user)) {
90
+            if (!$user->verified) {
91 91
                 $user->verified = 1;
92 92
                 $user->save();
93 93
                 $status = "E-mail verified. You can now login.";
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,8 +94,7 @@
 block discarded – undo
94 94
             } else {
95 95
                 $status = "Your e-mail is already verified. You can now login.";
96 96
             }
97
-        }
98
-        else {
97
+        } else {
99 98
             return redirect('/login')->with('warning', "Sorry! Your email can not be identified.");
100 99
         }
101 100
         return redirect('/login')->with('status', $status);
Please login to merge, or discard this patch.
app/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      * @var array
16 16
      */
17 17
     protected $fillable = [
18
-        'name', 'email', 'password' , 'act'
18
+        'name', 'email', 'password', 'act'
19 19
     ];
20 20
 
21 21
     /**
Please login to merge, or discard this patch.