Code Duplication    Length = 10-10 lines in 2 locations

src/GoogleCalendar.php 2 locations

@@ 75-84 (lines=10) @@
72
        return $this->calendarService->events->get($this->calendarId, $eventId, $optParams);
73
    }
74
75
    public function getEvents(iterable $eventIds, $optParams = [])
76
    {
77
        collect($eventIds)
78
            ->each(
79
                function ($eventId, $batchIdentifier) use ($optParams) {
80
                    $this->batchRequests->add($this->getEvent($eventId, $optParams), $batchIdentifier);
81
                });
82
83
        return $this;
84
    }
85
86
    /**
87
     * @param       $event
@@ 160-169 (lines=10) @@
157
     *
158
     * @return $this
159
     */
160
    public function deleteEvents(iterable $eventIds, $optParams = [])
161
    {
162
        collect($eventIds)
163
            ->each(
164
                function ($eventId, $batchIdentifier) use ($optParams) {
165
                    $this->batchRequests->add($this->deleteEvent($eventId, $optParams), $batchIdentifier);
166
                });
167
168
        return $this;
169
    }
170
171
    public function getService(): Google_Service_Calendar
172
    {