@@ -42,35 +42,35 @@ |
||
42 | 42 | * @since 6.0.0 |
43 | 43 | */ |
44 | 44 | interface IAppContainer extends ContainerInterface, IContainer { |
45 | - /** |
|
46 | - * used to return the appname of the set application |
|
47 | - * @return string the name of your application |
|
48 | - * @since 6.0.0 |
|
49 | - * @deprecated 20.0.0 |
|
50 | - */ |
|
51 | - public function getAppName(); |
|
45 | + /** |
|
46 | + * used to return the appname of the set application |
|
47 | + * @return string the name of your application |
|
48 | + * @since 6.0.0 |
|
49 | + * @deprecated 20.0.0 |
|
50 | + */ |
|
51 | + public function getAppName(); |
|
52 | 52 | |
53 | - /** |
|
54 | - * @return \OCP\IServerContainer |
|
55 | - * @since 6.0.0 |
|
56 | - * @deprecated 20.0.0 |
|
57 | - */ |
|
58 | - public function getServer(); |
|
53 | + /** |
|
54 | + * @return \OCP\IServerContainer |
|
55 | + * @since 6.0.0 |
|
56 | + * @deprecated 20.0.0 |
|
57 | + */ |
|
58 | + public function getServer(); |
|
59 | 59 | |
60 | - /** |
|
61 | - * @param string $middleWare |
|
62 | - * @return boolean |
|
63 | - * @since 6.0.0 |
|
64 | - * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerMiddleware |
|
65 | - */ |
|
66 | - public function registerMiddleWare($middleWare); |
|
60 | + /** |
|
61 | + * @param string $middleWare |
|
62 | + * @return boolean |
|
63 | + * @since 6.0.0 |
|
64 | + * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerMiddleware |
|
65 | + */ |
|
66 | + public function registerMiddleWare($middleWare); |
|
67 | 67 | |
68 | - /** |
|
69 | - * Register a capability |
|
70 | - * |
|
71 | - * @param string $serviceName e.g. 'OCA\Files\Capabilities' |
|
72 | - * @since 8.2.0 |
|
73 | - * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability |
|
74 | - */ |
|
75 | - public function registerCapability($serviceName); |
|
68 | + /** |
|
69 | + * Register a capability |
|
70 | + * |
|
71 | + * @param string $serviceName e.g. 'OCA\Files\Capabilities' |
|
72 | + * @since 8.2.0 |
|
73 | + * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability |
|
74 | + */ |
|
75 | + public function registerCapability($serviceName); |
|
76 | 76 | } |
@@ -33,12 +33,12 @@ |
||
33 | 33 | * @since 7.0.0 |
34 | 34 | */ |
35 | 35 | class MultipleObjectsReturnedException extends \Exception implements IMapperException { |
36 | - /** |
|
37 | - * Constructor |
|
38 | - * @param string $msg the error message |
|
39 | - * @since 7.0.0 |
|
40 | - */ |
|
41 | - public function __construct($msg) { |
|
42 | - parent::__construct($msg); |
|
43 | - } |
|
36 | + /** |
|
37 | + * Constructor |
|
38 | + * @param string $msg the error message |
|
39 | + * @since 7.0.0 |
|
40 | + */ |
|
41 | + public function __construct($msg) { |
|
42 | + parent::__construct($msg); |
|
43 | + } |
|
44 | 44 | } |
@@ -33,12 +33,12 @@ |
||
33 | 33 | * @since 7.0.0 |
34 | 34 | */ |
35 | 35 | class DoesNotExistException extends \Exception implements IMapperException { |
36 | - /** |
|
37 | - * Constructor |
|
38 | - * @param string $msg the error message |
|
39 | - * @since 7.0.0 |
|
40 | - */ |
|
41 | - public function __construct($msg) { |
|
42 | - parent::__construct($msg); |
|
43 | - } |
|
36 | + /** |
|
37 | + * Constructor |
|
38 | + * @param string $msg the error message |
|
39 | + * @since 7.0.0 |
|
40 | + */ |
|
41 | + public function __construct($msg) { |
|
42 | + parent::__construct($msg); |
|
43 | + } |
|
44 | 44 | } |
@@ -35,19 +35,19 @@ |
||
35 | 35 | * @since 9.0.0 |
36 | 36 | */ |
37 | 37 | interface ICommentsManagerFactory { |
38 | - /** |
|
39 | - * Constructor for the comments manager factory |
|
40 | - * |
|
41 | - * @param IServerContainer $serverContainer server container |
|
42 | - * @since 9.0.0 |
|
43 | - */ |
|
44 | - public function __construct(IServerContainer $serverContainer); |
|
38 | + /** |
|
39 | + * Constructor for the comments manager factory |
|
40 | + * |
|
41 | + * @param IServerContainer $serverContainer server container |
|
42 | + * @since 9.0.0 |
|
43 | + */ |
|
44 | + public function __construct(IServerContainer $serverContainer); |
|
45 | 45 | |
46 | - /** |
|
47 | - * creates and returns an instance of the ICommentsManager |
|
48 | - * |
|
49 | - * @return ICommentsManager |
|
50 | - * @since 9.0.0 |
|
51 | - */ |
|
52 | - public function getManager(); |
|
46 | + /** |
|
47 | + * creates and returns an instance of the ICommentsManager |
|
48 | + * |
|
49 | + * @return ICommentsManager |
|
50 | + * @since 9.0.0 |
|
51 | + */ |
|
52 | + public function getManager(); |
|
53 | 53 | } |
@@ -31,20 +31,20 @@ |
||
31 | 31 | * @since 21.0.0 |
32 | 32 | */ |
33 | 33 | final class GenericResponse implements IResponse { |
34 | - /** @var Response */ |
|
35 | - private $response; |
|
34 | + /** @var Response */ |
|
35 | + private $response; |
|
36 | 36 | |
37 | - /** |
|
38 | - * @since 21.0.0 |
|
39 | - */ |
|
40 | - public function __construct(Response $response) { |
|
41 | - $this->response = $response; |
|
42 | - } |
|
37 | + /** |
|
38 | + * @since 21.0.0 |
|
39 | + */ |
|
40 | + public function __construct(Response $response) { |
|
41 | + $this->response = $response; |
|
42 | + } |
|
43 | 43 | |
44 | - /** |
|
45 | - * @since 21.0.0 |
|
46 | - */ |
|
47 | - public function toHttpResponse(): Response { |
|
48 | - return $this->response; |
|
49 | - } |
|
44 | + /** |
|
45 | + * @since 21.0.0 |
|
46 | + */ |
|
47 | + public function toHttpResponse(): Response { |
|
48 | + return $this->response; |
|
49 | + } |
|
50 | 50 | } |
@@ -36,10 +36,10 @@ |
||
36 | 36 | * @since 21.0.0 |
37 | 37 | */ |
38 | 38 | interface IRequestContext { |
39 | - /** |
|
40 | - * @return IRequest |
|
41 | - * |
|
42 | - * @since 21.0.0 |
|
43 | - */ |
|
44 | - public function getHttpRequest(): IRequest; |
|
39 | + /** |
|
40 | + * @return IRequest |
|
41 | + * |
|
42 | + * @since 21.0.0 |
|
43 | + */ |
|
44 | + public function getHttpRequest(): IRequest; |
|
45 | 45 | } |
@@ -34,14 +34,14 @@ |
||
34 | 34 | * @since 21.0.0 |
35 | 35 | */ |
36 | 36 | interface IHandler { |
37 | - /** |
|
38 | - * @param string $service the name of the well known service, e.g. 'webfinger' |
|
39 | - * @param IRequestContext $context |
|
40 | - * @param IResponse|null $previousResponse the response of the previous handler, if any |
|
41 | - * |
|
42 | - * @return IResponse|null a response object if the request could be handled, null otherwise |
|
43 | - * |
|
44 | - * @since 21.0.0 |
|
45 | - */ |
|
46 | - public function handle(string $service, IRequestContext $context, ?IResponse $previousResponse): ?IResponse; |
|
37 | + /** |
|
38 | + * @param string $service the name of the well known service, e.g. 'webfinger' |
|
39 | + * @param IRequestContext $context |
|
40 | + * @param IResponse|null $previousResponse the response of the previous handler, if any |
|
41 | + * |
|
42 | + * @return IResponse|null a response object if the request could be handled, null otherwise |
|
43 | + * |
|
44 | + * @since 21.0.0 |
|
45 | + */ |
|
46 | + public function handle(string $service, IRequestContext $context, ?IResponse $previousResponse): ?IResponse; |
|
47 | 47 | } |
@@ -31,8 +31,8 @@ |
||
31 | 31 | * @since 21.0.0 |
32 | 32 | */ |
33 | 33 | interface IResponse { |
34 | - /** |
|
35 | - * @since 21.0.0 |
|
36 | - */ |
|
37 | - public function toHttpResponse(): Response; |
|
34 | + /** |
|
35 | + * @since 21.0.0 |
|
36 | + */ |
|
37 | + public function toHttpResponse(): Response; |
|
38 | 38 | } |
@@ -31,10 +31,10 @@ |
||
31 | 31 | * @since 18.0.1 |
32 | 32 | */ |
33 | 33 | interface IDataLogger { |
34 | - /** |
|
35 | - * allows to log custom data, similar to how logException works |
|
36 | - * |
|
37 | - * @since 18.0.1 |
|
38 | - */ |
|
39 | - public function logData(string $message, array $data, array $context = []): void; |
|
34 | + /** |
|
35 | + * allows to log custom data, similar to how logException works |
|
36 | + * |
|
37 | + * @since 18.0.1 |
|
38 | + */ |
|
39 | + public function logData(string $message, array $data, array $context = []): void; |
|
40 | 40 | } |