From 41595c42c79afb427b940d823168e091f73e7baa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Jul 2024 07:33:45 +0000 Subject: [PATCH 1/2] Chore(deps-dev): Bump nextcloud/coding-standard from 1.1.1 to 1.2.1 Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.1.1 to 1.2.1. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v1.1.1...v1.2.1) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- composer.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.lock b/composer.lock index 5fcffc00..400d5f5c 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", From cf653bfb7a55c17cc7d8292ce491a27799f2dbaf Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 24 Jul 2024 09:51:16 +0200 Subject: [PATCH 2/2] chore: Automatic fixes from cs:fix Signed-off-by: Louis Chemineau --- appinfo/routes.php | 20 ++++++++++---------- lib/Exceptions/FileLockedException.php | 2 +- lib/Exceptions/FileNotLockedException.php | 2 +- lib/Exceptions/KeyExistsException.php | 2 +- lib/Exceptions/MetaDataExistsException.php | 2 +- lib/Exceptions/MissingMetaDataException.php | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) 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/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); } }