Automated formatting changes

This commit is contained in:
Formatter Bot 2022-04-10 16:08:06 +00:00
parent d213321870
commit 7120a0c505
4 changed files with 28 additions and 28 deletions

View File

@ -79,7 +79,7 @@ class Promotion
*/ */
public Calendar $calendar; public Calendar $calendar;
/** /**
* Budget costs. * Budget costs.
* *
* @var Money * @var Money
@ -379,21 +379,21 @@ class Promotion
public function toArray() : array public function toArray() : array
{ {
return [ return [
'id' => $this->id, 'id' => $this->id,
'start' => $this->start, 'start' => $this->start,
'end' => $this->end, 'end' => $this->end,
'name' => $this->name, 'name' => $this->name,
'description' => $this->description, 'description' => $this->description,
'calendar' => $this->calendar, 'calendar' => $this->calendar,
'budgetCosts' => $this->budgetCosts, 'budgetCosts' => $this->budgetCosts,
'budgetEarnings' => $this->budgetEarnings, 'budgetEarnings' => $this->budgetEarnings,
'actualCosts' => $this->actualCosts, 'actualCosts' => $this->actualCosts,
'actualEarnings' => $this->actualEarnings, 'actualEarnings' => $this->actualEarnings,
'tasks' => $this->tasks, 'tasks' => $this->tasks,
'media' => $this->media, 'media' => $this->media,
'progress' => $this->progress, 'progress' => $this->progress,
'progressType' => $this->progressType, 'progressType' => $this->progressType,
'createdAt' => $this->createdAt, 'createdAt' => $this->createdAt,
]; ];
} }

View File

@ -59,7 +59,7 @@ final class PromotionAttributeTypeMapper extends DataMapperFactory
'mapper' => PromotionAttributeValueMapper::class, 'mapper' => PromotionAttributeValueMapper::class,
'table' => 'marketing_promotion_attr_default', 'table' => 'marketing_promotion_attr_default',
'self' => 'marketing_promotion_attr_default_type', 'self' => 'marketing_promotion_attr_default_type',
'external' => 'marketing_promotion_attr_default_value' 'external' => 'marketing_promotion_attr_default_value',
], ],
]; ];

View File

@ -45,10 +45,10 @@ final class PromotionMapperTest extends \PHPUnit\Framework\TestCase
$money = new Money(); $money = new Money();
$money->setString('1.23'); $money->setString('1.23');
$promotion->budgetCosts = $money; $promotion->budgetCosts = $money;
$promotion->budgetEarnings = $money; $promotion->budgetEarnings = $money;
$promotion->actualCosts = $money; $promotion->actualCosts = $money;
$promotion->actualEarnings = $money; $promotion->actualEarnings = $money;
$task = new Task(); $task = new Task();
$task->title = 'EventTask 1'; $task->title = 'EventTask 1';

View File

@ -125,19 +125,19 @@ final class PromotionTest extends \PHPUnit\Framework\TestCase
self::assertEquals( self::assertEquals(
[ [
'id' => 0, 'id' => 0,
'start' => $this->promotion->start, 'start' => $this->promotion->start,
'end' => $this->promotion->end, 'end' => $this->promotion->end,
'name' => 'Name', 'name' => 'Name',
'description' => 'Description', 'description' => 'Description',
'budgetCosts' => new Money(), 'budgetCosts' => new Money(),
'budgetEarnings' => new Money(), 'budgetEarnings' => new Money(),
'actualCosts' => new Money(), 'actualCosts' => new Money(),
'actualEarnings' => new Money(), 'actualEarnings' => new Money(),
'tasks' => [], 'tasks' => [],
'media' => [], 'media' => [],
'progress' => 10, 'progress' => 10,
'progressType' => ProgressType::TASKS, 'progressType' => ProgressType::TASKS,
], ],
$serialized $serialized
); );