@@ -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 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'date' => ['required', 'array', 'min:2', 'max:2'], |
| 43 | 43 | ]); |
| 44 | 44 | |
| 45 | - if (! in_array($column, ['country', 'region', 'city', 'device_type', 'device_brand', 'device_model', 'os', 'browser', 'referer', 'referer_host'])) { |
|
| 45 | + if (!in_array($column, ['country', 'region', 'city', 'device_type', 'device_brand', 'device_model', 'os', 'browser', 'referer', 'referer_host'])) { |
|
| 46 | 46 | throw ValidationException::withMessages([ |
| 47 | 47 | 'column' => [__('Unsupported column.')], |
| 48 | 48 | ]); |
@@ -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 | }); |
@@ -32,10 +32,10 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | if ($search) { |
| 35 | - $query->where(function (Builder $query) use ($search) { |
|
| 35 | + $query->where(function(Builder $query) use ($search) { |
|
| 36 | 36 | $query->where('path', 'LIKE', "%{$search}%") |
| 37 | 37 | ->orWhere('long_url', 'LIKE', "%{$search}%") |
| 38 | - ->orWhereHas('user', function ($query) use ($search) { |
|
| 38 | + ->orWhereHas('user', function($query) use ($search) { |
|
| 39 | 39 | $query->where('name', 'LIKE', "%{$search}%") |
| 40 | 40 | ->orWhere('email', 'LIKE', "%{$search}%"); |
| 41 | 41 | }); |
@@ -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 | ]); |