Skip to content

Commit 0556bd1

Browse files
Merge pull request #3 from phpviet/analysis-8w45y9 [skip ci]
Apply fixes from StyleCI
2 parents 2255df8 + d9b0a85 commit 0556bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Transformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function toCurrency($number, $unit = 'đồng'): string
8888
{
8989
$words = [];
9090
$originNumber = $number;
91-
$unit = (array)$unit;
91+
$unit = (array) $unit;
9292
[$minus, $number, $decimal] = $this->resolve($number);
9393

9494
if (0 === $decimal || ! isset($unit[1])) {
@@ -115,7 +115,7 @@ public function toCurrency($number, $unit = 'đồng'): string
115115
protected function resolve($number): array
116116
{
117117
$number += 0; // trick xóa các số 0 lẻ sau cùng của phân số
118-
$number = (string)$number;
118+
$number = (string) $number;
119119
$minus = '-' === $number[0];
120120

121121
if (false !== strpos($number, '.')) {

0 commit comments

Comments
 (0)