Skip to content

Commit

Permalink
Remove redundant cast
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
  • Loading branch information
kamil-tekiela committed Mar 17, 2022
1 parent 5c8a4e9 commit 06e4c77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/classes/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,8 @@ public function detectSize(
/* New val if M or D is greater than current largest */
if ($size[self::M] > $oldM || $size[self::D] > $oldD) {
/* Take the largest of both types */
return (string) (($size[self::M] > $oldM ? $size[self::M] : $oldM)
. ',' . ($size[self::D] > $oldD ? $size[self::D] : $oldD));
return ($size[self::M] > $oldM ? $size[self::M] : $oldM)
. ',' . ($size[self::D] > $oldD ? $size[self::D] : $oldD);
}

return $lastCumulativeSize;
Expand Down Expand Up @@ -791,7 +791,7 @@ public function detectSize(
$oldM = $this->getDecimalPrecision($lastCumulativeSize);
$oldD = $this->getDecimalScale($lastCumulativeSize);
$oldInt = $oldM - $oldD;
$newInt = mb_strlen((string) $cell);
$newInt = mb_strlen($cell);

/* See which has the larger integer length */
if ($oldInt >= $newInt) {
Expand Down

0 comments on commit 06e4c77

Please sign in to comment.