|
@@ -261,7 +261,7 @@ discard block |
|
|
block discarded – undo |
|
261
|
261
|
} |
|
262
|
262
|
} |
|
263
|
263
|
|
|
264
|
|
- throw new \Exception('Could not load ' . $className, 0, $e); |
|
|
264
|
+ throw new \Exception('Could not load '.$className, 0, $e); |
|
265
|
265
|
} |
|
266
|
266
|
|
|
267
|
267
|
|
|
@@ -271,10 +271,10 @@ discard block |
|
|
block discarded – undo |
|
271
|
271
|
* @throws \Exception |
|
272
|
272
|
*/ |
|
273
|
273
|
private function loadSabrePluginsFromInfoXml(array $classes): array { |
|
274
|
|
- return array_map(function (string $className): ServerPlugin { |
|
|
274
|
+ return array_map(function(string $className): ServerPlugin { |
|
275
|
275
|
$instance = $this->createClass($className); |
|
276
|
276
|
if (!($instance instanceof ServerPlugin)) { |
|
277
|
|
- throw new \Exception('Sabre server plugin ' . $className . ' does not implement the ' . ServerPlugin::class . ' interface'); |
|
|
277
|
+ throw new \Exception('Sabre server plugin '.$className.' does not implement the '.ServerPlugin::class.' interface'); |
|
278
|
278
|
} |
|
279
|
279
|
return $instance; |
|
280
|
280
|
}, $classes); |
|
@@ -285,10 +285,10 @@ discard block |
|
|
block discarded – undo |
|
285
|
285
|
* @return Collection[] |
|
286
|
286
|
*/ |
|
287
|
287
|
private function loadSabreCollectionsFromInfoXml(array $classes): array { |
|
288
|
|
- return array_map(function (string $className): Collection { |
|
|
288
|
+ return array_map(function(string $className): Collection { |
|
289
|
289
|
$instance = $this->createClass($className); |
|
290
|
290
|
if (!($instance instanceof Collection)) { |
|
291
|
|
- throw new \Exception('Sabre collection plugin ' . $className . ' does not implement the ' . Collection::class . ' interface'); |
|
|
291
|
+ throw new \Exception('Sabre collection plugin '.$className.' does not implement the '.Collection::class.' interface'); |
|
292
|
292
|
} |
|
293
|
293
|
return $instance; |
|
294
|
294
|
}, $classes); |
|
@@ -299,10 +299,10 @@ discard block |
|
|
block discarded – undo |
|
299
|
299
|
* @return IAddressBookProvider[] |
|
300
|
300
|
*/ |
|
301
|
301
|
private function loadSabreAddressBookPluginsFromInfoXml(array $classes): array { |
|
302
|
|
- return array_map(function (string $className): IAddressBookProvider { |
|
|
302
|
+ return array_map(function(string $className): IAddressBookProvider { |
|
303
|
303
|
$instance = $this->createClass($className); |
|
304
|
304
|
if (!($instance instanceof IAddressBookProvider)) { |
|
305
|
|
- throw new \Exception('Sabre address book plugin class ' . $className . ' does not implement the ' . IAddressBookProvider::class . ' interface'); |
|
|
305
|
+ throw new \Exception('Sabre address book plugin class '.$className.' does not implement the '.IAddressBookProvider::class.' interface'); |
|
306
|
306
|
} |
|
307
|
307
|
return $instance; |
|
308
|
308
|
}, $classes); |
|
@@ -313,10 +313,10 @@ discard block |
|
|
block discarded – undo |
|
313
|
313
|
* @return ICalendarProvider[] |
|
314
|
314
|
*/ |
|
315
|
315
|
private function loadSabreCalendarPluginsFromInfoXml(array $classes): array { |
|
316
|
|
- return array_map(function (string $className): ICalendarProvider { |
|
|
316
|
+ return array_map(function(string $className): ICalendarProvider { |
|
317
|
317
|
$instance = $this->createClass($className); |
|
318
|
318
|
if (!($instance instanceof ICalendarProvider)) { |
|
319
|
|
- throw new \Exception('Sabre calendar plugin class ' . $className . ' does not implement the ' . ICalendarProvider::class . ' interface'); |
|
|
319
|
+ throw new \Exception('Sabre calendar plugin class '.$className.' does not implement the '.ICalendarProvider::class.' interface'); |
|
320
|
320
|
} |
|
321
|
321
|
return $instance; |
|
322
|
322
|
}, $classes); |