Skip to content

Commit

Permalink
Merge pull request #677 from nextcloud/dependabot/composer/nextcloud/…
Browse files Browse the repository at this point in the history
…coding-standard-1.2.1

Chore(deps-dev): Bump nextcloud/coding-standard from 1.1.1 to 1.2.1
  • Loading branch information
artonge committed Jul 24, 2024
2 parents aa62d55 + cf653bf commit 8d92f4f
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
20 changes: 10 additions & 10 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Exceptions/FileLockedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion lib/Exceptions/FileNotLockedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion lib/Exceptions/KeyExistsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion lib/Exceptions/MetaDataExistsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion lib/Exceptions/MissingMetaDataException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 8d92f4f

Please sign in to comment.