@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas; |
| 6 | 6 | |
| 7 | -use Phalcon\Validation as PhalconValidation; |
|
| 8 | 7 | use Canvas\Exception\UnprocessableRequestException; |
| 8 | +use Phalcon\Validation as PhalconValidation; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Class Validation. |
@@ -4,19 +4,19 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Api\Controllers; |
| 6 | 6 | |
| 7 | -use Canvas\Models\UsersInvite; |
|
| 8 | -use Canvas\Models\Users; |
|
| 9 | -use Canvas\Models\Roles; |
|
| 10 | -use Phalcon\Security\Random; |
|
| 11 | -use Phalcon\Validation\Validator\PresenceOf; |
|
| 12 | -use Phalcon\Validation\Validator\StringLength; |
|
| 13 | 7 | use Canvas\Exception\NotFoundHttpException; |
| 14 | -use Phalcon\Http\Response; |
|
| 15 | -use Exception; |
|
| 16 | 8 | use Canvas\Http\Exception\UnprocessableEntityException; |
| 17 | -use Canvas\Traits\AuthTrait; |
|
| 9 | +use Canvas\Models\Roles; |
|
| 10 | +use Canvas\Models\Users; |
|
| 11 | +use Canvas\Models\UsersInvite; |
|
| 18 | 12 | use Canvas\Notifications\Invitation; |
| 13 | +use Canvas\Traits\AuthTrait; |
|
| 19 | 14 | use Canvas\Validation as CanvasValidation; |
| 15 | +use Exception; |
|
| 16 | +use Phalcon\Http\Response; |
|
| 17 | +use Phalcon\Security\Random; |
|
| 18 | +use Phalcon\Validation\Validator\PresenceOf; |
|
| 19 | +use Phalcon\Validation\Validator\StringLength; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Class LanguagesController. |
@@ -4,11 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Middleware; |
| 6 | 6 | |
| 7 | -use Phalcon\Mvc\Micro; |
|
| 8 | 7 | use Baka\Auth\Models\Sessions; |
| 9 | -use Canvas\Models\Users; |
|
| 10 | 8 | use Canvas\Constants\Flags; |
| 11 | 9 | use Canvas\Http\Exception\UnauthorizedException; |
| 10 | +use Canvas\Models\Users; |
|
| 11 | +use Phalcon\Mvc\Micro; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Class AuthenticationMiddleware. |
@@ -4,9 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Middleware; |
| 6 | 6 | |
| 7 | -use Phalcon\Mvc\Micro; |
|
| 8 | 7 | use Canvas\Http\Exception\UnauthorizedException; |
| 9 | 8 | use Canvas\Models\Subscription; |
| 9 | +use Phalcon\Mvc\Micro; |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Class AuthenticationMiddleware. |
@@ -266,7 +266,7 @@ |
||
| 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 | { |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Canvas\Models; |
| 4 | 4 | |
| 5 | -use Phalcon\Cashier\Subscription as PhalconSubscription; |
|
| 6 | 5 | use Canvas\Http\Exception\InternalServerErrorException; |
| 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. |
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Api\Controllers; |
| 6 | 6 | |
| 7 | +use Canvas\Http\Exception\InternalServerErrorException; |
|
| 7 | 8 | use Exception; |
| 8 | 9 | use PDOException; |
| 9 | 10 | use Phalcon\Http\Response; |
| 10 | -use Canvas\Http\Exception\InternalServerErrorException; |
|
| 11 | +use PhpAmqpLib\Exception\AMQPIOException; |
|
| 11 | 12 | use RedisException; |
| 12 | -use PhpAmqpLib\Exception\AMQPIOException ; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Class IndexController. |
@@ -5,13 +5,13 @@ |
||
| 5 | 5 | namespace Canvas\Api\Controllers; |
| 6 | 6 | |
| 7 | 7 | use Canvas\Http\Exception\NotFoundException; |
| 8 | -use Phalcon\Cashier\Traits\StripeWebhookHandlersTrait; |
|
| 9 | -use Phalcon\Http\Response; |
|
| 10 | -use Canvas\Models\Users; |
|
| 11 | -use Canvas\Models\Subscription; |
|
| 12 | 8 | use Canvas\Models\CompaniesSettings; |
| 9 | +use Canvas\Models\Subscription; |
|
| 10 | +use Canvas\Models\Users; |
|
| 13 | 11 | use Canvas\Template; |
| 12 | +use Phalcon\Cashier\Traits\StripeWebhookHandlersTrait; |
|
| 14 | 13 | use Phalcon\Di; |
| 14 | +use Phalcon\Http\Response; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Class PaymentsController. |
@@ -4,17 +4,14 @@ |
||
| 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; |
|
| 10 | -use Canvas\Exception\UnprocessableEntityHttpException; |
|
| 11 | -use Canvas\Models\FileSystem; |
|
| 12 | 7 | use Canvas\Filesystem\Helper; |
| 13 | -use Baka\Http\QueryParser; |
|
| 14 | 8 | use Canvas\Http\Exception\UnprocessableEntityException; |
| 15 | -use Canvas\Models\FileSystemSettings; |
|
| 16 | -use Canvas\Models\SystemModules; |
|
| 9 | +use Canvas\Models\FileSystem; |
|
| 17 | 10 | use Canvas\Models\FileSystemEntities; |
| 11 | +use Canvas\Models\FileSystemSettings; |
|
| 12 | +use Phalcon\Http\Response; |
|
| 13 | +use Phalcon\Validation; |
|
| 14 | +use Phalcon\Validation\Validator\File as FileValidator; |
|
| 18 | 15 | |
| 19 | 16 | /** |
| 20 | 17 | * Trait ResponseTrait. |
@@ -4,9 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Traits; |
| 6 | 6 | |
| 7 | +use Canvas\Http\Exception\InternalServerErrorException; |
|
| 7 | 8 | use Canvas\Models\Roles; |
| 8 | 9 | use Canvas\Models\UserRoles; |
| 9 | -use Canvas\Http\Exception\InternalServerErrorException; |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Trait FractalTrait. |