@@ -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 | */ |
@@ -4,16 +4,15 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Traits; |
| 6 | 6 | |
| 7 | -use Phalcon\Http\Response; |
|
| 8 | -use Phalcon\Validation; |
|
| 9 | -use Phalcon\Validation\Validator\File as FileValidator; |
|
| 7 | +use Baka\Http\QueryParser; |
|
| 10 | 8 | use Canvas\Exception\UnprocessableEntityHttpException; |
| 11 | -use Canvas\Models\FileSystem; |
|
| 12 | 9 | use Canvas\Filesystem\Helper; |
| 13 | -use Baka\Http\QueryParser; |
|
| 14 | -use Canvas\Models\FileSystemSettings; |
|
| 15 | -use Canvas\Models\SystemModules; |
|
| 10 | +use Canvas\Models\FileSystem; |
|
| 16 | 11 | use Canvas\Models\FileSystemEntities; |
| 12 | +use Canvas\Models\FileSystemSettings; |
|
| 13 | +use Phalcon\Http\Response; |
|
| 14 | +use Phalcon\Validation; |
|
| 15 | +use Phalcon\Validation\Validator\File as FileValidator; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * Trait ResponseTrait. |
@@ -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 | } |
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Traits; |
| 6 | 6 | |
| 7 | +use Canvas\Exception\ServerErrorHttpException; |
|
| 8 | +use Canvas\Exception\SubscriptionPlanLimitException; |
|
| 7 | 9 | use Canvas\Models\Subscription; |
| 8 | 10 | use Canvas\Models\UserCompanyAppsActivities; |
| 9 | -use Canvas\Exception\SubscriptionPlanLimitException; |
|
| 10 | -use Canvas\Exception\ServerErrorHttpException; |
|
| 11 | -use ReflectionClass; |
|
| 12 | 11 | use Phalcon\Di; |
| 12 | +use ReflectionClass; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Trait ResponseTrait. |
@@ -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 | { |
@@ -4,17 +4,17 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Api\Controllers; |
| 6 | 6 | |
| 7 | -use Canvas\Models\AppsPlans; |
|
| 8 | -use Canvas\Exception\UnauthorizedHttpException; |
|
| 9 | 7 | use Canvas\Exception\NotFoundHttpException; |
| 10 | -use Stripe\Token as StripeToken; |
|
| 11 | -use Phalcon\Http\Response; |
|
| 12 | -use Stripe\Customer as StripeCustomer; |
|
| 13 | -use Phalcon\Validation\Validator\PresenceOf; |
|
| 8 | +use Canvas\Exception\UnauthorizedHttpException; |
|
| 14 | 9 | use Canvas\Exception\UnprocessableEntityHttpException; |
| 10 | +use Canvas\Models\AppsPlans; |
|
| 15 | 11 | use Canvas\Models\Subscription as CanvasSubscription; |
| 16 | -use Phalcon\Cashier\Subscription; |
|
| 17 | 12 | use Canvas\Models\UserCompanyApps; |
| 13 | +use Phalcon\Cashier\Subscription; |
|
| 14 | +use Phalcon\Http\Response; |
|
| 15 | +use Phalcon\Validation\Validator\PresenceOf; |
|
| 16 | +use Stripe\Customer as StripeCustomer; |
|
| 17 | +use Stripe\Token as StripeToken; |
|
| 18 | 18 | use function Canvas\Core\paymentGatewayIsActive; |
| 19 | 19 | use Canvas\Validation as CanvasValidation; |
| 20 | 20 | |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Canvas\Models; |
| 4 | 4 | |
| 5 | -use Phalcon\Cashier\Subscription as PhalconSubscription; |
|
| 6 | 5 | use Canvas\Exception\ServerErrorHttpException; |
| 7 | -use Phalcon\Di; |
|
| 8 | 6 | use Carbon\Carbon; |
| 7 | +use Phalcon\Cashier\Subscription as PhalconSubscription; |
|
| 8 | +use Phalcon\Di; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Trait Subscription. |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | /** |
| 189 | 189 | * Get the active subscription for this company app. |
| 190 | 190 | * |
| 191 | - * @return void |
|
| 191 | + * @return Subscription |
|
| 192 | 192 | */ |
| 193 | 193 | public static function getActiveForThisApp() : Subscription |
| 194 | 194 | { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | /** |
| 267 | 267 | * Given a not active subscription activate it. |
| 268 | 268 | * |
| 269 | - * @return void |
|
| 269 | + * @return boolean |
|
| 270 | 270 | */ |
| 271 | 271 | public function activate(): bool |
| 272 | 272 | { |