@@ -61,7 +61,7 @@ |
||
61 | 61 | * Given a file create it in the filesystem. |
62 | 62 | * |
63 | 63 | * @param File $file |
64 | - * @return bool |
|
64 | + * @return FileSystem |
|
65 | 65 | */ |
66 | 66 | public static function upload(File $file): FileSystem |
67 | 67 | { |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Filesystem; |
6 | 6 | |
7 | -use Phalcon\Http\Request\File; |
|
8 | -use Exception; |
|
9 | 7 | use Canvas\Models\FileSystem; |
8 | +use Exception; |
|
10 | 9 | use Phalcon\Di; |
10 | +use Phalcon\Http\Request\File; |
|
11 | 11 | |
12 | 12 | class Helper |
13 | 13 | { |
@@ -2,12 +2,10 @@ |
||
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 | -use Canvas\Models\Notifications; |
|
10 | -use Canvas\Models\SystemModules; |
|
11 | 9 | |
12 | 10 | class EmailNotifications implements HandlerInterface |
13 | 11 | { |
@@ -2,14 +2,10 @@ |
||
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 | -use Canvas\Notifications\Mobile\Apps; |
|
10 | -use Canvas\Notifications\Mobile\Mobile; |
|
11 | -use Canvas\Models\Notifications; |
|
12 | -use Canvas\Models\SystemModules; |
|
13 | 9 | |
14 | 10 | class PushNotifications implements HandlerInterface |
15 | 11 | { |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Hashing; |
6 | 6 | |
7 | -use Canvas\Models\Users; |
|
8 | - |
|
9 | 7 | class Password |
10 | 8 | { |
11 | 9 | /** |
@@ -9,10 +9,10 @@ |
||
9 | 9 | |
10 | 10 | namespace Canvas\Http; |
11 | 11 | |
12 | +use Exception; |
|
12 | 13 | use Phalcon\Http\Cookie; |
13 | 14 | use Phalcon\Http\Response as PhResponse; |
14 | 15 | use swoole_http_response; |
15 | -use Exception; |
|
16 | 16 | |
17 | 17 | class SwooleResponse extends Response |
18 | 18 | { |
@@ -21,8 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Dispatch the job with the given arguments. |
23 | 23 | * |
24 | - * @param mixed $mixed |
|
25 | - * @return void |
|
24 | + * @return PendingDispatch |
|
26 | 25 | */ |
27 | 26 | public static function dispatch(): PendingDispatch |
28 | 27 | { |
@@ -18,8 +18,6 @@ |
||
18 | 18 | * Event to run after a user signs up. |
19 | 19 | * |
20 | 20 | * @param Event $event |
21 | - * @param Users $user |
|
22 | - * @param boolean $isFirstSignup |
|
23 | 21 | * @return void |
24 | 22 | */ |
25 | 23 | public function afterSignup(Event $event, Companies $company): void |
@@ -4,17 +4,17 @@ |
||
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 | -use Canvas\Models\CompaniesBranches; |
|
11 | -use Canvas\Exception\ServerErrorHttpException; |
|
12 | 7 | use Baka\Auth\Models\UserCompanyApps; |
8 | +use Canvas\Exception\ServerErrorHttpException; |
|
13 | 9 | use Canvas\Http\Exception\InternalServerErrorException; |
14 | 10 | use Canvas\Models\AppsPlans; |
15 | -use Canvas\Models\CompaniesGroups; |
|
11 | +use Canvas\Models\Companies; |
|
16 | 12 | use Canvas\Models\CompaniesAssociations; |
13 | +use Canvas\Models\CompaniesBranches; |
|
14 | +use Canvas\Models\CompaniesGroups; |
|
15 | +use Canvas\Models\Users; |
|
17 | 16 | use Phalcon\Di; |
17 | +use Phalcon\Events\Event; |
|
18 | 18 | |
19 | 19 | class Company |
20 | 20 | { |
@@ -11,8 +11,6 @@ |
||
11 | 11 | class CustomFieldsMapper extends CustomMapper |
12 | 12 | { |
13 | 13 | /** |
14 | - * @param Canvas\Models\FileSystem $file |
|
15 | - * @param Canvas\Dto\Files $fileDto |
|
16 | 14 | * @return Files |
17 | 15 | */ |
18 | 16 | public function mapToObject($customField, $customFieldDto, array $context = []) |
@@ -12,7 +12,6 @@ |
||
12 | 12 | { |
13 | 13 | /** |
14 | 14 | * @param Baka\Database\CustomFilters\CustomFilters $filter |
15 | - * @param \Canvas\Dto\CustomFilter $filterSchema |
|
16 | 15 | * @return ListSchema |
17 | 16 | */ |
18 | 17 | public function mapToObject($filter, $customFilter, array $context = []) |