@@ -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 | { |
@@ -4,9 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Traits; |
| 6 | 6 | |
| 7 | -use Canvas\Models\Users; |
|
| 8 | 7 | use Baka\Auth\Models\Sessions; |
| 9 | -use Canvas\Exception\NotFoundException; |
|
| 8 | +use Canvas\Models\Users; |
|
| 10 | 9 | |
| 11 | 10 | /** |
| 12 | 11 | * Trait ResponseTrait. |
@@ -25,7 +25,6 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * set event manager. |
| 27 | 27 | * |
| 28 | - * @param EventsManager $eventsManager |
|
| 29 | 28 | */ |
| 30 | 29 | public function setEventsManager(EventsManager $manager) |
| 31 | 30 | { |
@@ -59,7 +58,7 @@ discard block |
||
| 59 | 58 | * |
| 60 | 59 | * @param string $event |
| 61 | 60 | * @param object $source |
| 62 | - * @param mixed $data |
|
| 61 | + * @param boolean $data |
|
| 63 | 62 | * @param boolean $cancelable |
| 64 | 63 | * |
| 65 | 64 | */ |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * call on the after saves |
| 38 | 38 | * |
| 39 | - * @return void |
|
| 39 | + * @return boolean |
|
| 40 | 40 | */ |
| 41 | 41 | protected function associateFileSystem(): bool |
| 42 | 42 | { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | * ];. |
| 172 | 172 | * |
| 173 | 173 | * @param array $files |
| 174 | - * @return void |
|
| 174 | + * @return boolean |
|
| 175 | 175 | */ |
| 176 | 176 | public function attach(array $files): bool |
| 177 | 177 | { |
@@ -290,7 +290,6 @@ discard block |
||
| 290 | 290 | * when a company has over 1k images |
| 291 | 291 | * |
| 292 | 292 | * @deprecated version 0.2 |
| 293 | - * @param string $name |
|
| 294 | 293 | * @return void |
| 295 | 294 | */ |
| 296 | 295 | public function getAttachmentByName(string $fieldName) |
@@ -338,7 +337,6 @@ discard block |
||
| 338 | 337 | /** |
| 339 | 338 | * Given this entity define a new path. |
| 340 | 339 | * |
| 341 | - * @param string $path |
|
| 342 | 340 | * @return string |
| 343 | 341 | */ |
| 344 | 342 | protected function filesNewAttachedPath(): ?string |
@@ -4,15 +4,14 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Traits; |
| 6 | 6 | |
| 7 | -use Canvas\Models\SystemModules; |
|
| 8 | -use Canvas\Models\FileSystem; |
|
| 9 | -use RuntimeException; |
|
| 10 | -use Phalcon\Mvc\Model\Resultset\Simple; |
|
| 11 | -use Canvas\Models\FileSystemEntities; |
|
| 12 | 7 | use Canvas\Dto\Files; |
| 13 | 8 | use Canvas\Mapper\FileMapper; |
| 9 | +use Canvas\Models\FileSystem; |
|
| 10 | +use Canvas\Models\FileSystemEntities; |
|
| 11 | +use Canvas\Models\SystemModules; |
|
| 14 | 12 | use Phalcon\Di; |
| 15 | 13 | use Phalcon\Mvc\Model\ResultsetInterface; |
| 14 | +use RuntimeException; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * Trait ResponseTrait. |
@@ -46,5 +46,8 @@ |
||
| 46 | 46 | return false; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $header |
|
| 51 | + */ |
|
| 49 | 52 | abstract public function getHeader($header); |
| 50 | 53 | } |