From c97b51637850307dc61d3630a1a72924d0302d9e Mon Sep 17 00:00:00 2001 From: Formatter Bot Date: Sun, 4 Apr 2021 15:16:03 +0000 Subject: [PATCH] Automated formatting changes --- Business/Marketing/CustomerValue.php | 2 +- DataStorage/Database/DataMapperAbstract.php | 11 +++++------ Localization/Money.php | 1 - Stdlib/Base/Location.php | 8 ++++---- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Business/Marketing/CustomerValue.php b/Business/Marketing/CustomerValue.php index c8c089862..73661210c 100644 --- a/Business/Marketing/CustomerValue.php +++ b/Business/Marketing/CustomerValue.php @@ -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); diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index bfdf61593..61b6bd599 100644 --- a/DataStorage/Database/DataMapperAbstract.php +++ b/DataStorage/Database/DataMapperAbstract.php @@ -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; } diff --git a/Localization/Money.php b/Localization/Money.php index 52faf645f..91876dfb3 100644 --- a/Localization/Money.php +++ b/Localization/Money.php @@ -83,7 +83,6 @@ final class Money extends FloatInt return $this; } - /** * Get money. * diff --git a/Stdlib/Base/Location.php b/Stdlib/Base/Location.php index c5707bdad..3bf5c7ed8 100644 --- a/Stdlib/Base/Location.php +++ b/Stdlib/Base/Location.php @@ -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']; } }