@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * @param SystemModules $systeModel |
| 20 | 20 | * @param \Canvas\Dto\ListSchema $listSchema |
| 21 | - * @return ListSchema |
|
| 21 | + * @return \Canvas\Dto\ListSchema |
|
| 22 | 22 | */ |
| 23 | 23 | public function mapToObject($systeModel, $listSchema, array $context = []) |
| 24 | 24 | { |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | use AutoMapperPlus\CustomMapper\CustomMapper; |
| 8 | 8 | use Canvas\Models\SystemModules; |
| 9 | -use ReflectionClass; |
|
| 10 | 9 | use Exception; |
| 10 | +use ReflectionClass; |
|
| 11 | 11 | |
| 12 | 12 | // You can either extend the CustomMapper, or just implement the MapperInterface |
| 13 | 13 | // directly. |
@@ -5,10 +5,10 @@ |
||
| 5 | 5 | namespace Canvas\Mapper; |
| 6 | 6 | |
| 7 | 7 | use AutoMapperPlus\CustomMapper\CustomMapper; |
| 8 | -use Canvas\Models\AccessList; |
|
| 9 | -use Phalcon\Di; |
|
| 10 | 8 | use Canvas\Contracts\Mapper\RelationshipTrait; |
| 9 | +use Canvas\Models\AccessList; |
|
| 11 | 10 | use Canvas\Models\Users; |
| 11 | +use Phalcon\Di; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Class UserMapper. |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | * @param Roles $role |
| 113 | 113 | * @param string $resourceName |
| 114 | 114 | * @param string $accessName |
| 115 | - * @return integer |
|
| 115 | + * @return AccessList |
|
| 116 | 116 | */ |
| 117 | 117 | public static function getBy(Roles $role, string $resourceName, string $accessName) : AccessList |
| 118 | 118 | { |
@@ -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 | class AccessList extends AbstractModel |
| 11 | 11 | { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace Canvas\Models; |
| 5 | 5 | |
| 6 | -use Canvas\Traits\UsersAssociatedTrait; |
|
| 7 | 6 | use Baka\Database\Contracts\HashTableTrait; |
| 7 | +use Canvas\Traits\UsersAssociatedTrait; |
|
| 8 | 8 | |
| 9 | 9 | class Apps extends \Baka\Database\Apps |
| 10 | 10 | { |
@@ -160,7 +160,6 @@ |
||
| 160 | 160 | * Get the value of the settins by it key |
| 161 | 161 | * |
| 162 | 162 | * @param string $key |
| 163 | - * @param string $value |
|
| 164 | 163 | */ |
| 165 | 164 | public function get(string $key) : ?string |
| 166 | 165 | { |
@@ -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,19 +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; |
|
| 16 | 9 | use Canvas\Http\Exception\InternalServerErrorException; |
| 17 | 10 | use Canvas\Traits\EventManagerAwareTrait; |
| 11 | +use Canvas\Traits\FileSystemModelTrait; |
|
| 12 | +use Canvas\Traits\UsersAssociatedTrait; |
|
| 13 | +use Carbon\Carbon; |
|
| 14 | +use Exception; |
|
| 18 | 15 | use Phalcon\Di; |
| 16 | +use Phalcon\Validation; |
|
| 17 | +use Phalcon\Validation\Validator\PresenceOf; |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 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 | |