fix static analysis

This commit is contained in:
Dennis Eichhorn 2023-04-11 00:20:12 +02:00
parent 5d05b4e242
commit e2e89813d2
11 changed files with 39 additions and 7 deletions

View File

@ -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.

View File

@ -24,6 +24,9 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
* @license OMS License 2.0
* @link https://jingga.app
* @since 1.0.0
*
* @template T of Attribte
* @extends DataMapperFactory<T>
*/
final class ItemAttributeMapper extends DataMapperFactory
{
@ -60,7 +63,7 @@ final class ItemAttributeMapper extends DataMapperFactory
/**
* Model to use by the mapper.
*
* @var class-string
* @var class-string<T>
* @since 1.0.0
*/
public const MODEL = Attribute::class;

View File

@ -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<T>
*/
final class ItemAttributeTypeL11nMapper extends DataMapperFactory
{
@ -59,7 +62,7 @@ final class ItemAttributeTypeL11nMapper extends DataMapperFactory
/**
* Model to use by the mapper.
*
* @var class-string
* @var class-string<T>
* @since 1.0.0
*/
public const MODEL = BaseStringL11n::class;

View File

@ -24,6 +24,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<T>
*/
final class ItemAttributeTypeMapper extends DataMapperFactory
{
@ -68,7 +71,7 @@ final class ItemAttributeTypeMapper extends DataMapperFactory
/**
* Model to use by the mapper.
*
* @var class-string
* @var class-string<T>
* @since 1.0.0
*/
public const MODEL = AttributeType::class;

View File

@ -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<T>
*/
final class ItemAttributeValueL11nMapper extends DataMapperFactory
{
@ -59,7 +62,7 @@ final class ItemAttributeValueL11nMapper extends DataMapperFactory
/**
* Model to use by the mapper.
*
* @var class-string
* @var class-string<T>
* @since 1.0.0
*/
public const MODEL = BaseStringL11n::class;

View File

@ -24,6 +24,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<T>
*/
final class ItemAttributeValueMapper extends DataMapperFactory
{
@ -63,7 +66,7 @@ final class ItemAttributeValueMapper extends DataMapperFactory
/**
* Model to use by the mapper.
*
* @var class-string
* @var class-string<T>
* @since 1.0.0
*/
public const MODEL = AttributeValue::class;

View File

@ -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 BaseStringL11n
* @extends DataMapperFactory<T>
*/
final class ItemL11nMapper extends DataMapperFactory
{

View File

@ -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 ItemL11nType
* @extends DataMapperFactory<T>
*/
final class ItemL11nTypeMapper extends DataMapperFactory
{

View File

@ -14,7 +14,6 @@ declare(strict_types=1);
namespace Modules\ItemManagement\Models;
use Modules\Attribute\Models\AttributeMapper;
use Modules\Editor\Models\EditorDocMapper;
use Modules\Media\Models\MediaMapper;
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
@ -26,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 Item
* @extends DataMapperFactory<T>
*/
final class ItemMapper extends DataMapperFactory
{
@ -88,7 +90,7 @@ final class ItemMapper extends DataMapperFactory
'external' => null,
],
'attributes' => [
'mapper' => AttributeMapper::class,
'mapper' => ItemAttributeMapper::class,
'table' => 'itemmgmt_item_attr',
'self' => 'itemmgmt_item_attr_item',
'external' => null,

View File

@ -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 ItemRelation
* @extends DataMapperFactory<T>
*/
final class ItemRelationMapper extends DataMapperFactory
{

View File

@ -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 ItemRelationType
* @extends DataMapperFactory<T>
*/
final class ItemRelationTypeMapper extends DataMapperFactory
{