From 0676585e4642c1cb6bd7dc1fada3e493838af171 Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Sat, 16 Mar 2024 09:04:14 -0300 Subject: [PATCH] Formatting --- src/Money.php | 8 ++++---- tests/MoneyTest.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Money.php b/src/Money.php index 91ece0f..769fa25 100644 --- a/src/Money.php +++ b/src/Money.php @@ -200,7 +200,7 @@ public function __call($method, array $arguments) return $this->macroCall($method, $arguments); } - if (!method_exists($this->money, $method)) { + if (! method_exists($this->money, $method)) { throw new BadMethodCallException(sprintf( 'Call to undefined method %s::%s()', static::class, @@ -217,7 +217,7 @@ public function __call($method, array $arguments) 'absolute', 'negative', ]; - if (!in_array($method, $methods)) { + if (! in_array($method, $methods)) { return $result; } @@ -275,7 +275,7 @@ private static function getArguments(array $arguments = []) */ private static function convertResult($result) { - if (!is_array($result)) { + if (! is_array($result)) { return static::convert($result); } @@ -312,7 +312,7 @@ private static function resolveCalculator() ]; foreach ($calculators as $calculator) { - if (!class_exists($calculator)) { + if (! class_exists($calculator)) { continue; } diff --git a/tests/MoneyTest.php b/tests/MoneyTest.php index 7728b97..b4c8250 100644 --- a/tests/MoneyTest.php +++ b/tests/MoneyTest.php @@ -193,7 +193,7 @@ public function testAllocateTo() public function testCallUndefinedMethod() { $this->expectException(BadMethodCallException::class); - $this->expectExceptionMessage('Call to undefined method ' . Money::class . '::undefined()'); + $this->expectExceptionMessage('Call to undefined method '.Money::class.'::undefined()'); Money::USD(15)->undefined(); }