mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Automated formatting changes
This commit is contained in:
parent
67f969a6b8
commit
c97b516378
|
|
@ -58,7 +58,7 @@ final class CustomerValue
|
|||
public static function getBasicCLV(array $margins, float $retentionRate, float $discountRate) : float
|
||||
{
|
||||
$clv = 0.0;
|
||||
$c = 1;
|
||||
$c = 1;
|
||||
foreach ($margins as $margin) {
|
||||
$clv += ($retentionRate ** $c) * $margin * \pow(1 / (1 + $discountRate), $c);
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ use phpOMS\DataStorage\Database\Query\QueryType;
|
|||
use phpOMS\DataStorage\Database\Query\Where;
|
||||
use phpOMS\DataStorage\DataMapperInterface;
|
||||
use phpOMS\Utils\ArrayUtils;
|
||||
use phpOMS\Utils\TestUtils;
|
||||
|
||||
/**
|
||||
* Datamapper for databases.
|
||||
|
|
@ -337,10 +336,10 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
'value' => $value,
|
||||
'models' => $models === [] ? null : $models,
|
||||
'comparison' => $comparison,
|
||||
'orderBy' => $orderBy,
|
||||
'sortOrder' => $sortOrder,
|
||||
'limit' => $limit,
|
||||
'ignore' => $models === null, // don't load this model
|
||||
'orderBy' => $orderBy,
|
||||
'sortOrder' => $sortOrder,
|
||||
'limit' => $limit,
|
||||
'ignore' => $models === null, // don't load this model
|
||||
];
|
||||
|
||||
/** @var string */
|
||||
|
|
@ -364,7 +363,7 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
}
|
||||
|
||||
self::$parentMapper = null;
|
||||
self::$withFields = [];
|
||||
self::$withFields = [];
|
||||
self::$relations = RelationType::ALL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,6 @@ final class Money extends FloatInt
|
|||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get money.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -218,11 +218,11 @@ class Location implements \JsonSerializable, \Serializable
|
|||
{
|
||||
$data = \json_decode($serialized, true);
|
||||
|
||||
$this->postal = $data['postal'];
|
||||
$this->city = $data['city'];
|
||||
$this->postal = $data['postal'];
|
||||
$this->city = $data['city'];
|
||||
$this->country = $data['country'];
|
||||
$this->address = $data['address'];
|
||||
$this->state = $data['state'];
|
||||
$this->geo = $data['geo'];
|
||||
$this->state = $data['state'];
|
||||
$this->geo = $data['geo'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user