@@ -4,68 +4,68 @@ |
||
4 | 4 | |
5 | 5 | class UsersErrors |
6 | 6 | { |
7 | - public function unAuthorized() |
|
8 | - { |
|
9 | - abort(401, trans('users::errors.unAuthorized')); |
|
10 | - } |
|
7 | + public function unAuthorized() |
|
8 | + { |
|
9 | + abort(401, trans('users::errors.unAuthorized')); |
|
10 | + } |
|
11 | 11 | |
12 | - public function noPermissions() |
|
13 | - { |
|
14 | - abort(403, trans('users::errors.noPermissions')); |
|
15 | - } |
|
12 | + public function noPermissions() |
|
13 | + { |
|
14 | + abort(403, trans('users::errors.noPermissions')); |
|
15 | + } |
|
16 | 16 | |
17 | - public function userIsBlocked() |
|
18 | - { |
|
19 | - abort(403, trans('users::errors.userIsBlocked')); |
|
20 | - } |
|
17 | + public function userIsBlocked() |
|
18 | + { |
|
19 | + abort(403, trans('users::errors.userIsBlocked')); |
|
20 | + } |
|
21 | 21 | |
22 | - public function emailNotConfirmed() |
|
23 | - { |
|
24 | - abort(403, trans('users::errors.emailNotConfirmed')); |
|
25 | - } |
|
22 | + public function emailNotConfirmed() |
|
23 | + { |
|
24 | + abort(403, trans('users::errors.emailNotConfirmed')); |
|
25 | + } |
|
26 | 26 | |
27 | - public function loginFailed() |
|
28 | - { |
|
29 | - abort(400, trans('users::errors.loginFailed')); |
|
30 | - } |
|
27 | + public function loginFailed() |
|
28 | + { |
|
29 | + abort(400, trans('users::errors.loginFailed')); |
|
30 | + } |
|
31 | 31 | |
32 | - public function emailAlreadyConfirmed() |
|
33 | - { |
|
34 | - abort(400, trans('users::errors.emailAlreadyConfirmed')); |
|
35 | - } |
|
32 | + public function emailAlreadyConfirmed() |
|
33 | + { |
|
34 | + abort(400, trans('users::errors.emailAlreadyConfirmed')); |
|
35 | + } |
|
36 | 36 | |
37 | - public function noSocialEmail() |
|
38 | - { |
|
39 | - abort(400, trans('users::errors.noSocialEmail')); |
|
40 | - } |
|
37 | + public function noSocialEmail() |
|
38 | + { |
|
39 | + abort(400, trans('users::errors.noSocialEmail')); |
|
40 | + } |
|
41 | 41 | |
42 | - public function userAlreadyRegistered() |
|
43 | - { |
|
44 | - abort(400, trans('users::errors.userAlreadyRegistered')); |
|
45 | - } |
|
42 | + public function userAlreadyRegistered() |
|
43 | + { |
|
44 | + abort(400, trans('users::errors.userAlreadyRegistered')); |
|
45 | + } |
|
46 | 46 | |
47 | - public function invalidRefreshToken() |
|
48 | - { |
|
49 | - abort(422, trans('users::errors.invalidRefreshToken')); |
|
50 | - } |
|
47 | + public function invalidRefreshToken() |
|
48 | + { |
|
49 | + abort(422, trans('users::errors.invalidRefreshToken')); |
|
50 | + } |
|
51 | 51 | |
52 | - public function invalidResetToken() |
|
53 | - { |
|
54 | - abort(422, trans('users::errors.invalidResetToken')); |
|
55 | - } |
|
52 | + public function invalidResetToken() |
|
53 | + { |
|
54 | + abort(422, trans('users::errors.invalidResetToken')); |
|
55 | + } |
|
56 | 56 | |
57 | - public function invalidResetPassword() |
|
58 | - { |
|
59 | - abort(422, trans('users::errors.invalidResetPassword')); |
|
60 | - } |
|
57 | + public function invalidResetPassword() |
|
58 | + { |
|
59 | + abort(422, trans('users::errors.invalidResetPassword')); |
|
60 | + } |
|
61 | 61 | |
62 | - public function invalidOldPassword() |
|
63 | - { |
|
64 | - abort(422, trans('users::errors.invalidOldPassword')); |
|
65 | - } |
|
62 | + public function invalidOldPassword() |
|
63 | + { |
|
64 | + abort(422, trans('users::errors.invalidOldPassword')); |
|
65 | + } |
|
66 | 66 | |
67 | - public function invalidConfirmationCode() |
|
68 | - { |
|
69 | - abort(422, trans('users::errors.invalidConfirmationCode')); |
|
70 | - } |
|
67 | + public function invalidConfirmationCode() |
|
68 | + { |
|
69 | + abort(422, trans('users::errors.invalidConfirmationCode')); |
|
70 | + } |
|
71 | 71 | } |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /** |
|
6 | - * Here goes your error messages. |
|
7 | - */ |
|
5 | + /** |
|
6 | + * Here goes your error messages. |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ]; |