Skip to content

Commit

Permalink
remove DateTime params from parse method
Browse files Browse the repository at this point in the history
  • Loading branch information
8633brown committed Oct 14, 2019
1 parent e5a1a2a commit 3bffe2d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Parser/MimeDir.php
Expand Up @@ -91,7 +91,7 @@ class MimeDir extends Parser
*
* @return \Sabre\VObject\Document
*/
public function parse($input = null, $options = 0, DateTimeInterface $start = null, DateTimeInterface $end = null)
public function parse($input = null, $options = 0)
{
$this->root = null;

Expand All @@ -103,8 +103,6 @@ public function parse($input = null, $options = 0, DateTimeInterface $start = nu
$this->options = $options;
}

$this->setTimeRange($start, $end);

$this->parseDocument();

return $this->root;
Expand Down Expand Up @@ -207,7 +205,7 @@ protected function parseDocument()
if ($result) {
if ($result instanceof Component\VEvent) {
if ($this->start && $this->end) {
if (! $result->isInTimeRange($this->start, $this->end)) {
if (!$result->isInTimeRange($this->start, $this->end)) {
continue;
}
}
Expand Down

0 comments on commit 3bffe2d

Please sign in to comment.