From 4b4c2e9c0bbdde27f56a3c197fdcaef18e72933a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 11 Apr 2023 00:20:13 +0200 Subject: [PATCH] fix static analysis --- .github/user_feature_request.md | 3 +++ Models/DepartmentMapper.php | 5 ++++- Models/PositionMapper.php | 5 ++++- Models/UnitAttributeMapper.php | 3 +++ Models/UnitAttributeTypeL11nMapper.php | 5 ++++- Models/UnitAttributeTypeMapper.php | 3 +++ Models/UnitAttributeValueL11nMapper.php | 5 ++++- Models/UnitAttributeValueMapper.php | 3 +++ Models/UnitMapper.php | 5 ++++- 9 files changed, 32 insertions(+), 5 deletions(-) diff --git a/.github/user_feature_request.md b/.github/user_feature_request.md index 6eb8ddc..c9595e8 100755 --- a/.github/user_feature_request.md +++ b/.github/user_feature_request.md @@ -8,11 +8,14 @@ assignees: '' --- # What is the feature you request + * A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] * A clear and concise description of what you want to happen. # Alternatives + A clear and concise description of any alternative solutions or features you've considered. # Additional Information + Add any other context or screenshots about the feature request here. diff --git a/Models/DepartmentMapper.php b/Models/DepartmentMapper.php index c2d037f..2b1fd32 100755 --- a/Models/DepartmentMapper.php +++ b/Models/DepartmentMapper.php @@ -23,6 +23,9 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of Department + * @extends DataMapperFactory */ final class DepartmentMapper extends DataMapperFactory { @@ -62,7 +65,7 @@ final class DepartmentMapper extends DataMapperFactory /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = Department::class; diff --git a/Models/PositionMapper.php b/Models/PositionMapper.php index 2733790..268c50f 100755 --- a/Models/PositionMapper.php +++ b/Models/PositionMapper.php @@ -23,6 +23,9 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of Position + * @extends DataMapperFactory */ final class PositionMapper extends DataMapperFactory { @@ -62,7 +65,7 @@ final class PositionMapper extends DataMapperFactory /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = Position::class; diff --git a/Models/UnitAttributeMapper.php b/Models/UnitAttributeMapper.php index 3f7ee35..8822e7c 100755 --- a/Models/UnitAttributeMapper.php +++ b/Models/UnitAttributeMapper.php @@ -23,6 +23,9 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of UnitAttribute + * @extends DataMapperFactory */ final class UnitAttributeMapper extends DataMapperFactory { diff --git a/Models/UnitAttributeTypeL11nMapper.php b/Models/UnitAttributeTypeL11nMapper.php index 2a160be..5dbf33d 100755 --- a/Models/UnitAttributeTypeL11nMapper.php +++ b/Models/UnitAttributeTypeL11nMapper.php @@ -24,6 +24,9 @@ use phpOMS\Localization\BaseStringL11n; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of BaseStringL11n + * @extends DataMapperFactory */ final class UnitAttributeTypeL11nMapper extends DataMapperFactory { @@ -59,7 +62,7 @@ final class UnitAttributeTypeL11nMapper extends DataMapperFactory /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = BaseStringL11n::class; diff --git a/Models/UnitAttributeTypeMapper.php b/Models/UnitAttributeTypeMapper.php index 533c339..c045bfc 100755 --- a/Models/UnitAttributeTypeMapper.php +++ b/Models/UnitAttributeTypeMapper.php @@ -23,6 +23,9 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of UnitAttributeType + * @extends DataMapperFactory */ final class UnitAttributeTypeMapper extends DataMapperFactory { diff --git a/Models/UnitAttributeValueL11nMapper.php b/Models/UnitAttributeValueL11nMapper.php index 9c2819c..9c7d00b 100755 --- a/Models/UnitAttributeValueL11nMapper.php +++ b/Models/UnitAttributeValueL11nMapper.php @@ -24,6 +24,9 @@ use phpOMS\Localization\BaseStringL11n; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of BaseStringL11n + * @extends DataMapperFactory */ final class UnitAttributeValueL11nMapper extends DataMapperFactory { @@ -59,7 +62,7 @@ final class UnitAttributeValueL11nMapper extends DataMapperFactory /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = BaseStringL11n::class; diff --git a/Models/UnitAttributeValueMapper.php b/Models/UnitAttributeValueMapper.php index 22f4cf1..69245f5 100755 --- a/Models/UnitAttributeValueMapper.php +++ b/Models/UnitAttributeValueMapper.php @@ -23,6 +23,9 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of UnitAttributeValue + * @extends DataMapperFactory */ final class UnitAttributeValueMapper extends DataMapperFactory { diff --git a/Models/UnitMapper.php b/Models/UnitMapper.php index 53dd831..195719a 100755 --- a/Models/UnitMapper.php +++ b/Models/UnitMapper.php @@ -25,6 +25,9 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of Unit + * @extends DataMapperFactory */ final class UnitMapper extends DataMapperFactory { @@ -100,7 +103,7 @@ final class UnitMapper extends DataMapperFactory /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = Unit::class;