@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Middleware; |
6 | 6 | |
7 | -use Canvas\Traits\TokenTrait; |
|
8 | 7 | use Canvas\Traits\SubscriptionPlanLimitTrait; |
8 | +use Canvas\Traits\TokenTrait; |
|
9 | 9 | use Phalcon\Mvc\Micro\MiddlewareInterface; |
10 | 10 | |
11 | 11 | /** |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * Get System Module by its model_name. |
143 | 143 | * |
144 | 144 | * @deprecated v2 |
145 | - * @param string $model_name |
|
145 | + * @param string $modelName |
|
146 | 146 | * @return ModelInterface |
147 | 147 | */ |
148 | 148 | public static function getSystemModuleByModelName(string $modelName): ModelInterface |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * Get System Module by its model_name. |
164 | 164 | * |
165 | - * @param string $model_name |
|
165 | + * @param string $modelName |
|
166 | 166 | * @return ModelInterface |
167 | 167 | */ |
168 | 168 | public static function getByModelName(string $modelName): ModelInterface |
@@ -200,7 +200,6 @@ discard block |
||
200 | 200 | /** |
201 | 201 | * Get System Module by id. |
202 | 202 | * |
203 | - * @param int $id |
|
204 | 203 | * @return ModelInterface |
205 | 204 | */ |
206 | 205 | public static function getBySlug(string $slug): ModelInterface |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | namespace Canvas\Models; |
5 | 5 | |
6 | -use Phalcon\Di; |
|
7 | 6 | use Canvas\Http\Exception\InternalServerErrorException; |
7 | +use Phalcon\Di; |
|
8 | 8 | use Phalcon\Mvc\ModelInterface; |
9 | 9 | |
10 | 10 | class SystemModules extends AbstractModel |
@@ -389,7 +389,6 @@ |
||
389 | 389 | * Set the email config array we are going to be sending. |
390 | 390 | * |
391 | 391 | * @todo deprecated move to notifications |
392 | - * @param String $emailAction |
|
393 | 392 | * @param Users $user |
394 | 393 | * @deprecated version 1 |
395 | 394 | * @return void |
@@ -4,30 +4,30 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Api\Controllers; |
6 | 6 | |
7 | -use Canvas\Models\Users; |
|
7 | +use Baka\Auth\Models\Sessions; |
|
8 | +use Baka\Auth\Models\Users as BakaUsers; |
|
9 | +use Canvas\Auth\Factory; |
|
10 | +use Canvas\Exception\ModelException; |
|
11 | +use Canvas\Http\Exception\InternalServerErrorException; |
|
12 | +use Canvas\Http\Exception\NotFoundException; |
|
8 | 13 | use Canvas\Models\Sources; |
9 | 14 | use Canvas\Models\UserLinkedSources; |
10 | -use Canvas\Exception\ModelException; |
|
11 | -use Baka\Auth\Models\Users as BakaUsers; |
|
15 | +use Canvas\Models\Users; |
|
16 | +use Canvas\Notifications\PasswordUpdate; |
|
17 | +use Canvas\Notifications\ResetPassword; |
|
18 | +use Canvas\Notifications\Signup; |
|
19 | +use Canvas\Notifications\UpdateEmail; |
|
12 | 20 | use Canvas\Traits\AuthTrait; |
13 | 21 | use Canvas\Traits\SocialLoginTrait; |
14 | -use Canvas\Http\Exception\NotFoundException; |
|
22 | +use Canvas\Traits\TokenTrait; |
|
23 | +use Canvas\Validation as CanvasValidation; |
|
24 | +use Canvas\Validations\PasswordValidation; |
|
15 | 25 | use Exception; |
16 | 26 | use Phalcon\Http\Response; |
17 | 27 | use Phalcon\Validation\Validator\Confirmation; |
18 | 28 | use Phalcon\Validation\Validator\Email as EmailValidator; |
19 | 29 | use Phalcon\Validation\Validator\PresenceOf; |
20 | 30 | use Phalcon\Validation\Validator\StringLength; |
21 | -use Baka\Auth\Models\Sessions; |
|
22 | -use Canvas\Auth\Factory; |
|
23 | -use Canvas\Http\Exception\InternalServerErrorException; |
|
24 | -use Canvas\Validation as CanvasValidation; |
|
25 | -use Canvas\Notifications\ResetPassword; |
|
26 | -use Canvas\Notifications\PasswordUpdate; |
|
27 | -use Canvas\Notifications\Signup; |
|
28 | -use Canvas\Notifications\UpdateEmail; |
|
29 | -use Canvas\Validations\PasswordValidation; |
|
30 | -use Canvas\Traits\TokenTrait; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Class AuthController. |
@@ -4,13 +4,13 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Listener; |
6 | 6 | |
7 | -use Phalcon\Events\Event; |
|
8 | -use Canvas\Models\Users; |
|
9 | -use Canvas\Models\Companies; |
|
10 | 7 | use Canvas\Auth\App; |
11 | 8 | use Canvas\Models\Apps; |
9 | +use Canvas\Models\Companies; |
|
12 | 10 | use Canvas\Models\Roles; |
11 | +use Canvas\Models\Users; |
|
13 | 12 | use Canvas\Models\UsersInvite; |
13 | +use Phalcon\Events\Event; |
|
14 | 14 | |
15 | 15 | class User |
16 | 16 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Canvas\Handlers; |
4 | 4 | |
5 | -use Namshi\Notificator\Notification\Handler\HandlerInterface; |
|
6 | 5 | use Canvas\Contracts\Notifications\EmailNotificationsInterface as EmailNotificationsContract; |
7 | 6 | use Namshi\Notificator\NotificationInterface; |
7 | +use Namshi\Notificator\Notification\Handler\HandlerInterface; |
|
8 | 8 | use Phalcon\Di; |
9 | 9 | |
10 | 10 | class EmailNotifications implements HandlerInterface |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Canvas\Handlers; |
4 | 4 | |
5 | -use Namshi\Notificator\Notification\Handler\HandlerInterface; |
|
6 | 5 | use Canvas\Contracts\Notifications\PushNotificationsInterface as PushNotificationsContract; |
7 | 6 | use Namshi\Notificator\NotificationInterface; |
7 | +use Namshi\Notificator\Notification\Handler\HandlerInterface; |
|
8 | 8 | use Phalcon\Di; |
9 | 9 | |
10 | 10 | class PushNotifications implements HandlerInterface |
@@ -160,7 +160,6 @@ |
||
160 | 160 | * Get the value of the settins by it key. |
161 | 161 | * |
162 | 162 | * @param string $key |
163 | - * @param string $value |
|
164 | 163 | */ |
165 | 164 | public function get(string $key) : ?string |
166 | 165 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | namespace Canvas\Models; |
5 | 5 | |
6 | -use Canvas\Exception\ModelException; |
|
7 | 6 | use Phalcon\Di; |
8 | 7 | |
9 | 8 | /** |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Traits; |
6 | 6 | |
7 | -use Canvas\Models\Roles; |
|
8 | -use Canvas\Models\UserRoles; |
|
9 | 7 | use Canvas\Http\Exception\InternalServerErrorException; |
10 | 8 | use Canvas\Http\Exception\UnauthorizedException; |
9 | +use Canvas\Models\Roles; |
|
10 | +use Canvas\Models\UserRoles; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Trait FractalTrait. |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | use Baka\Database\Contracts\HashTableTrait; |
8 | 8 | use Canvas\Http\Exception\NotFoundException; |
9 | -use Phalcon\Di; |
|
10 | 9 | use Exception; |
10 | +use Phalcon\Di; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Classs for FileSystem. |