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 9637f9c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/Parser/MimeDir.php
Expand Up @@ -2,7 +2,6 @@

namespace Sabre\VObject\Parser;

use DateTimeImmutable;
use DateTimeInterface;
use Sabre\VObject\Component;
use Sabre\VObject\Component\VCalendar;
Expand Down Expand Up @@ -91,7 +90,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 +102,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 +204,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 9637f9c

Please sign in to comment.