Passed
Push — master ( 02b2dd...8b56d0 )
by Paul
05:11
created
src/RouteRegistration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
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/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/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.
src/Traits/AuthorizedActions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
         $user = Auth::user();
14 14
 
15
-        if (! $user) {
15
+        if (!$user) {
16 16
             return $authorizedActions;
17 17
         }
18 18
 
Please login to merge, or discard this patch.