Skip to content

Commit 53687e4

Browse files
committed
Apply fixes from StyleCI
1 parent 5c146fb commit 53687e4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Illuminate/Support/Number.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static function parseInt(string $string, ?string $locale = null): int
8484
* @param string|null $locale The locale to use
8585
* @return float|false
8686
*/
87-
public static function parseFloat(string $string, ?string $locale = null ): float
87+
public static function parseFloat(string $string, ?string $locale = null): float
8888
{
8989
return self::parse($string, NumberFormatter::TYPE_DOUBLE, $locale);
9090
}

tests/Support/SupportNumberTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function testParse()
363363
$this->assertSame(1234.5, Number::parse('1,234.5'));
364364
$this->assertSame(1234.56, Number::parse('1,234.56'));
365365
$this->assertSame(-1234.56, Number::parse('-1,234.56'));
366-
366+
367367
$this->assertSame(1234.56, Number::parse('1.234,56', locale: 'de'));
368368
$this->assertSame(1234.56, Number::parse('1 234,56', locale: 'fr'));
369369
}
@@ -374,7 +374,7 @@ public function testParseInt()
374374
$this->assertSame(1234, Number::parseInt('1,234'));
375375
$this->assertSame(1234, Number::parseInt('1,234.5'));
376376
$this->assertSame(-1234, Number::parseInt('-1,234.56'));
377-
377+
378378
$this->assertSame(1234, Number::parseInt('1.234', locale: 'de'));
379379
$this->assertSame(1234, Number::parseInt('1 234', locale: 'fr'));
380380
}
@@ -386,7 +386,7 @@ public function testParseFloat()
386386
$this->assertSame(1234.5, Number::parseFloat('1,234.5'));
387387
$this->assertSame(1234.56, Number::parseFloat('1,234.56'));
388388
$this->assertSame(-1234.56, Number::parseFloat('-1,234.56'));
389-
389+
390390
$this->assertSame(1234.56, Number::parseFloat('1.234,56', locale: 'de'));
391391
$this->assertSame(1234.56, Number::parseFloat('1 234,56', locale: 'fr'));
392392
}

0 commit comments

Comments
 (0)