From 016af92a0520e8a3c046d95c351959cab4e54817 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 17 Sep 2020 18:51:21 +0200 Subject: [PATCH] autoformat --- Business/Marketing/Metrics.php | 2 +- tests/Business/Marketing/CustomerValueTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Business/Marketing/Metrics.php b/Business/Marketing/Metrics.php index 244beb7bd..b27e5a973 100644 --- a/Business/Marketing/Metrics.php +++ b/Business/Marketing/Metrics.php @@ -165,7 +165,7 @@ final class Metrics $matrix = self::createCustomerPurchaseProbabilityMatrix($purchaseProbability); $newMatrix = clone $matrix; - for ($i = 0; $i < $period - 1 ; ++$i) { + for ($i = 0; $i < $period - 1; ++$i) { $newMatrix = $newMatrix->mult($matrix); } diff --git a/tests/Business/Marketing/CustomerValueTest.php b/tests/Business/Marketing/CustomerValueTest.php index e6ab0beb4..000f754bb 100644 --- a/tests/Business/Marketing/CustomerValueTest.php +++ b/tests/Business/Marketing/CustomerValueTest.php @@ -43,7 +43,7 @@ class CustomerValueTest extends \PHPUnit\Framework\TestCase public function testMRR() : void { $revenues = [ - 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 + 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, ]; self::assertEqualsWithDelta(77.53846, CustomerValue::getMRR($revenues, 13, 10, 1000), 0.01);