@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
40 | 40 | 'prefix' => Tinre::dashboardPath(), |
41 | 41 | 'middleware' => $middleware, |
42 | - ], function () { |
|
42 | + ], function() { |
|
43 | 43 | Route::get('login', 'Auth\LoginController@showLoginForm')->name('login'); |
44 | 44 | Route::post('login', 'Auth\LoginController@login'); |
45 | 45 | Route::post('logout', 'Auth\LoginController@logout')->name('logout'); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
55 | 55 | 'prefix' => Tinre::dashboardPath(), |
56 | 56 | 'middleware' => $middleware, |
57 | - ], function () { |
|
57 | + ], function() { |
|
58 | 58 | Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request'); |
59 | 59 | Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email'); |
60 | 60 | Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset'); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
71 | 71 | 'prefix' => Tinre::dashboardPath(), |
72 | 72 | 'middleware' => $middleware, |
73 | - ], function () { |
|
73 | + ], function() { |
|
74 | 74 | Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register'); |
75 | 75 | Route::post('register', 'Auth\RegisterController@register'); |
76 | 76 | }); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
85 | 85 | 'prefix' => Tinre::dashboardPath(), |
86 | 86 | 'middleware' => $middleware, |
87 | - ], function () { |
|
87 | + ], function() { |
|
88 | 88 | Route::get('email/verify', 'Auth\VerificationController@show')->name('verification.notice'); |
89 | 89 | Route::get('email/verify/{id}/{hash}', 'Auth\VerificationController@verify')->name('verification.verify'); |
90 | 90 | Route::post('email/resend', 'Auth\VerificationController@resend')->name('verification.resend'); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
100 | 100 | 'prefix' => Tinre::dashboardPath(), |
101 | 101 | 'middleware' => $middleware, |
102 | - ], function () { |
|
102 | + ], function() { |
|
103 | 103 | Route::get('email/change/{token}', 'Auth\ChangeEmailController@change')->name('email.change'); |
104 | 104 | Route::post('email/change', 'Auth\ChangeEmailController@create')->name('email.request'); |
105 | 105 | }); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | public function __destruct() |
111 | 111 | { |
112 | - if (! $this->registered) { |
|
112 | + if (!$this->registered) { |
|
113 | 113 | $this->register(); |
114 | 114 | } |
115 | 115 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | protected function redirectTo($request) |
16 | 16 | { |
17 | - if (! $request->expectsJson()) { |
|
17 | + if (!$request->expectsJson()) { |
|
18 | 18 | return route('login'); |
19 | 19 | } |
20 | 20 | } |
@@ -163,7 +163,7 @@ |
||
163 | 163 | |
164 | 164 | $user = $this->guard()->user(); |
165 | 165 | |
166 | - if (! $user->active) { |
|
166 | + if (!$user->active) { |
|
167 | 167 | $this->guard()->logout(); |
168 | 168 | throw ValidationException::withMessages([ |
169 | 169 | 'email' => [trans('Your account has beem disabled.')], |
@@ -63,11 +63,11 @@ |
||
63 | 63 | */ |
64 | 64 | public function verify(Request $request) |
65 | 65 | { |
66 | - if (! hash_equals((string) $request->route('id'), (string) $request->user()->getKey())) { |
|
66 | + if (!hash_equals((string) $request->route('id'), (string) $request->user()->getKey())) { |
|
67 | 67 | throw new AuthorizationException; |
68 | 68 | } |
69 | 69 | |
70 | - if (! hash_equals((string) $request->route('hash'), sha1($request->user()->getEmailForVerification()))) { |
|
70 | + if (!hash_equals((string) $request->route('hash'), sha1($request->user()->getEmailForVerification()))) { |
|
71 | 71 | throw new AuthorizationException; |
72 | 72 | } |
73 | 73 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | // database. Otherwise we will parse the error and return the response. |
55 | 55 | $response = $this->broker()->reset( |
56 | 56 | $this->credentials($request), |
57 | - function ($user, $password) { |
|
57 | + function($user, $password) { |
|
58 | 58 | $this->resetPassword($user, $password); |
59 | 59 | } |
60 | 60 | ); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $user = $request->user(); |
43 | 43 | |
44 | - if (! Hash::check($request->password, $user->password)) { |
|
44 | + if (!Hash::check($request->password, $user->password)) { |
|
45 | 45 | return response()->json(['message' => __('Invalid Password')], 403); |
46 | 46 | } |
47 | 47 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | $email = DB::table('email_changes')->where('token', $token)->first(); |
74 | 74 | |
75 | - if (! $email) { |
|
75 | + if (!$email) { |
|
76 | 76 | abort(404); |
77 | 77 | } |
78 | 78 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $query = User::query(); |
25 | 25 | |
26 | 26 | if ($search) { |
27 | - $query->where(function (Builder $query) use ($search) { |
|
27 | + $query->where(function(Builder $query) use ($search) { |
|
28 | 28 | $query->where('name', 'LIKE', "%{$search}%") |
29 | 29 | ->orWhere('email', 'LIKE', "%{$search}%"); |
30 | 30 | }); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | 'new_password' => ['nullable', 'required_with:current_password', 'min:6'], |
32 | 32 | ]); |
33 | 33 | |
34 | - if ($validatedData['new_password'] && ! Hash::check($validatedData['current_password'], $user->password)) { |
|
34 | + if ($validatedData['new_password'] && !Hash::check($validatedData['current_password'], $user->password)) { |
|
35 | 35 | throw ValidationException::withMessages([ |
36 | 36 | 'current_password' => [trans('The current password is invalid.')], |
37 | 37 | ]); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | $user = Auth::user(); |
14 | 14 | |
15 | - if (! $user) { |
|
15 | + if (!$user) { |
|
16 | 16 | return $authorizedActions; |
17 | 17 | } |
18 | 18 |