@@ -196,7 +196,6 @@ discard block |
||
196 | 196 | /** |
197 | 197 | * Get the entity by its name. |
198 | 198 | * |
199 | - * @param string $name |
|
200 | 199 | * @return Roles |
201 | 200 | */ |
202 | 201 | public static function getById(int $id): Roles |
@@ -321,7 +320,6 @@ discard block |
||
321 | 320 | |
322 | 321 | /** |
323 | 322 | * Check if role exists by its id. |
324 | - * @param integer $role_id |
|
325 | 323 | * @return Roles |
326 | 324 | */ |
327 | 325 | public static function existsById(int $id): Roles |
@@ -3,14 +3,14 @@ |
||
3 | 3 | |
4 | 4 | namespace Canvas\Models; |
5 | 5 | |
6 | +use Canvas\Exception\ModelException; |
|
7 | +use Canvas\Http\Exception\InternalServerErrorException; |
|
8 | +use Canvas\Http\Exception\UnprocessableEntityException; |
|
9 | +use Phalcon\Acl\Role as AclRole; |
|
6 | 10 | use Phalcon\Di; |
7 | 11 | use Phalcon\Validation; |
8 | 12 | use Phalcon\Validation\Validator\PresenceOf; |
9 | 13 | use Phalcon\Validation\Validator\StringLength; |
10 | -use Phalcon\Acl\Role as AclRole; |
|
11 | -use Canvas\Exception\ModelException; |
|
12 | -use Canvas\Http\Exception\InternalServerErrorException; |
|
13 | -use Canvas\Http\Exception\UnprocessableEntityException; |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Class Roles. |
@@ -86,7 +86,7 @@ |
||
86 | 86 | /** |
87 | 87 | * Get the current company app |
88 | 88 | * |
89 | - * @return void |
|
89 | + * @return UserCompanyApps |
|
90 | 90 | */ |
91 | 91 | public static function getCurrentApp(): UserCompanyApps |
92 | 92 | { |
@@ -171,7 +171,7 @@ |
||
171 | 171 | /** |
172 | 172 | * Given the form request return a new user invite. |
173 | 173 | * |
174 | - * @param array $requets |
|
174 | + * @param array $request |
|
175 | 175 | * @return Users |
176 | 176 | */ |
177 | 177 | public function newUser(array $request): Users |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | namespace Canvas\Models; |
5 | 5 | |
6 | -use Canvas\Traits\SubscriptionPlanLimitTrait; |
|
7 | 6 | use Canvas\Exception\ModelException; |
7 | +use Canvas\Traits\SubscriptionPlanLimitTrait; |
|
8 | 8 | use Phalcon\Di; |
9 | 9 | |
10 | 10 | class UsersInvite extends AbstractModel |
@@ -4,16 +4,16 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Notifications; |
6 | 6 | |
7 | +use Baka\Mail\Message; |
|
7 | 8 | use Canvas\Contracts\Notifications\NotificationInterfase; |
8 | 9 | use Canvas\Models\AbstractModel; |
9 | 10 | use Canvas\Models\NotificationType; |
10 | -use Baka\Mail\Message; |
|
11 | -use Canvas\Models\Users; |
|
12 | 11 | use Canvas\Models\Notifications; |
13 | -use Phalcon\Traits\EventManagerAwareTrait; |
|
14 | -use Phalcon\Di; |
|
12 | +use Canvas\Models\Users; |
|
15 | 13 | use Canvas\Queue\Queue; |
14 | +use Phalcon\Di; |
|
16 | 15 | use Phalcon\Mvc\Model; |
16 | +use Phalcon\Traits\EventManagerAwareTrait; |
|
17 | 17 | |
18 | 18 | class Notification implements NotificationInterfase |
19 | 19 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * |
30 | 30 | * @param Users $user |
31 | 31 | * @param NotificationInterfase $notification |
32 | - * @return void |
|
32 | + * @return boolean |
|
33 | 33 | */ |
34 | 34 | public static function one(Users $user, NotificationInterfase $notification): bool |
35 | 35 | { |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Notifications; |
6 | 6 | |
7 | -use Canvas\Models\Users; |
|
8 | - |
|
9 | 7 | class PusherNotification |
10 | 8 | { |
11 | 9 | /** |
@@ -54,7 +54,7 @@ |
||
54 | 54 | * |
55 | 55 | * @param DiInterface $container |
56 | 56 | * @param array $listeners |
57 | - * @return void |
|
57 | + * @return boolean |
|
58 | 58 | */ |
59 | 59 | protected function attachEvents(DiInterface $container, array $listeners): bool |
60 | 60 | { |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Canvas\Providers; |
4 | 4 | |
5 | -use Phalcon\Di\ServiceProviderInterface; |
|
6 | -use Phalcon\DiInterface; |
|
7 | -use Canvas\Listener\Subscription; |
|
8 | 5 | use Canvas\EventsManager; |
9 | -use Canvas\Listener\User; |
|
10 | -use Canvas\Listener\Notification; |
|
11 | 6 | use Canvas\Listener\Company; |
7 | +use Canvas\Listener\Notification; |
|
8 | +use Canvas\Listener\Subscription; |
|
9 | +use Canvas\Listener\User; |
|
10 | +use Phalcon\DiInterface; |
|
11 | +use Phalcon\Di\ServiceProviderInterface; |
|
12 | 12 | |
13 | 13 | class EventsManagerProvider implements ServiceProviderInterface |
14 | 14 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Canvas\Providers; |
4 | 4 | |
5 | -use Phalcon\Di\ServiceProviderInterface; |
|
6 | -use Phalcon\DiInterface; |
|
5 | +use Aws\S3\S3Client; |
|
7 | 6 | use League\Flysystem\Adapter\Local; |
8 | 7 | use League\Flysystem\AwsS3v3\AwsS3Adapter; |
9 | 8 | use League\Flysystem\Filesystem; |
10 | -use Aws\S3\S3Client; |
|
9 | +use Phalcon\DiInterface; |
|
10 | +use Phalcon\Di\ServiceProviderInterface; |
|
11 | 11 | |
12 | 12 | class FileSystemProvider implements ServiceProviderInterface |
13 | 13 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * Send a msg to Queue. |
21 | 21 | * |
22 | 22 | * @param string $name |
23 | - * @param array|object|mixed $msg |
|
23 | + * @param string $msg |
|
24 | 24 | * @return bool |
25 | 25 | */ |
26 | 26 | public static function send(string $name, $msg): bool |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Queue; |
6 | 6 | |
7 | -use PhpAmqpLib\Message\AMQPMessage; |
|
8 | 7 | use Phalcon\Di; |
8 | +use PhpAmqpLib\Message\AMQPMessage; |
|
9 | 9 | |
10 | 10 | class Queue |
11 | 11 | { |