From b0d89e9afc1f142d5d6c19c03bcc0ed8146092c3 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/CollectionMapper.php | 2 +- Models/MediaContentMapper.php | 5 ++++- Models/MediaMapper.php | 5 ++++- Models/MediaTypeL11nMapper.php | 5 ++++- Models/MediaTypeMapper.php | 5 ++++- 6 files changed, 20 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/CollectionMapper.php b/Models/CollectionMapper.php index 1be6e18..7d9c0c0 100755 --- a/Models/CollectionMapper.php +++ b/Models/CollectionMapper.php @@ -45,7 +45,7 @@ final class CollectionMapper extends MediaMapper /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = Collection::class; diff --git a/Models/MediaContentMapper.php b/Models/MediaContentMapper.php index 5ab6225..979f500 100755 --- a/Models/MediaContentMapper.php +++ b/Models/MediaContentMapper.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 MediaContent + * @extends DataMapperFactory */ class MediaContentMapper extends DataMapperFactory { @@ -40,7 +43,7 @@ class MediaContentMapper extends DataMapperFactory /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = MediaContent::class; diff --git a/Models/MediaMapper.php b/Models/MediaMapper.php index e6a6088..ba61f52 100755 --- a/Models/MediaMapper.php +++ b/Models/MediaMapper.php @@ -26,6 +26,9 @@ use phpOMS\DataStorage\Database\Mapper\ReadMapper; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @template T of Media + * @extends DataMapperFactory */ class MediaMapper extends DataMapperFactory { @@ -113,7 +116,7 @@ class MediaMapper extends DataMapperFactory /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = Media::class; diff --git a/Models/MediaTypeL11nMapper.php b/Models/MediaTypeL11nMapper.php index 5d0652c..8dc5031 100755 --- a/Models/MediaTypeL11nMapper.php +++ b/Models/MediaTypeL11nMapper.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 MediaTypeL11nMapper extends DataMapperFactory { @@ -59,7 +62,7 @@ final class MediaTypeL11nMapper 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/MediaTypeMapper.php b/Models/MediaTypeMapper.php index 73664e3..b58ffa7 100755 --- a/Models/MediaTypeMapper.php +++ b/Models/MediaTypeMapper.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 MediaType + * @extends DataMapperFactory */ final class MediaTypeMapper extends DataMapperFactory { @@ -57,7 +60,7 @@ final class MediaTypeMapper extends DataMapperFactory /** * Model to use by the mapper. * - * @var class-string + * @var class-string * @since 1.0.0 */ public const MODEL = MediaType::class;