@@ -29,21 +29,21 @@ |
||
| 29 | 29 | use OC\AppFramework\DependencyInjection\DIContainer; |
| 30 | 30 | |
| 31 | 31 | class RouteActionHandler { |
| 32 | - private $controllerName; |
|
| 33 | - private $actionName; |
|
| 34 | - private $container; |
|
| 32 | + private $controllerName; |
|
| 33 | + private $actionName; |
|
| 34 | + private $container; |
|
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * @param string $controllerName |
|
| 38 | - * @param string $actionName |
|
| 39 | - */ |
|
| 40 | - public function __construct(DIContainer $container, $controllerName, $actionName) { |
|
| 41 | - $this->controllerName = $controllerName; |
|
| 42 | - $this->actionName = $actionName; |
|
| 43 | - $this->container = $container; |
|
| 44 | - } |
|
| 36 | + /** |
|
| 37 | + * @param string $controllerName |
|
| 38 | + * @param string $actionName |
|
| 39 | + */ |
|
| 40 | + public function __construct(DIContainer $container, $controllerName, $actionName) { |
|
| 41 | + $this->controllerName = $controllerName; |
|
| 42 | + $this->actionName = $actionName; |
|
| 43 | + $this->container = $container; |
|
| 44 | + } |
|
| 45 | 45 | |
| 46 | - public function __invoke($params) { |
|
| 47 | - App::main($this->controllerName, $this->actionName, $this->container, $params); |
|
| 48 | - } |
|
| 46 | + public function __invoke($params) { |
|
| 47 | + App::main($this->controllerName, $this->actionName, $this->container, $params); |
|
| 48 | + } |
|
| 49 | 49 | } |
@@ -30,48 +30,48 @@ |
||
| 30 | 30 | use Sabre\DAV\INode; |
| 31 | 31 | |
| 32 | 32 | class RestoreFolder implements ICollection, IMoveTarget { |
| 33 | - public function createFile($name, $data = null) { |
|
| 34 | - throw new Forbidden(); |
|
| 35 | - } |
|
| 33 | + public function createFile($name, $data = null) { |
|
| 34 | + throw new Forbidden(); |
|
| 35 | + } |
|
| 36 | 36 | |
| 37 | - public function createDirectory($name) { |
|
| 38 | - throw new Forbidden(); |
|
| 39 | - } |
|
| 37 | + public function createDirectory($name) { |
|
| 38 | + throw new Forbidden(); |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - public function getChild($name) { |
|
| 42 | - return null; |
|
| 43 | - } |
|
| 41 | + public function getChild($name) { |
|
| 42 | + return null; |
|
| 43 | + } |
|
| 44 | 44 | |
| 45 | - public function delete() { |
|
| 46 | - throw new Forbidden(); |
|
| 47 | - } |
|
| 45 | + public function delete() { |
|
| 46 | + throw new Forbidden(); |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - public function getName() { |
|
| 50 | - return 'restore'; |
|
| 51 | - } |
|
| 49 | + public function getName() { |
|
| 50 | + return 'restore'; |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | - public function setName($name) { |
|
| 54 | - throw new Forbidden(); |
|
| 55 | - } |
|
| 53 | + public function setName($name) { |
|
| 54 | + throw new Forbidden(); |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | - public function getLastModified(): int { |
|
| 58 | - return 0; |
|
| 59 | - } |
|
| 57 | + public function getLastModified(): int { |
|
| 58 | + return 0; |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | - public function getChildren(): array { |
|
| 62 | - return []; |
|
| 63 | - } |
|
| 61 | + public function getChildren(): array { |
|
| 62 | + return []; |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | - public function childExists($name): bool { |
|
| 66 | - return false; |
|
| 67 | - } |
|
| 65 | + public function childExists($name): bool { |
|
| 66 | + return false; |
|
| 67 | + } |
|
| 68 | 68 | |
| 69 | - public function moveInto($targetName, $sourcePath, INode $sourceNode): bool { |
|
| 70 | - if (!($sourceNode instanceof ITrash)) { |
|
| 71 | - return false; |
|
| 72 | - } |
|
| 69 | + public function moveInto($targetName, $sourcePath, INode $sourceNode): bool { |
|
| 70 | + if (!($sourceNode instanceof ITrash)) { |
|
| 71 | + return false; |
|
| 72 | + } |
|
| 73 | 73 | |
| 74 | - return $sourceNode->restore(); |
|
| 75 | - } |
|
| 74 | + return $sourceNode->restore(); |
|
| 75 | + } |
|
| 76 | 76 | |
| 77 | 77 | } |
@@ -32,10 +32,10 @@ |
||
| 32 | 32 | * @since 18.0.0 |
| 33 | 33 | */ |
| 34 | 34 | interface IUrl { |
| 35 | - /** |
|
| 36 | - * returns a URL that is related to the entity, e.g. the link to a share |
|
| 37 | - * |
|
| 38 | - * @since 18.0.0 |
|
| 39 | - */ |
|
| 40 | - public function getUrl(): string; |
|
| 35 | + /** |
|
| 36 | + * returns a URL that is related to the entity, e.g. the link to a share |
|
| 37 | + * |
|
| 38 | + * @since 18.0.0 |
|
| 39 | + */ |
|
| 40 | + public function getUrl(): string; |
|
| 41 | 41 | } |
@@ -32,10 +32,10 @@ |
||
| 32 | 32 | * @since 18.0.0 |
| 33 | 33 | */ |
| 34 | 34 | interface IDisplayName { |
| 35 | - /** |
|
| 36 | - * returns the end user facing name of the object related to the entity |
|
| 37 | - * |
|
| 38 | - * @since 18.0.0 |
|
| 39 | - */ |
|
| 40 | - public function getDisplayName(): string; |
|
| 35 | + /** |
|
| 36 | + * returns the end user facing name of the object related to the entity |
|
| 37 | + * |
|
| 38 | + * @since 18.0.0 |
|
| 39 | + */ |
|
| 40 | + public function getDisplayName(): string; |
|
| 41 | 41 | } |
@@ -32,11 +32,11 @@ |
||
| 32 | 32 | * @since 18.0.0 |
| 33 | 33 | */ |
| 34 | 34 | interface IIcon { |
| 35 | - /** |
|
| 36 | - * returns a URL to an icon that is related to the entity, for instance |
|
| 37 | - * a group icon for groups. |
|
| 38 | - * |
|
| 39 | - * @since 18.0.0 |
|
| 40 | - */ |
|
| 41 | - public function getIconUrl(): string; |
|
| 35 | + /** |
|
| 36 | + * returns a URL to an icon that is related to the entity, for instance |
|
| 37 | + * a group icon for groups. |
|
| 38 | + * |
|
| 39 | + * @since 18.0.0 |
|
| 40 | + */ |
|
| 41 | + public function getIconUrl(): string; |
|
| 42 | 42 | } |
@@ -37,24 +37,24 @@ |
||
| 37 | 37 | * @method string getNodeName() |
| 38 | 38 | */ |
| 39 | 39 | class TransferOwnership extends Entity { |
| 40 | - /** @var string */ |
|
| 41 | - protected $sourceUser; |
|
| 40 | + /** @var string */ |
|
| 41 | + protected $sourceUser; |
|
| 42 | 42 | |
| 43 | - /** @var string */ |
|
| 44 | - protected $targetUser; |
|
| 43 | + /** @var string */ |
|
| 44 | + protected $targetUser; |
|
| 45 | 45 | |
| 46 | - /** @var integer */ |
|
| 47 | - protected $fileId; |
|
| 46 | + /** @var integer */ |
|
| 47 | + protected $fileId; |
|
| 48 | 48 | |
| 49 | - /** @var string */ |
|
| 50 | - protected $nodeName; |
|
| 49 | + /** @var string */ |
|
| 50 | + protected $nodeName; |
|
| 51 | 51 | |
| 52 | - public function __construct() { |
|
| 53 | - $this->addType('sourceUser', 'string'); |
|
| 54 | - $this->addType('targetUser', 'string'); |
|
| 55 | - $this->addType('fileId', 'integer'); |
|
| 56 | - $this->addType('nodeName', 'string'); |
|
| 57 | - } |
|
| 52 | + public function __construct() { |
|
| 53 | + $this->addType('sourceUser', 'string'); |
|
| 54 | + $this->addType('targetUser', 'string'); |
|
| 55 | + $this->addType('fileId', 'integer'); |
|
| 56 | + $this->addType('nodeName', 'string'); |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 | } |
@@ -34,49 +34,49 @@ |
||
| 34 | 34 | use Sabre\DAV\INode; |
| 35 | 35 | |
| 36 | 36 | class RestoreFolder implements ICollection, IMoveTarget { |
| 37 | - public function createFile($name, $data = null) { |
|
| 38 | - throw new Forbidden(); |
|
| 39 | - } |
|
| 40 | - |
|
| 41 | - public function createDirectory($name) { |
|
| 42 | - throw new Forbidden(); |
|
| 43 | - } |
|
| 44 | - |
|
| 45 | - public function getChild($name) { |
|
| 46 | - return null; |
|
| 47 | - } |
|
| 48 | - |
|
| 49 | - public function delete() { |
|
| 50 | - throw new Forbidden(); |
|
| 51 | - } |
|
| 52 | - |
|
| 53 | - public function getName() { |
|
| 54 | - return 'restore'; |
|
| 55 | - } |
|
| 56 | - |
|
| 57 | - public function setName($name) { |
|
| 58 | - throw new Forbidden(); |
|
| 59 | - } |
|
| 60 | - |
|
| 61 | - public function getLastModified(): int { |
|
| 62 | - return 0; |
|
| 63 | - } |
|
| 64 | - |
|
| 65 | - public function getChildren(): array { |
|
| 66 | - return []; |
|
| 67 | - } |
|
| 68 | - |
|
| 69 | - public function childExists($name): bool { |
|
| 70 | - return false; |
|
| 71 | - } |
|
| 72 | - |
|
| 73 | - public function moveInto($targetName, $sourcePath, INode $sourceNode): bool { |
|
| 74 | - if (!($sourceNode instanceof VersionFile)) { |
|
| 75 | - return false; |
|
| 76 | - } |
|
| 77 | - |
|
| 78 | - $sourceNode->rollBack(); |
|
| 79 | - return true; |
|
| 80 | - } |
|
| 37 | + public function createFile($name, $data = null) { |
|
| 38 | + throw new Forbidden(); |
|
| 39 | + } |
|
| 40 | + |
|
| 41 | + public function createDirectory($name) { |
|
| 42 | + throw new Forbidden(); |
|
| 43 | + } |
|
| 44 | + |
|
| 45 | + public function getChild($name) { |
|
| 46 | + return null; |
|
| 47 | + } |
|
| 48 | + |
|
| 49 | + public function delete() { |
|
| 50 | + throw new Forbidden(); |
|
| 51 | + } |
|
| 52 | + |
|
| 53 | + public function getName() { |
|
| 54 | + return 'restore'; |
|
| 55 | + } |
|
| 56 | + |
|
| 57 | + public function setName($name) { |
|
| 58 | + throw new Forbidden(); |
|
| 59 | + } |
|
| 60 | + |
|
| 61 | + public function getLastModified(): int { |
|
| 62 | + return 0; |
|
| 63 | + } |
|
| 64 | + |
|
| 65 | + public function getChildren(): array { |
|
| 66 | + return []; |
|
| 67 | + } |
|
| 68 | + |
|
| 69 | + public function childExists($name): bool { |
|
| 70 | + return false; |
|
| 71 | + } |
|
| 72 | + |
|
| 73 | + public function moveInto($targetName, $sourcePath, INode $sourceNode): bool { |
|
| 74 | + if (!($sourceNode instanceof VersionFile)) { |
|
| 75 | + return false; |
|
| 76 | + } |
|
| 77 | + |
|
| 78 | + $sourceNode->rollBack(); |
|
| 79 | + return true; |
|
| 80 | + } |
|
| 81 | 81 | |
| 82 | 82 | } |
@@ -27,5 +27,5 @@ |
||
| 27 | 27 | * @deprecated 18.0.0 use \OCP\EventDispatcher\IEventDispatcher |
| 28 | 28 | */ |
| 29 | 29 | abstract class BasicEmitter implements Emitter { |
| 30 | - use EmitterTrait; |
|
| 30 | + use EmitterTrait; |
|
| 31 | 31 | } |
@@ -36,12 +36,12 @@ |
||
| 36 | 36 | * @since 18.0.0 |
| 37 | 37 | */ |
| 38 | 38 | interface IFileCheck extends IEntityCheck { |
| 39 | - /** |
|
| 40 | - * @param IStorage $storage |
|
| 41 | - * @param string $path |
|
| 42 | - * @param bool $isDir |
|
| 43 | - * @since 18.0.0 |
|
| 44 | - */ |
|
| 45 | - public function setFileInfo(IStorage $storage, string $path, bool $isDir = false): void; |
|
| 39 | + /** |
|
| 40 | + * @param IStorage $storage |
|
| 41 | + * @param string $path |
|
| 42 | + * @param bool $isDir |
|
| 43 | + * @since 18.0.0 |
|
| 44 | + */ |
|
| 45 | + public function setFileInfo(IStorage $storage, string $path, bool $isDir = false): void; |
|
| 46 | 46 | |
| 47 | 47 | } |