Skip to content

Commit 3bffe2d

Browse files
committed
remove DateTime params from parse method
1 parent e5a1a2a commit 3bffe2d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Parser/MimeDir.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class MimeDir extends Parser
9191
*
9292
* @return \Sabre\VObject\Document
9393
*/
94-
public function parse($input = null, $options = 0, DateTimeInterface $start = null, DateTimeInterface $end = null)
94+
public function parse($input = null, $options = 0)
9595
{
9696
$this->root = null;
9797

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

106-
$this->setTimeRange($start, $end);
107-
108106
$this->parseDocument();
109107

110108
return $this->root;
@@ -207,7 +205,7 @@ protected function parseDocument()
207205
if ($result) {
208206
if ($result instanceof Component\VEvent) {
209207
if ($this->start && $this->end) {
210-
if (! $result->isInTimeRange($this->start, $this->end)) {
208+
if (!$result->isInTimeRange($this->start, $this->end)) {
211209
continue;
212210
}
213211
}

0 commit comments

Comments
 (0)