Skip to content

Commit

Permalink
chore(validator): cleanup redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Jan 9, 2020
1 parent fec5332 commit 00983d4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public function inStep(int $value, string $offset): bool
return $value % $parts[1] === 0;
}

$parts = \explode('/', $offset, 2);
$subparts = \explode('-', $parts[0], 2) + [1 => $value];

return $this->inStepRange((int) $value, (int) $subparts[0], (int) $subparts[1], (int) $parts[1]);
Expand Down

0 comments on commit 00983d4

Please sign in to comment.