Skip to content

Commit

Permalink
chore: Fixed failing cs-fixer checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshomoh committed Oct 27, 2023
1 parent 4a12adf commit d629305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/AsciiOnly.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AsciiOnly implements ValidationRuleInterface
*/
public function passes($value, array $parameters): bool
{
return (bool)mb_detect_encoding($value, 'ASCII', true);
return (bool) mb_detect_encoding($value, 'ASCII', true);
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Rules/Between.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ public function passes($value, array $parameters): bool

if (is_numeric($value)) {
$convertedValue = +$value;

return $convertedValue >= +$min && $convertedValue <= +$max;
}

if (is_string($value)) {
$valueLength = strlen($value);

return $valueLength >= +$min && $valueLength <= +$max;
}

Expand Down

0 comments on commit d629305

Please sign in to comment.