Skip to content

Commit

Permalink
chore: Automatic fixes from cs:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Jul 24, 2024
1 parent 41595c4 commit cf653bf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 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
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 cf653bf

Please sign in to comment.