From ec8b9143e39fb9fc4bc2b22f2efa013b9f7afe3c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 11 Apr 2023 00:20:12 +0200 Subject: [PATCH] fix static analysis --- .github/user_feature_request.md | 3 +++ Models/AttributeMapper.php | 3 +++ Models/AttributeTypeL11nMapper.php | 5 ++++- Models/AttributeTypeMapper.php | 3 +++ Models/AttributeValueL11nMapper.php | 5 ++++- Models/AttributeValueMapper.php | 3 +++ 6 files changed, 20 insertions(+), 2 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/AttributeMapper.php b/Models/AttributeMapper.php index 52e5d20..1f372e9 100755 --- a/Models/AttributeMapper.php +++ b/Models/AttributeMapper.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 Attribute + * @extends DataMapperFactory */ final class AttributeMapper extends DataMapperFactory { diff --git a/Models/AttributeTypeL11nMapper.php b/Models/AttributeTypeL11nMapper.php index 1f45111..6bdb92e 100755 --- a/Models/AttributeTypeL11nMapper.php +++ b/Models/AttributeTypeL11nMapper.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 AttributeTypeL11nMapper extends DataMapperFactory { @@ -59,7 +62,7 @@ final class AttributeTypeL11nMapper 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/AttributeTypeMapper.php b/Models/AttributeTypeMapper.php index 6f85261..9c09020 100755 --- a/Models/AttributeTypeMapper.php +++ b/Models/AttributeTypeMapper.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 AttributeType + * @extends DataMapperFactory */ final class AttributeTypeMapper extends DataMapperFactory { diff --git a/Models/AttributeValueL11nMapper.php b/Models/AttributeValueL11nMapper.php index 2208130..e3baf14 100755 --- a/Models/AttributeValueL11nMapper.php +++ b/Models/AttributeValueL11nMapper.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 AttributeValueL11nMapper extends DataMapperFactory { @@ -59,7 +62,7 @@ final class AttributeValueL11nMapper 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/AttributeValueMapper.php b/Models/AttributeValueMapper.php index f4a6815..6cae408 100755 --- a/Models/AttributeValueMapper.php +++ b/Models/AttributeValueMapper.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 AttributeValue + * @extends DataMapperFactory */ final class AttributeValueMapper extends DataMapperFactory {