@@ -103,7 +103,7 @@ |
||
| 103 | 103 | * by defautl in any kanvas app the key will be its classname |
| 104 | 104 | * |
| 105 | 105 | * @param string $key |
| 106 | - * @return void |
|
| 106 | + * @return NotificationType |
|
| 107 | 107 | */ |
| 108 | 108 | public static function getByKey(string $key): NotificationType |
| 109 | 109 | { |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Models; |
| 6 | 6 | |
| 7 | -use Phalcon\Di; |
|
| 8 | 7 | use Canvas\Exception\ModelException; |
| 8 | +use Phalcon\Di; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Class Resources |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | /** |
| 80 | 80 | * Check if it exist |
| 81 | 81 | * |
| 82 | - * @param Resources $resouce |
|
| 82 | + * @param Resources $resource |
|
| 83 | 83 | * @param string $accessName |
| 84 | 84 | * @return integer |
| 85 | 85 | */ |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | namespace Canvas\Models; |
| 6 | 6 | |
| 7 | 7 | use Phalcon\Di; |
| 8 | -use Canvas\Exception\ModelException; |
|
| 9 | 8 | |
| 10 | 9 | class ResourcesAccesses extends AbstractModel |
| 11 | 10 | { |
@@ -196,7 +196,6 @@ discard block |
||
| 196 | 196 | /** |
| 197 | 197 | * Get the entity by its name. |
| 198 | 198 | * |
| 199 | - * @param string $name |
|
| 200 | 199 | * @return Roles |
| 201 | 200 | */ |
| 202 | 201 | public static function getById(int $id): Roles |
@@ -321,7 +320,6 @@ discard block |
||
| 321 | 320 | |
| 322 | 321 | /** |
| 323 | 322 | * Check if role exists by its id. |
| 324 | - * @param integer $role_id |
|
| 325 | 323 | * @return Roles |
| 326 | 324 | */ |
| 327 | 325 | public static function existsById(int $id): Roles |
@@ -3,13 +3,13 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Models; |
| 5 | 5 | |
| 6 | +use Canvas\Exception\ModelException; |
|
| 6 | 7 | use Canvas\Exception\ServerErrorHttpException; |
| 8 | +use Phalcon\Acl\Role as AclRole; |
|
| 7 | 9 | use Phalcon\Di; |
| 8 | 10 | use Phalcon\Validation; |
| 9 | 11 | use Phalcon\Validation\Validator\PresenceOf; |
| 10 | 12 | use Phalcon\Validation\Validator\StringLength; |
| 11 | -use Phalcon\Acl\Role as AclRole; |
|
| 12 | -use Canvas\Exception\ModelException; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Class Roles. |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | namespace Canvas\Models; |
| 6 | 6 | |
| 7 | 7 | use Phalcon\Di; |
| 8 | -use Canvas\Exception\ModelException; |
|
| 9 | 8 | |
| 10 | 9 | /** |
| 11 | 10 | * Class Resources |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | 141 | * Get System Module by its model_name. |
| 142 | - * @param string $model_name |
|
| 142 | + * @param string $modelName |
|
| 143 | 143 | * @return SystemModules |
| 144 | 144 | */ |
| 145 | 145 | public static function getSystemModuleByModelName(string $modelName): SystemModules |
@@ -175,7 +175,6 @@ discard block |
||
| 175 | 175 | /** |
| 176 | 176 | * Get System Module by id. |
| 177 | 177 | * |
| 178 | - * @param int $id |
|
| 179 | 178 | * @return SystemModules |
| 180 | 179 | */ |
| 181 | 180 | public static function getBySlug(string $slug): SystemModules |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Models; |
| 5 | 5 | |
| 6 | -use Phalcon\Di; |
|
| 7 | 6 | use Canvas\Exception\ModelException; |
| 7 | +use Phalcon\Di; |
|
| 8 | 8 | |
| 9 | 9 | class SystemModules extends AbstractModel |
| 10 | 10 | { |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | /** |
| 87 | 87 | * Get the current company app |
| 88 | 88 | * |
| 89 | - * @return void |
|
| 89 | + * @return UserCompanyApps |
|
| 90 | 90 | */ |
| 91 | 91 | public static function getCurrentApp(): UserCompanyApps |
| 92 | 92 | { |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | /** |
| 317 | 317 | * Get the User key for redis. |
| 318 | 318 | * |
| 319 | - * @return string |
|
| 319 | + * @return integer |
|
| 320 | 320 | */ |
| 321 | 321 | public function getKey() : int |
| 322 | 322 | { |
@@ -370,7 +370,6 @@ discard block |
||
| 370 | 370 | /** |
| 371 | 371 | * Strat a free trial. |
| 372 | 372 | * |
| 373 | - * @param Users $user |
|
| 374 | 373 | * @return Subscription |
| 375 | 374 | */ |
| 376 | 375 | public function startFreeTrial() : Subscription |
@@ -542,7 +541,7 @@ discard block |
||
| 542 | 541 | /** |
| 543 | 542 | * Overwrite the relationship. |
| 544 | 543 | * |
| 545 | - * @return void |
|
| 544 | + * @return string|null |
|
| 546 | 545 | */ |
| 547 | 546 | public function getPhoto() |
| 548 | 547 | { |
@@ -552,7 +551,6 @@ discard block |
||
| 552 | 551 | /** |
| 553 | 552 | * Update the user current default company. |
| 554 | 553 | * |
| 555 | - * @param integer $companyId |
|
| 556 | 554 | * @return void |
| 557 | 555 | */ |
| 558 | 556 | public function switchDefaultCompanyByBranch(int $branchId): void |
@@ -3,27 +3,25 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Models; |
| 5 | 5 | |
| 6 | +use Baka\Auth\Models\Users as BakUser; |
|
| 7 | +use Baka\Database\Contracts\HashTableTrait; |
|
| 8 | +use Canvas\Auth\App as AppAuth; |
|
| 9 | +use Canvas\Contracts\Notifications\NotifiableTrait; |
|
| 10 | +use Canvas\Hashing\Password; |
|
| 11 | +use Canvas\Traits\EventManagerAwareTrait; |
|
| 12 | +use Canvas\Traits\FileSystemModelTrait; |
|
| 6 | 13 | use Canvas\Traits\PermissionsTrait; |
| 7 | 14 | use Canvas\Traits\SubscriptionPlanLimitTrait; |
| 8 | -use Phalcon\Cashier\Billable; |
|
| 9 | -use Canvas\Exception\ServerErrorHttpException; |
|
| 15 | +use Canvas\Validations\PasswordValidation; |
|
| 10 | 16 | use Carbon\Carbon; |
| 17 | +use Exception; |
|
| 18 | +use Phalcon\Cashier\Billable; |
|
| 19 | +use Phalcon\Di; |
|
| 20 | +use Phalcon\Security\Random; |
|
| 11 | 21 | use Phalcon\Validation; |
| 12 | 22 | use Phalcon\Validation\Validator\Email; |
| 13 | 23 | use Phalcon\Validation\Validator\PresenceOf; |
| 14 | -use Phalcon\Validation\Validator\Regex; |
|
| 15 | 24 | use Phalcon\Validation\Validator\Uniqueness; |
| 16 | -use Canvas\Traits\FileSystemModelTrait; |
|
| 17 | -use Phalcon\Security\Random; |
|
| 18 | -use Baka\Database\Contracts\HashTableTrait; |
|
| 19 | -use Canvas\Contracts\Notifications\NotifiableTrait; |
|
| 20 | -use Canvas\Traits\EventManagerAwareTrait; |
|
| 21 | -use Phalcon\Di; |
|
| 22 | -use Canvas\Auth\App as AppAuth; |
|
| 23 | -use Exception; |
|
| 24 | -use Canvas\Validations\PasswordValidation; |
|
| 25 | -use Baka\Auth\Models\Users as BakUser; |
|
| 26 | -use Canvas\Hashing\Password; |
|
| 27 | 25 | |
| 28 | 26 | /** |
| 29 | 27 | * Class Users. |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | /** |
| 172 | 172 | * Given the form request return a new user invite. |
| 173 | 173 | * |
| 174 | - * @param array $requets |
|
| 174 | + * @param array $request |
|
| 175 | 175 | * @return Users |
| 176 | 176 | */ |
| 177 | 177 | public function newUser(array $request): Users |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Models; |
| 5 | 5 | |
| 6 | -use Canvas\Traits\SubscriptionPlanLimitTrait; |
|
| 7 | 6 | use Canvas\Exception\ModelException; |
| 7 | +use Canvas\Traits\SubscriptionPlanLimitTrait; |
|
| 8 | 8 | use Phalcon\Di; |
| 9 | 9 | |
| 10 | 10 | class UsersInvite extends AbstractModel |