Automated formatting changes

This commit is contained in:
Formatter Bot 2020-11-10 21:19:17 +00:00
parent cd6f069c78
commit 2bd969bf17
4 changed files with 59 additions and 60 deletions

View File

@ -81,94 +81,93 @@ final class Installer extends InstallerAbstract
$itemAttrValue['color'] = [];
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Red', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][0]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][0]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Rot', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][1]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][1]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Blue', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][2]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][2]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Blau', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][3]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][3]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Green', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][4]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][4]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Grün', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][5]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][5]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Yellow', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][6]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][6]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Gelb', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][7]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][7]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'White', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][8]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][8]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Weiss', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][9]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][9]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Black', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][10]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][10]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Schwarz', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][11]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][11]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Braun', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][12]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][12]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Braun', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][13]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][13]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Purple', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][14]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][14]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Lila', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][15]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][15]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Pink', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][16]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][16]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Rosa', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][17]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][17]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Orange', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][18]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][18]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Orange', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][19]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][19]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Grey', ISO639x1Enum::_EN);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][20]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][20]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
$itemAttrValue['color'][] = new ItemAttributeValue(AttributeValueType::_STRING, 'Grau', ISO639x1Enum::_DE);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][21]);
$id = ItemAttributeValueMapper::create($itemAttrValue['color'][21]);
ItemAttributeTypeMapper::createRelation('defaults', $itemAttrType['color']->getId(), $id);
return $itemAttrValue;
}
}

View File

@ -15,19 +15,19 @@ declare(strict_types=1);
namespace Modules\ItemManagement\Controller;
use Modules\ItemManagement\Models\AttributeValueType;
use Modules\ItemManagement\Models\Item;
use Modules\ItemManagement\Models\ItemAttribute;
use Modules\ItemManagement\Models\ItemAttributeType;
use Modules\ItemManagement\Models\ItemAttributeTypeL11n;
use Modules\ItemManagement\Models\ItemAttributeValue;
use Modules\ItemManagement\Models\ItemL11n;
use Modules\ItemManagement\Models\ItemL11nType;
use Modules\ItemManagement\Models\ItemMapper;
use phpOMS\Message\Http\RequestStatusCode;
use phpOMS\Message\NotificationLevel;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use phpOMS\Model\Message\FormValidation;
use phpOMS\Message\Http\RequestStatusCode;
use phpOMS\Message\NotificationLevel;
use Modules\ItemManagement\Models\Item;
use Modules\ItemManagement\Models\ItemL11n;
use Modules\ItemManagement\Models\ItemAttribute;
use Modules\ItemManagement\Models\ItemAttributeTypeL11n;
use Modules\ItemManagement\Models\ItemAttributeValue;
use Modules\ItemManagement\Models\ItemL11nType;
use Modules\ItemManagement\Models\ItemAttributeType;
/**
* ItemManagement class.

View File

@ -96,15 +96,15 @@ class ItemAttributeType implements \JsonSerializable, ArrayableInterface
return $this->id;
}
/**
* Set name
*
* @param string $name Name
*
* @return void
*
* @since 1.0.0
*/
/**
* Set name
*
* @param string $name Name
*
* @return void
*
* @since 1.0.0
*/
public function setName(string $name) : void
{
$this->name = $name;
@ -114,7 +114,7 @@ class ItemAttributeType implements \JsonSerializable, ArrayableInterface
* Set l11n
*
* @param string|ItemAttributeTypeL11n $l11n Tag article l11n
* @param string $lang Language
* @param string $lang Language
*
* @return void
*
@ -133,29 +133,29 @@ class ItemAttributeType implements \JsonSerializable, ArrayableInterface
}
}
/**
* Set fields
*
* @param int $fields Fields
*
* @return void
*
* @since 1.0.0
*/
/**
* Set fields
*
* @param int $fields Fields
*
* @return void
*
* @since 1.0.0
*/
public function setFields(int $fields) : void
{
$this->fields = $fields;
}
/**
* Set custom
*
* @param bool $custom FieldsCustom
*
* @return void
*
* @since 1.0.0
*/
* Set custom
*
* @param bool $custom FieldsCustom
*
* @return void
*
* @since 1.0.0
*/
public function setCustom(bool $custom) : void
{
$this->custom = $custom;

View File

@ -226,7 +226,7 @@ class ItemAttributeValue implements \JsonSerializable, ArrayableInterface
/**
* Is default value?
*
* @return bool
* @return bool
*
* @since 1.0.0
*/