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

View File

@ -59,7 +59,7 @@ final class PromotionAttributeTypeMapper extends DataMapperFactory
'mapper' => PromotionAttributeValueMapper::class,
'table' => 'marketing_promotion_attr_default',
'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->setString('1.23');
$promotion->budgetCosts = $money;
$promotion->budgetCosts = $money;
$promotion->budgetEarnings = $money;
$promotion->actualCosts = $money;
$promotion->actualEarnings = $money;
$promotion->actualCosts = $money;
$promotion->actualEarnings = $money;
$task = new Task();
$task->title = 'EventTask 1';

View File

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