|
23 | 23 | */ |
24 | 24 | class ImportService { |
25 | 25 |
|
26 | | - public const FORMATS = ['ical', 'jcal', 'xcal']; |
27 | | - |
28 | 26 | private $source; |
29 | 27 |
|
30 | 28 | public function __construct( |
@@ -68,7 +66,7 @@ public function import($source, CalendarImpl $calendar, CalendarImportOptions $o |
68 | 66 | * |
69 | 67 | * @return Generator<\Sabre\VObject\Component\VCalendar> |
70 | 68 | */ |
71 | | - private function importText(CalendarImportOptions $options): Generator { |
| 69 | + private function importText(): Generator { |
72 | 70 | $importer = new TextImporter($this->source); |
73 | 71 | $structure = $importer->structure(); |
74 | 72 | $sObjectPrefix = $importer::OBJECT_PREFIX; |
@@ -117,7 +115,7 @@ private function importText(CalendarImportOptions $options): Generator { |
117 | 115 | * |
118 | 116 | * @return Generator<\Sabre\VObject\Component\VCalendar> |
119 | 117 | */ |
120 | | - private function importXml(CalendarImportOptions $options): Generator { |
| 118 | + private function importXml(): Generator { |
121 | 119 | $importer = new XmlImporter($this->source); |
122 | 120 | $structure = $importer->structure(); |
123 | 121 | $sObjectPrefix = $importer::OBJECT_PREFIX; |
@@ -159,7 +157,7 @@ private function importXml(CalendarImportOptions $options): Generator { |
159 | 157 | * |
160 | 158 | * @return Generator<\Sabre\VObject\Component\VCalendar> |
161 | 159 | */ |
162 | | - private function importJson(CalendarImportOptions $options): Generator { |
| 160 | + private function importJson(): Generator { |
163 | 161 | /** @var VCALENDAR $importer */ |
164 | 162 | $importer = Reader::readJson($this->source); |
165 | 163 | // calendar time zones |
|
0 commit comments