@@ -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,13 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Traits; |
| 6 | 6 | |
| 7 | -use Canvas\Models\SystemModules; |
|
| 8 | -use Canvas\Models\FileSystem; |
|
| 9 | -use RuntimeException; |
|
| 10 | -use Canvas\Models\FileSystemEntities; |
|
| 11 | 7 | use Canvas\Dto\Files; |
| 12 | 8 | use Canvas\Mapper\FileMapper; |
| 9 | +use Canvas\Models\FileSystem; |
|
| 10 | +use Canvas\Models\FileSystemEntities; |
|
| 11 | +use Canvas\Models\SystemModules; |
|
| 13 | 12 | use Phalcon\Mvc\Model\ResultsetInterface; |
| 13 | +use RuntimeException; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * 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 | } |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Validations; |
| 5 | 5 | |
| 6 | -use Phalcon\Validation; |
|
| 7 | -use Phalcon\Validation\Validator\PresenceOf; |
|
| 6 | +use Canvas\Validation as CanvasValidation; |
|
| 8 | 7 | use Phalcon\Validation\Validator\Confirmation; |
| 8 | +use Phalcon\Validation\Validator\PresenceOf; |
|
| 9 | 9 | use Phalcon\Validation\Validator\StringLength; |
| 10 | -use Exception; |
|
| 11 | -use Canvas\Validation as CanvasValidation; |
|
| 12 | 10 | |
| 13 | 11 | class PasswordValidation |
| 14 | 12 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | /** |
| 44 | 44 | * Handle the object's destruction. |
| 45 | 45 | * |
| 46 | - * @return void |
|
| 46 | + * @return boolean |
|
| 47 | 47 | */ |
| 48 | 48 | public function __destruct() |
| 49 | 49 | { |
@@ -3,9 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Models; |
| 5 | 5 | |
| 6 | -use Phalcon\Validation; |
|
| 7 | -use Phalcon\Validation\Validator\PresenceOf; |
|
| 8 | - |
|
| 9 | 6 | /** |
| 10 | 7 | * Class CompanyBranches. |
| 11 | 8 | * |
@@ -12,8 +12,6 @@ |
||
| 12 | 12 | class CompaniesGroupsMapper extends CustomMapper |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @param Baka\Database\CustomFilters\CustomFilters $filter |
|
| 16 | - * @param \Canvas\Dto\CustomFilter $filterSchema |
|
| 17 | 15 | * @return ListSchema |
| 18 | 16 | */ |
| 19 | 17 | public function mapToObject($companiesGroup, $companiesGroupDto, array $context = []) |
@@ -3,9 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Models; |
| 5 | 5 | |
| 6 | -use Phalcon\Validation; |
|
| 7 | -use Phalcon\Validation\Validator\PresenceOf; |
|
| 8 | - |
|
| 9 | 6 | /** |
| 10 | 7 | * Class CompanyBranches. |
| 11 | 8 | * |
@@ -34,8 +34,6 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * Constructor setup info for Pusher |
| 36 | 36 | * |
| 37 | - * @param string $channel |
|
| 38 | - * @param string $event |
|
| 39 | 37 | * @param array $params |
| 40 | 38 | */ |
| 41 | 39 | public function __construct(string $appName, string $appDescription, array $params) |
@@ -48,7 +46,7 @@ discard block |
||
| 48 | 46 | /** |
| 49 | 47 | * Handle the pusher request |
| 50 | 48 | * @todo New Apps can't be created, the system does not take into account the creation of other apps apart from the default. Need to change this |
| 51 | - * @return void |
|
| 49 | + * @return boolean |
|
| 52 | 50 | */ |
| 53 | 51 | public function handle() |
| 54 | 52 | { |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Canvas\Contracts\Queue\QueueableJobInterfase; |
| 6 | 6 | use Canvas\Jobs\Job; |
| 7 | -use Phalcon\Di; |
|
| 8 | 7 | use Canvas\Models\Apps as CanvasApps; |
| 8 | +use Phalcon\Di; |
|
| 9 | 9 | use Phalcon\Security\Random; |
| 10 | 10 | |
| 11 | 11 | class Apps extends Job implements QueueableJobInterfase |