@@ -36,7 +36,7 @@ |
||
36 | 36 | * |
37 | 37 | * @param \App\Containers\User\Tasks\FindUserByVisitorIdTask $findUserByVisitorIdTask |
38 | 38 | * @param \App\Containers\User\Tasks\UpdateUserTask $updateUserTask |
39 | - * @param \App\Containers\User\Actions\ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask |
|
39 | + * @param ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask |
|
40 | 40 | */ |
41 | 41 | public function __construct( |
42 | 42 | FindUserByVisitorIdTask $findUserByVisitorIdTask, |
@@ -37,10 +37,10 @@ |
||
37 | 37 | 'name' => $data['name'], |
38 | 38 | ], $response); |
39 | 39 | |
40 | - // assert response contain the token |
|
40 | + // assert response contain the token |
|
41 | 41 | $this->assertResponseContainKeys(['id', 'token'], $response); |
42 | 42 | |
43 | - // assert the data is stored in the database |
|
43 | + // assert the data is stored in the database |
|
44 | 44 | $this->seeInDatabase('users', ['email' => $data['email']]); |
45 | 45 | } |
46 | 46 |
@@ -37,10 +37,10 @@ |
||
37 | 37 | 'name' => $data['name'], |
38 | 38 | ], $response); |
39 | 39 | |
40 | - // assert response contain the token |
|
40 | + // assert response contain the token |
|
41 | 41 | $this->assertResponseContainKeys(['id', 'token'], $response); |
42 | 42 | |
43 | - // assert the data is stored in the database |
|
43 | + // assert the data is stored in the database |
|
44 | 44 | $this->seeInDatabase('users', ['email' => $data['email']]); |
45 | 45 | } |
46 | 46 |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use App\Containers\User\Actions\GetUserAction; |
8 | 8 | use App\Containers\User\Actions\ListAndSearchUsersAction; |
9 | 9 | use App\Containers\User\Actions\RegisterVisitorUserAction; |
10 | -use App\Containers\User\Actions\SwitchVisitorToUserAction; |
|
11 | 10 | use App\Containers\User\Actions\UpdateUserAction; |
12 | 11 | use App\Containers\User\Actions\UpdateVisitorUserAction; |
13 | 12 | use App\Containers\User\UI\API\Requests\DeleteUserRequest; |
@@ -42,7 +42,6 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * MailsAbstract constructor. |
44 | 44 | * |
45 | - * @param \Illuminate\Mail\Mailer $mail |
|
46 | 45 | */ |
47 | 46 | public function __construct() |
48 | 47 | { |
@@ -81,7 +80,7 @@ discard block |
||
81 | 80 | } |
82 | 81 | |
83 | 82 | /** |
84 | - * @param $subject |
|
83 | + * @param string $subject |
|
85 | 84 | */ |
86 | 85 | public function setSubject($subject) |
87 | 86 | { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function send($data = []) |
63 | 63 | { |
64 | - if(!$this->fromEmail || !$this->toEmail){ |
|
64 | + if (!$this->fromEmail || !$this->toEmail) { |
|
65 | 65 | throw new EmailIsMissedException(); |
66 | 66 | } |
67 | 67 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | // check if sending emails is enabled and if this is not running a testing environment |
71 | 71 | if (Config::get('mail.enabled')) { |
72 | 72 | |
73 | - Mail::queue('EmailTemplates.' . $this->template, $data, function ($m) { |
|
73 | + Mail::queue('EmailTemplates.' . $this->template, $data, function($m) { |
|
74 | 74 | $m->from($this->fromEmail, $this->fromName); |
75 | 75 | $m->to($this->toEmail, $this->toName) |
76 | 76 | ->subject($this->subject); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
34 | 34 | * @param \App\Containers\Authentication\Tasks\GetAuthenticatedUserTask $getAuthenticatedUserTask |
35 | 35 | * |
36 | - * @return mixed |
|
36 | + * @return boolean |
|
37 | 37 | */ |
38 | 38 | public function authorize(Gate $gate, GetAuthenticatedUserTask $getAuthenticatedUserTask) |
39 | 39 | { |
@@ -19,8 +19,8 @@ |
||
19 | 19 | /* |
20 | 20 | * Authenticate the user's personal channel... |
21 | 21 | */ |
22 | - Broadcast::channel('App.User.*', function ($user, $userId) { |
|
23 | - return (int) $user->id === (int) $userId; |
|
22 | + Broadcast::channel('App.User.*', function($user, $userId) { |
|
23 | + return (int)$user->id === (int)$userId; |
|
24 | 24 | }); |
25 | 25 | } |
26 | 26 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $locale = $request->header('Content-Language'); |
39 | 39 | |
40 | 40 | // if the header is missed |
41 | - if(!$locale){ |
|
41 | + if (!$locale) { |
|
42 | 42 | // take the default local language |
43 | 43 | $locale = $this->app->config->get('app.locale'); |
44 | 44 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | throw (new MissingVisitorIdException()); |
42 | 42 | } |
43 | 43 | |
44 | - if($skipCriterias){ |
|
44 | + if ($skipCriterias) { |
|
45 | 45 | $this->userRepository = $this->userRepository->skipCriteria(); |
46 | 46 | } |
47 | 47 |