Passed
Push — master ( bf4f90...764afc )
by Paul
06:01
created
src/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
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.')],
Please login to merge, or discard this patch.
src/Http/Controllers/Auth/VerificationController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Http/Controllers/Auth/ResetPasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Http/Controllers/Auth/ChangeEmailController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Http/Controllers/Web/StatsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
             ]);
Please login to merge, or discard this patch.
src/Http/Controllers/Web/UserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
             });
Please login to merge, or discard this patch.
src/Http/Controllers/Web/UrlController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
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
                     });
Please login to merge, or discard this patch.
src/Http/Controllers/Web/LoggedUserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
             ]);
Please login to merge, or discard this patch.