Automated formatting changes

This commit is contained in:
Formatter Bot 2020-10-21 20:56:13 +00:00
parent 94802e628d
commit 8f12007e8e
7 changed files with 33 additions and 33 deletions

View File

@ -49,11 +49,11 @@ final class ItemAttributeMapper extends DataMapperAbstract
*/
protected static array $ownsOne = [
'type' => [
'mapper' => ItemAttributeTypeMapper::class,
'mapper' => ItemAttributeTypeMapper::class,
'external' => 'itemmgmt_item_l11n_typeref',
],
'value' => [
'mapper' => ItemAttributeValueMapper::class,
'mapper' => ItemAttributeValueMapper::class,
'external' => 'itemmgmt_item_l11n_typeref',
],
];

View File

@ -50,11 +50,11 @@ final class ItemAttributeTypeL11nMapper extends DataMapperAbstract
*/
protected static array $ownsOne = [
'language' => [
'mapper' => LanguageMapper::class,
'mapper' => LanguageMapper::class,
'external' => 'itemmgmt_attr_type_l11n_lang',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
],
];

View File

@ -49,11 +49,11 @@ final class ItemAttributeTypeMapper extends DataMapperAbstract
*/
protected static array $hasMany = [
'l11n' => [
'mapper' => ItemAttributeTypeL11nMapper::class,
'table' => 'itemmgmt_attr_type_l11n',
'self' => 'itemmgmt_attr_type_l11n_type',
'column' => 'title',
'conditional' => true,
'mapper' => ItemAttributeTypeL11nMapper::class,
'table' => 'itemmgmt_attr_type_l11n',
'self' => 'itemmgmt_attr_type_l11n_type',
'column' => 'title',
'conditional' => true,
'external' => null,
],
];

View File

@ -56,18 +56,18 @@ final class ItemAttributeValueMapper extends DataMapperAbstract
*/
protected static array $ownsOne = [
'language' => [
'mapper' => LanguageMapper::class,
'mapper' => LanguageMapper::class,
'external' => 'itemmgmt_attr_value_lang',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
],
'country' => [
'mapper' => CountryMapper::class,
'mapper' => CountryMapper::class,
'external' => 'itemmgmt_attr_value_country',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
],
];

View File

@ -51,14 +51,14 @@ final class ItemL11nMapper extends DataMapperAbstract
*/
protected static array $ownsOne = [
'language' => [
'mapper' => LanguageMapper::class,
'mapper' => LanguageMapper::class,
'external' => 'itemmgmt_item_l11n_lang',
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
'by' => 'code2',
'column' => 'code2',
'conditional' => true,
],
'type' => [
'mapper' => ItemL11nTypeMapper::class,
'mapper' => ItemL11nTypeMapper::class,
'external' => 'itemmgmt_item_l11n_typeref',
],
];

View File

@ -73,17 +73,17 @@ final class ItemMapper extends DataMapperAbstract
'self' => 'itemmgmt_item_media_item',
],
'l11n' => [
'mapper' => ItemL11nMapper::class,
'table' => 'itemmgmt_item_l11n',
'self' => 'itemmgmt_item_l11n_item',
'conditional' => true,
'mapper' => ItemL11nMapper::class,
'table' => 'itemmgmt_item_l11n',
'self' => 'itemmgmt_item_l11n_item',
'conditional' => true,
'external' => null,
],
'attributes' => [
'mapper' => ItemAttributeMapper::class,
'table' => 'itemmgmt_item_attr',
'self' => 'itemmgmt_item_attr_item',
'conditional' => true,
'mapper' => ItemAttributeMapper::class,
'table' => 'itemmgmt_item_attr',
'self' => 'itemmgmt_item_attr_item',
'conditional' => true,
'external' => null,
],
];

View File

@ -12,8 +12,8 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
use Modules\Media\Models\NullMedia;
use phpOMS\Uri\UriFactory;
/** @var \phpOMS\Views\View $this */
$items = $this->getData('items');