mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-11 15:58:43 +00:00
Automated formatting changes
This commit is contained in:
parent
d213321870
commit
7120a0c505
|
|
@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user