diff --git a/appinfo/routes.php b/appinfo/routes.php index 5bb77484..1e7d0e50 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -27,21 +27,21 @@ return [ 'ocs' => [ # v1 - ['name' => 'Key#setPrivateKey', 'url' => '/api/v{apiVersion}/private-key', 'verb' => 'POST', 'requirements' => array('apiVersion' => '[1-2]')], - ['name' => 'Key#getPrivateKey', 'url' => '/api/v{apiVersion}/private-key', 'verb' => 'GET', 'requirements' => array('apiVersion' => '[1-2]')], - ['name' => 'Key#deletePrivateKey', 'url' => '/api/v{apiVersion}/private-key', 'verb' => 'DELETE', 'requirements' => array('apiVersion' => '[1-2]')], - ['name' => 'Key#createPublicKey', 'url' => '/api/v{apiVersion}/public-key', 'verb' => 'POST', 'requirements' => array('apiVersion' => '[1-2]')], - ['name' => 'Key#getPublicKeys', 'url' => '/api/v{apiVersion}/public-key', 'verb' => 'GET', 'requirements' => array('apiVersion' => '[1-2]')], - ['name' => 'Key#deletePublicKey', 'url' => '/api/v{apiVersion}/public-key', 'verb' => 'DELETE', 'requirements' => array('apiVersion' => '[1-2]')], - ['name' => 'Key#getPublicServerKey', 'url' => '/api/v{apiVersion}/server-key', 'verb' => 'GET', 'requirements' => array('apiVersion' => '[1-2]')], + ['name' => 'Key#setPrivateKey', 'url' => '/api/v{apiVersion}/private-key', 'verb' => 'POST', 'requirements' => ['apiVersion' => '[1-2]']], + ['name' => 'Key#getPrivateKey', 'url' => '/api/v{apiVersion}/private-key', 'verb' => 'GET', 'requirements' => ['apiVersion' => '[1-2]']], + ['name' => 'Key#deletePrivateKey', 'url' => '/api/v{apiVersion}/private-key', 'verb' => 'DELETE', 'requirements' => ['apiVersion' => '[1-2]']], + ['name' => 'Key#createPublicKey', 'url' => '/api/v{apiVersion}/public-key', 'verb' => 'POST', 'requirements' => ['apiVersion' => '[1-2]']], + ['name' => 'Key#getPublicKeys', 'url' => '/api/v{apiVersion}/public-key', 'verb' => 'GET', 'requirements' => ['apiVersion' => '[1-2]']], + ['name' => 'Key#deletePublicKey', 'url' => '/api/v{apiVersion}/public-key', 'verb' => 'DELETE', 'requirements' => ['apiVersion' => '[1-2]']], + ['name' => 'Key#getPublicServerKey', 'url' => '/api/v{apiVersion}/server-key', 'verb' => 'GET', 'requirements' => ['apiVersion' => '[1-2]']], ['name' => 'V1\MetaData#setMetaData', 'url' => '/api/v1/meta-data/{id}', 'verb' => 'POST'], ['name' => 'V1\MetaData#getMetaData', 'url' => '/api/v1/meta-data/{id}', 'verb' => 'GET'], ['name' => 'V1\MetaData#updateMetaData', 'url' => '/api/v1/meta-data/{id}', 'verb' => 'PUT'], ['name' => 'V1\MetaData#deleteMetaData', 'url' => '/api/v1/meta-data/{id}', 'verb' => 'DELETE'], ['name' => 'V1\MetaData#addMetadataFileDrop', 'url' => '/api/v1/meta-data/{id}/filedrop', 'verb' => 'PUT'], - ['name' => 'Encryption#removeEncryptedFolders', 'url' => '/api/v{apiVersion}/encrypted-files', 'verb' => 'DELETE', 'requirements' => array('apiVersion' => '[1-2]')], - ['name' => 'Encryption#setEncryptionFlag', 'url' => '/api/v{apiVersion}/encrypted/{id}', 'verb' => 'PUT', 'requirements' => array('apiVersion' => '[1-2]')], - ['name' => 'Encryption#removeEncryptionFlag', 'url' => '/api/v{apiVersion}/encrypted/{id}', 'verb' => 'DELETE', 'requirements' => array('apiVersion' => '[1-2]')], + ['name' => 'Encryption#removeEncryptedFolders', 'url' => '/api/v{apiVersion}/encrypted-files', 'verb' => 'DELETE', 'requirements' => ['apiVersion' => '[1-2]']], + ['name' => 'Encryption#setEncryptionFlag', 'url' => '/api/v{apiVersion}/encrypted/{id}', 'verb' => 'PUT', 'requirements' => ['apiVersion' => '[1-2]']], + ['name' => 'Encryption#removeEncryptionFlag', 'url' => '/api/v{apiVersion}/encrypted/{id}', 'verb' => 'DELETE', 'requirements' => ['apiVersion' => '[1-2]']], ['name' => 'V1\Locking#lockFolder', 'url' => '/api/v1/lock/{id}', 'verb' => 'POST'], ['name' => 'V1\Locking#unlockFolder', 'url' => '/api/v1/lock/{id}', 'verb' => 'DELETE'], # v2 diff --git a/composer.lock b/composer.lock index 02ce1876..96eba506 100644 --- a/composer.lock +++ b/composer.lock @@ -138,16 +138,16 @@ }, { "name": "nextcloud/coding-standard", - "version": "v1.1.1", + "version": "v1.2.1", "source": { "type": "git", "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "55def702fb9a37a219511e1d8c6fe8e37164c1fb" + "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/55def702fb9a37a219511e1d8c6fe8e37164c1fb", - "reference": "55def702fb9a37a219511e1d8c6fe8e37164c1fb", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", + "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", "shasum": "" }, "require": { @@ -173,9 +173,9 @@ "description": "Nextcloud coding standards for the php cs fixer", "support": { "issues": "https://github.com/nextcloud/coding-standard/issues", - "source": "https://github.com/nextcloud/coding-standard/tree/v1.1.1" + "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.1" }, - "time": "2023-06-01T12:05:01+00:00" + "time": "2024-02-01T14:54:37+00:00" }, { "name": "nextcloud/ocp", @@ -391,16 +391,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.42.0", + "version": "v3.59.3", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "c503b36b4ae065ac9dbfbda584e0827b32afa1c4" + "reference": "c855876e64de3431bc9279f27af7be40d11d7613" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/c503b36b4ae065ac9dbfbda584e0827b32afa1c4", - "reference": "c503b36b4ae065ac9dbfbda584e0827b32afa1c4", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/c855876e64de3431bc9279f27af7be40d11d7613", + "reference": "c855876e64de3431bc9279f27af7be40d11d7613", "shasum": "" }, "require": { @@ -437,9 +437,9 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.42.0" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.59.3" }, - "time": "2023-12-24T14:39:15+00:00" + "time": "2024-06-16T14:17:34+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/lib/Exceptions/FileLockedException.php b/lib/Exceptions/FileLockedException.php index b23fcf48..0b681192 100644 --- a/lib/Exceptions/FileLockedException.php +++ b/lib/Exceptions/FileLockedException.php @@ -28,7 +28,7 @@ use Throwable; class FileLockedException extends Exception { - public function __construct(string $message = 'File is locked', int $code = 0, Throwable $previous = null) { + public function __construct(string $message = 'File is locked', int $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous); } } diff --git a/lib/Exceptions/FileNotLockedException.php b/lib/Exceptions/FileNotLockedException.php index ccecd945..bce38c39 100644 --- a/lib/Exceptions/FileNotLockedException.php +++ b/lib/Exceptions/FileNotLockedException.php @@ -28,7 +28,7 @@ use Throwable; class FileNotLockedException extends Exception { - public function __construct(string $message = 'File is not locked', int $code = 0, Throwable $previous = null) { + public function __construct(string $message = 'File is not locked', int $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous); } } diff --git a/lib/Exceptions/KeyExistsException.php b/lib/Exceptions/KeyExistsException.php index 0ecd7ccf..a3926788 100644 --- a/lib/Exceptions/KeyExistsException.php +++ b/lib/Exceptions/KeyExistsException.php @@ -36,7 +36,7 @@ class KeyExistsException extends Exception { * @param int $code * @param Throwable|null $previous */ - public function __construct(string $message = 'key already exists', int $code = 0, Throwable $previous = null) { + public function __construct(string $message = 'key already exists', int $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous); } } diff --git a/lib/Exceptions/MetaDataExistsException.php b/lib/Exceptions/MetaDataExistsException.php index b9fd4380..bf8cbc2f 100644 --- a/lib/Exceptions/MetaDataExistsException.php +++ b/lib/Exceptions/MetaDataExistsException.php @@ -36,7 +36,7 @@ class MetaDataExistsException extends Exception { * @param int $code * @param Throwable|null $previous */ - public function __construct(string $message = 'meta data file already exists', int $code = 0, Throwable $previous = null) { + public function __construct(string $message = 'meta data file already exists', int $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous); } } diff --git a/lib/Exceptions/MissingMetaDataException.php b/lib/Exceptions/MissingMetaDataException.php index cd1bf0c4..241f9453 100644 --- a/lib/Exceptions/MissingMetaDataException.php +++ b/lib/Exceptions/MissingMetaDataException.php @@ -36,7 +36,7 @@ class MissingMetaDataException extends Exception { * @param int $code * @param Throwable|null $previous */ - public function __construct(string $message = 'can\'t find meta data file', int $code = 0, Throwable $previous = null) { + public function __construct(string $message = 'can\'t find meta data file', int $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous); } }