@@ -518,7 +518,7 @@ |
||
| 518 | 518 | /** |
| 519 | 519 | * Overwrite the relationship. |
| 520 | 520 | * |
| 521 | - * @return void |
|
| 521 | + * @return string|null |
|
| 522 | 522 | */ |
| 523 | 523 | public function getLogo() |
| 524 | 524 | { |
@@ -3,18 +3,18 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Models; |
| 5 | 5 | |
| 6 | -use Phalcon\Validation; |
|
| 7 | -use Phalcon\Validation\Validator\PresenceOf; |
|
| 8 | -use Canvas\Exception\ServerErrorHttpException; |
|
| 9 | -use Exception; |
|
| 10 | -use Carbon\Carbon; |
|
| 11 | -use Baka\Database\Contracts\HashTableTrait; |
|
| 12 | -use Baka\Blameable\BlameableTrait; |
|
| 13 | -use Canvas\Traits\UsersAssociatedTrait; |
|
| 14 | -use Canvas\Traits\FileSystemModelTrait; |
|
| 15 | 6 | use Baka\Blameable\Blameable; |
| 7 | +use Baka\Blameable\BlameableTrait; |
|
| 8 | +use Baka\Database\Contracts\HashTableTrait; |
|
| 9 | +use Canvas\Exception\ServerErrorHttpException; |
|
| 16 | 10 | use Canvas\Traits\EventManagerAwareTrait; |
| 11 | +use Canvas\Traits\FileSystemModelTrait; |
|
| 12 | +use Canvas\Traits\UsersAssociatedTrait; |
|
| 13 | +use Carbon\Carbon; |
|
| 14 | +use Exception; |
|
| 17 | 15 | use Phalcon\Di; |
| 16 | +use Phalcon\Validation; |
|
| 17 | +use Phalcon\Validation\Validator\PresenceOf; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Class Companies. |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | use Baka\Database\Contracts\HashTableTrait; |
| 8 | 8 | use Canvas\Exception\ModelException; |
| 9 | -use Phalcon\Di; |
|
| 10 | 9 | use Exception; |
| 10 | +use Phalcon\Di; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Classs for FileSystem. |
@@ -132,7 +132,6 @@ discard block |
||
| 132 | 132 | * Get a filesystem entities from this system modules. |
| 133 | 133 | * |
| 134 | 134 | * @param integer $id |
| 135 | - * @param SystemModules $systemModules |
|
| 136 | 135 | * @return FileSystemEntities |
| 137 | 136 | */ |
| 138 | 137 | public static function getById(int $id): FileSystemEntities |
@@ -157,7 +156,6 @@ discard block |
||
| 157 | 156 | * Get a filesystem entities from this system modules. |
| 158 | 157 | * |
| 159 | 158 | * @param integer $id |
| 160 | - * @param SystemModules $systemModules |
|
| 161 | 159 | * @return FileSystemEntities |
| 162 | 160 | */ |
| 163 | 161 | public static function getByEntityId(int $id): FileSystemEntities |
@@ -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 | use Phalcon\Validation; |
| 9 | 9 | use Phalcon\Validation\Validator\Uniqueness; |
| 10 | 10 | |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | * Mark as Read all the notification from a user. |
| 129 | 129 | * |
| 130 | 130 | * @param Users $user |
| 131 | - * @return void |
|
| 131 | + * @return boolean |
|
| 132 | 132 | */ |
| 133 | 133 | public static function markAsRead(Users $user): bool |
| 134 | 134 | { |
@@ -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 |