diff --git a/src/Concerns/HasWallet.php b/src/Concerns/HasWallet.php index 06357d7..8c70898 100644 --- a/src/Concerns/HasWallet.php +++ b/src/Concerns/HasWallet.php @@ -85,14 +85,10 @@ public function credit(float|int|string $amount, array $meta = [], ?string $endp /** * Credit the user quietly without exceptions - * @param float|int|string $amount - * @param array $meta - * @param string|null $endpoint - * @return bool */ public function creditQuietly(float|int|string $amount, array $meta = [], ?string $endpoint = null): bool { - try{ + try { return $this->wallet()->credit( amount: $amount, meta: $meta, @@ -123,15 +119,10 @@ public function debit(float|int|string $amount, array $meta = [], ?string $endpo /** * Attempts to Debit the user quietly without exceptions - * - * @param float|int|string $amount - * @param array $meta - * @param string|null $endpoint - * @return bool */ public function debitQuietly(float|int|string $amount, array $meta = [], ?string $endpoint = null): bool { - try{ + try { return $this->wallet()->debit( amount: $amount, meta: $meta, diff --git a/src/Math.php b/src/Math.php index 63eb49a..a78efaa 100644 --- a/src/Math.php +++ b/src/Math.php @@ -258,14 +258,11 @@ public function compare(float|int|string $first, float|int|string $second): int /** * Check if its zero * - * @param float|int|string $number - * @param int|null $scale - * @return bool * @throws DivisionByZeroException * @throws NumberFormatException * @throws RoundingNecessaryException */ - public function isZero(float|int|string $number, ?int $scale = null): bool + public function isZero(float|int|string $number, ?int $scale = null): bool { return BigDecimal::of($number) ->toScale($scale ?? $this->floatScale, RoundingMode::DOWN) @@ -273,28 +270,23 @@ public function isZero(float|int|string $number, ?int $scale = null): bool } /** - * @param float|int|string $number - * @param int|null $scale - * @return bool * @throws DivisionByZeroException * @throws NumberFormatException * @throws RoundingNecessaryException */ - public function isNotZero(float|int|string $number, ?int $scale = null): bool + public function isNotZero(float|int|string $number, ?int $scale = null): bool { return ! $this->isZero($number, $scale); } /** * Returns the representation of the number as a string - * @param float|int|string $number - * @param int|null $scale - * @return BigDecimal + * * @throws DivisionByZeroException * @throws NumberFormatException * @throws RoundingNecessaryException */ - public function toToNumber(float|int|string $number, ?int $scale = null): BigDecimal + public function toToNumber(float|int|string $number, ?int $scale = null): BigDecimal { return BigDecimal::of($number) ->toScale($scale ?? $this->floatScale, RoundingMode::DOWN); @@ -303,10 +295,6 @@ public function toToNumber(float|int|string $number, ?int $scale = null): BigDe /** * Check if two numbers are equal * - * @param float|int|string $first - * @param float|int|string $second - * @param int|null $scale - * @return bool * @throws DivisionByZeroException * @throws NumberFormatException * @throws RoundingNecessaryException