diff --git a/Models/Promotion.php b/Models/Promotion.php index e1b670e..6825195 100755 --- a/Models/Promotion.php +++ b/Models/Promotion.php @@ -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, ]; } diff --git a/Models/PromotionAttributeTypeMapper.php b/Models/PromotionAttributeTypeMapper.php index 08d924d..d2a2ee5 100755 --- a/Models/PromotionAttributeTypeMapper.php +++ b/Models/PromotionAttributeTypeMapper.php @@ -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', ], ]; diff --git a/tests/Models/PromotionMapperTest.php b/tests/Models/PromotionMapperTest.php index dafe053..e7aa270 100755 --- a/tests/Models/PromotionMapperTest.php +++ b/tests/Models/PromotionMapperTest.php @@ -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'; diff --git a/tests/Models/PromotionTest.php b/tests/Models/PromotionTest.php index 9fecad9..b86c678 100755 --- a/tests/Models/PromotionTest.php +++ b/tests/Models/PromotionTest.php @@ -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 );