Skip to content

Commit 44965c5

Browse files
committed
Fix CS
1 parent 05507bb commit 44965c5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private function round($number)
251251
{
252252
if (null !== $this->scale && null !== $this->roundingMode) {
253253
// shift number to maintain the correct scale during rounding
254-
$roundingCoef = pow(10, $this->scale);
254+
$roundingCoef = 10 ** $this->scale;
255255
// string representation to avoid rounding errors, similar to bcmul()
256256
$number = (string) ($number * $roundingCoef);
257257

Tests/AbstractRequestHandlerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ public function testAddFormErrorIfPostMaxSizeExceeded($contentLength, $iniMax, $
338338
public function getPostMaxSizeFixtures()
339339
{
340340
return [
341-
[pow(1024, 3) + 1, '1G', true, ['{{ max }}' => '1G']],
342-
[pow(1024, 3), '1G', false],
343-
[pow(1024, 2) + 1, '1M', true, ['{{ max }}' => '1M']],
344-
[pow(1024, 2), '1M', false],
341+
[1024 ** 3 + 1, '1G', true, ['{{ max }}' => '1G']],
342+
[1024 ** 3, '1G', false],
343+
[1024 ** 2 + 1, '1M', true, ['{{ max }}' => '1M']],
344+
[1024 ** 2, '1M', false],
345345
[1024 + 1, '1K', true, ['{{ max }}' => '1K']],
346346
[1024, '1K', false],
347347
[null, '1K', false],

0 commit comments

Comments
 (0)