autoformat

This commit is contained in:
Dennis Eichhorn 2020-09-17 18:51:21 +02:00
parent 74c3c456b9
commit 016af92a05
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);