@@ -10,28 +10,28 @@ |
||
| 10 | 10 | use OCP\User\IAvailabilityCoordinator; |
| 11 | 11 | |
| 12 | 12 | class Capabilities implements ICapability { |
| 13 | - public function __construct( |
|
| 14 | - private IConfig $config, |
|
| 15 | - private IAvailabilityCoordinator $coordinator, |
|
| 16 | - ) { |
|
| 17 | - } |
|
| 13 | + public function __construct( |
|
| 14 | + private IConfig $config, |
|
| 15 | + private IAvailabilityCoordinator $coordinator, |
|
| 16 | + ) { |
|
| 17 | + } |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @return array{dav: array{chunking: string, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}} |
|
| 21 | - */ |
|
| 22 | - public function getCapabilities() { |
|
| 23 | - $capabilities = [ |
|
| 24 | - 'dav' => [ |
|
| 25 | - 'chunking' => '1.0', |
|
| 26 | - ] |
|
| 27 | - ]; |
|
| 28 | - if ($this->config->getSystemValueBool('bulkupload.enabled', false)) { |
|
| 29 | - $capabilities['dav']['bulkupload'] = '1.0'; |
|
| 30 | - } |
|
| 31 | - if ($this->coordinator->isEnabled()) { |
|
| 32 | - $capabilities['dav']['absence-supported'] = true; |
|
| 33 | - $capabilities['dav']['absence-replacement'] = true; |
|
| 34 | - } |
|
| 35 | - return $capabilities; |
|
| 36 | - } |
|
| 19 | + /** |
|
| 20 | + * @return array{dav: array{chunking: string, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}} |
|
| 21 | + */ |
|
| 22 | + public function getCapabilities() { |
|
| 23 | + $capabilities = [ |
|
| 24 | + 'dav' => [ |
|
| 25 | + 'chunking' => '1.0', |
|
| 26 | + ] |
|
| 27 | + ]; |
|
| 28 | + if ($this->config->getSystemValueBool('bulkupload.enabled', false)) { |
|
| 29 | + $capabilities['dav']['bulkupload'] = '1.0'; |
|
| 30 | + } |
|
| 31 | + if ($this->coordinator->isEnabled()) { |
|
| 32 | + $capabilities['dav']['absence-supported'] = true; |
|
| 33 | + $capabilities['dav']['absence-replacement'] = true; |
|
| 34 | + } |
|
| 35 | + return $capabilities; |
|
| 36 | + } |
|
| 37 | 37 | } |