Skip to content

Commit

Permalink
♻️ float no more (#997)
Browse files Browse the repository at this point in the history
Co-authored-by: erikn69 <[email protected]>
  • Loading branch information
willpower232 and erikn69 authored Jan 21, 2025
1 parent c2938cd commit 2a5b584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Redactors/LeftRedactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LeftRedactor implements \OwenIt\Auditing\Contracts\AttributeRedactor
public static function redact($value): string
{
$total = strlen($value);
$tenth = ceil($total / 10);
$tenth = (int) ceil($total / 10);

// Make sure single character strings get redacted
$length = ($total > $tenth) ? ($total - $tenth) : 1;
Expand Down
2 changes: 1 addition & 1 deletion src/Redactors/RightRedactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RightRedactor implements \OwenIt\Auditing\Contracts\AttributeRedactor
public static function redact($value): string
{
$total = strlen($value);
$tenth = ceil($total / 10);
$tenth = (int) ceil($total / 10);

// Make sure single character strings get redacted
$length = ($total > $tenth) ? ($total - $tenth) : 1;
Expand Down

0 comments on commit 2a5b584

Please sign in to comment.