Skip to content

Commit 4f5e0bc

Browse files
SpacePossumsebastianbergmann
authored andcommitted
Update from pow() -> **.
1 parent 6d91efd commit 4f5e0bc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.php_cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ return PhpCsFixer\Config::create()
5959
'phpdoc_trim' => true,
6060
'phpdoc_types' => true,
6161
'phpdoc_var_without_name' => true,
62+
'pow_to_exponentiation' => true,
6263
'self_accessor' => true,
6364
'simplified_null_return' => true,
6465
'single_blank_line_at_eof' => true,

src/Differ.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ private function calculateEstimatedFootprint(array $from, array $to)
329329
{
330330
$itemSize = PHP_INT_SIZE === 4 ? 76 : 144;
331331

332-
return $itemSize * \pow(\min(\count($from), \count($to)), 2);
332+
return $itemSize * \min(\count($from), \count($to)) ** 2;
333333
}
334334

335335
/**

0 commit comments

Comments
 (0)