@@ -27,11 +27,11 @@ |
||
27 | 27 | * @deprecated 23.0.0 |
28 | 28 | */ |
29 | 29 | interface ICapabilitiesApi { |
30 | - /** |
|
31 | - * @return array The capabilities in the form of [$appId => [$capability => $value]] |
|
32 | - * |
|
33 | - * @since 13.0.0 |
|
34 | - * @deprecated 23.0.0 |
|
35 | - */ |
|
36 | - public function getCapabilities(); |
|
30 | + /** |
|
31 | + * @return array The capabilities in the form of [$appId => [$capability => $value]] |
|
32 | + * |
|
33 | + * @since 13.0.0 |
|
34 | + * @deprecated 23.0.0 |
|
35 | + */ |
|
36 | + public function getCapabilities(); |
|
37 | 37 | } |
@@ -30,13 +30,13 @@ |
||
30 | 30 | * @deprecated 23.0.0 |
31 | 31 | */ |
32 | 32 | interface IApiFactory { |
33 | - /** |
|
34 | - * @param IInstance $instance |
|
35 | - * @param ICredentials $credentials |
|
36 | - * @return IApiCollection |
|
37 | - * |
|
38 | - * @since 13.0.0 |
|
39 | - * @deprecated 23.0.0 |
|
40 | - */ |
|
41 | - public function getApiCollection(IInstance $instance, ICredentials $credentials); |
|
33 | + /** |
|
34 | + * @param IInstance $instance |
|
35 | + * @param ICredentials $credentials |
|
36 | + * @return IApiCollection |
|
37 | + * |
|
38 | + * @since 13.0.0 |
|
39 | + * @deprecated 23.0.0 |
|
40 | + */ |
|
41 | + public function getApiCollection(IInstance $instance, ICredentials $credentials); |
|
42 | 42 | } |
@@ -29,19 +29,19 @@ |
||
29 | 29 | * @deprecated 23.0.0 |
30 | 30 | */ |
31 | 31 | interface IApiCollection { |
32 | - /** |
|
33 | - * @return IUserApi |
|
34 | - * |
|
35 | - * @since 13.0.0 |
|
36 | - * @deprecated 23.0.0 |
|
37 | - */ |
|
38 | - public function getUserApi(); |
|
32 | + /** |
|
33 | + * @return IUserApi |
|
34 | + * |
|
35 | + * @since 13.0.0 |
|
36 | + * @deprecated 23.0.0 |
|
37 | + */ |
|
38 | + public function getUserApi(); |
|
39 | 39 | |
40 | - /** |
|
41 | - * @return ICapabilitiesApi |
|
42 | - * |
|
43 | - * @since 13.0.0 |
|
44 | - * @deprecated 23.0.0 |
|
45 | - */ |
|
46 | - public function getCapabilitiesApi(); |
|
40 | + /** |
|
41 | + * @return ICapabilitiesApi |
|
42 | + * |
|
43 | + * @since 13.0.0 |
|
44 | + * @deprecated 23.0.0 |
|
45 | + */ |
|
46 | + public function getCapabilitiesApi(); |
|
47 | 47 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | $result = $this->checker->verifyCoreSignature(); |
69 | 69 | $this->writeArrayInOutputFormat($input, $output, $result); |
70 | 70 | if (count($result) > 0) { |
71 | - $output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE); |
|
71 | + $output->writeln('<error>'.count($result).' errors found</error>', OutputInterface::VERBOSITY_VERBOSE); |
|
72 | 72 | return 1; |
73 | 73 | } |
74 | 74 | $output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE); |
@@ -18,38 +18,38 @@ |
||
18 | 18 | * @package OC\Core\Command\Integrity |
19 | 19 | */ |
20 | 20 | class CheckCore extends Base { |
21 | - public function __construct( |
|
22 | - private Checker $checker, |
|
23 | - ) { |
|
24 | - parent::__construct(); |
|
25 | - } |
|
21 | + public function __construct( |
|
22 | + private Checker $checker, |
|
23 | + ) { |
|
24 | + parent::__construct(); |
|
25 | + } |
|
26 | 26 | |
27 | - /** |
|
28 | - * {@inheritdoc } |
|
29 | - */ |
|
30 | - protected function configure() { |
|
31 | - parent::configure(); |
|
32 | - $this |
|
33 | - ->setName('integrity:check-core') |
|
34 | - ->setDescription('Check integrity of core code using a signature.'); |
|
35 | - } |
|
27 | + /** |
|
28 | + * {@inheritdoc } |
|
29 | + */ |
|
30 | + protected function configure() { |
|
31 | + parent::configure(); |
|
32 | + $this |
|
33 | + ->setName('integrity:check-core') |
|
34 | + ->setDescription('Check integrity of core code using a signature.'); |
|
35 | + } |
|
36 | 36 | |
37 | - /** |
|
38 | - * {@inheritdoc } |
|
39 | - */ |
|
40 | - protected function execute(InputInterface $input, OutputInterface $output): int { |
|
41 | - if (!$this->checker->isCodeCheckEnforced()) { |
|
42 | - $output->writeln('<comment>integrity:check-core can not be used on git checkouts</comment>'); |
|
43 | - return 2; |
|
44 | - } |
|
37 | + /** |
|
38 | + * {@inheritdoc } |
|
39 | + */ |
|
40 | + protected function execute(InputInterface $input, OutputInterface $output): int { |
|
41 | + if (!$this->checker->isCodeCheckEnforced()) { |
|
42 | + $output->writeln('<comment>integrity:check-core can not be used on git checkouts</comment>'); |
|
43 | + return 2; |
|
44 | + } |
|
45 | 45 | |
46 | - $result = $this->checker->verifyCoreSignature(); |
|
47 | - $this->writeArrayInOutputFormat($input, $output, $result); |
|
48 | - if (count($result) > 0) { |
|
49 | - $output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE); |
|
50 | - return 1; |
|
51 | - } |
|
52 | - $output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE); |
|
53 | - return 0; |
|
54 | - } |
|
46 | + $result = $this->checker->verifyCoreSignature(); |
|
47 | + $this->writeArrayInOutputFormat($input, $output, $result); |
|
48 | + if (count($result) > 0) { |
|
49 | + $output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE); |
|
50 | + return 1; |
|
51 | + } |
|
52 | + $output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE); |
|
53 | + return 0; |
|
54 | + } |
|
55 | 55 | } |
@@ -168,11 +168,11 @@ discard block |
||
168 | 168 | public function castColumn($column, $type): IQueryFunction { |
169 | 169 | if ($type === IQueryBuilder::PARAM_STR) { |
170 | 170 | $column = $this->helper->quoteColumnName($column); |
171 | - return new QueryFunction('to_char(' . $column . ')'); |
|
171 | + return new QueryFunction('to_char('.$column.')'); |
|
172 | 172 | } |
173 | 173 | if ($type === IQueryBuilder::PARAM_INT) { |
174 | 174 | $column = $this->helper->quoteColumnName($column); |
175 | - return new QueryFunction('to_number(to_char(' . $column . '))'); |
|
175 | + return new QueryFunction('to_number(to_char('.$column.'))'); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | return parent::castColumn($column, $type); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * @inheritdoc |
183 | 183 | */ |
184 | 184 | public function like($x, $y, $type = null): string { |
185 | - return parent::like($x, $y, $type) . " ESCAPE '\\'"; |
|
185 | + return parent::like($x, $y, $type)." ESCAPE '\\'"; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
@@ -14,93 +14,93 @@ |
||
14 | 14 | use OCP\DB\QueryBuilder\IQueryFunction; |
15 | 15 | |
16 | 16 | class OCIExpressionBuilder extends ExpressionBuilder { |
17 | - /** |
|
18 | - * @param mixed $column |
|
19 | - * @param mixed|null $type |
|
20 | - * @return array|IQueryFunction|string |
|
21 | - */ |
|
22 | - protected function prepareColumn($column, $type) { |
|
23 | - if ($type === IQueryBuilder::PARAM_STR && !is_array($column) && !($column instanceof IParameter) && !($column instanceof ILiteral)) { |
|
24 | - $column = $this->castColumn($column, $type); |
|
25 | - } |
|
17 | + /** |
|
18 | + * @param mixed $column |
|
19 | + * @param mixed|null $type |
|
20 | + * @return array|IQueryFunction|string |
|
21 | + */ |
|
22 | + protected function prepareColumn($column, $type) { |
|
23 | + if ($type === IQueryBuilder::PARAM_STR && !is_array($column) && !($column instanceof IParameter) && !($column instanceof ILiteral)) { |
|
24 | + $column = $this->castColumn($column, $type); |
|
25 | + } |
|
26 | 26 | |
27 | - return parent::prepareColumn($column, $type); |
|
28 | - } |
|
27 | + return parent::prepareColumn($column, $type); |
|
28 | + } |
|
29 | 29 | |
30 | - /** |
|
31 | - * @inheritdoc |
|
32 | - */ |
|
33 | - public function in($x, $y, $type = null): string { |
|
34 | - $x = $this->prepareColumn($x, $type); |
|
35 | - $y = $this->prepareColumn($y, $type); |
|
30 | + /** |
|
31 | + * @inheritdoc |
|
32 | + */ |
|
33 | + public function in($x, $y, $type = null): string { |
|
34 | + $x = $this->prepareColumn($x, $type); |
|
35 | + $y = $this->prepareColumn($y, $type); |
|
36 | 36 | |
37 | - return $this->expressionBuilder->in($x, $y); |
|
38 | - } |
|
37 | + return $this->expressionBuilder->in($x, $y); |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * @inheritdoc |
|
42 | - */ |
|
43 | - public function notIn($x, $y, $type = null): string { |
|
44 | - $x = $this->prepareColumn($x, $type); |
|
45 | - $y = $this->prepareColumn($y, $type); |
|
40 | + /** |
|
41 | + * @inheritdoc |
|
42 | + */ |
|
43 | + public function notIn($x, $y, $type = null): string { |
|
44 | + $x = $this->prepareColumn($x, $type); |
|
45 | + $y = $this->prepareColumn($y, $type); |
|
46 | 46 | |
47 | - return $this->expressionBuilder->notIn($x, $y); |
|
48 | - } |
|
47 | + return $this->expressionBuilder->notIn($x, $y); |
|
48 | + } |
|
49 | 49 | |
50 | - /** |
|
51 | - * Creates a $x = '' statement, because Oracle needs a different check |
|
52 | - * |
|
53 | - * @param string|ILiteral|IParameter|IQueryFunction $x The field in string format to be inspected by the comparison. |
|
54 | - * @return string |
|
55 | - * @since 13.0.0 |
|
56 | - */ |
|
57 | - public function emptyString($x): string { |
|
58 | - return $this->isNull($x); |
|
59 | - } |
|
50 | + /** |
|
51 | + * Creates a $x = '' statement, because Oracle needs a different check |
|
52 | + * |
|
53 | + * @param string|ILiteral|IParameter|IQueryFunction $x The field in string format to be inspected by the comparison. |
|
54 | + * @return string |
|
55 | + * @since 13.0.0 |
|
56 | + */ |
|
57 | + public function emptyString($x): string { |
|
58 | + return $this->isNull($x); |
|
59 | + } |
|
60 | 60 | |
61 | - /** |
|
62 | - * Creates a `$x <> ''` statement, because Oracle needs a different check |
|
63 | - * |
|
64 | - * @param string|ILiteral|IParameter|IQueryFunction $x The field in string format to be inspected by the comparison. |
|
65 | - * @return string |
|
66 | - * @since 13.0.0 |
|
67 | - */ |
|
68 | - public function nonEmptyString($x): string { |
|
69 | - return $this->isNotNull($x); |
|
70 | - } |
|
61 | + /** |
|
62 | + * Creates a `$x <> ''` statement, because Oracle needs a different check |
|
63 | + * |
|
64 | + * @param string|ILiteral|IParameter|IQueryFunction $x The field in string format to be inspected by the comparison. |
|
65 | + * @return string |
|
66 | + * @since 13.0.0 |
|
67 | + */ |
|
68 | + public function nonEmptyString($x): string { |
|
69 | + return $this->isNotNull($x); |
|
70 | + } |
|
71 | 71 | |
72 | - /** |
|
73 | - * Returns a IQueryFunction that casts the column to the given type |
|
74 | - * |
|
75 | - * @param string|IQueryFunction $column |
|
76 | - * @param mixed $type One of IQueryBuilder::PARAM_* |
|
77 | - * @psalm-param IQueryBuilder::PARAM_* $type |
|
78 | - * @return IQueryFunction |
|
79 | - */ |
|
80 | - public function castColumn($column, $type): IQueryFunction { |
|
81 | - if ($type === IQueryBuilder::PARAM_STR) { |
|
82 | - $column = $this->helper->quoteColumnName($column); |
|
83 | - return new QueryFunction('to_char(' . $column . ')'); |
|
84 | - } |
|
85 | - if ($type === IQueryBuilder::PARAM_INT) { |
|
86 | - $column = $this->helper->quoteColumnName($column); |
|
87 | - return new QueryFunction('to_number(to_char(' . $column . '))'); |
|
88 | - } |
|
72 | + /** |
|
73 | + * Returns a IQueryFunction that casts the column to the given type |
|
74 | + * |
|
75 | + * @param string|IQueryFunction $column |
|
76 | + * @param mixed $type One of IQueryBuilder::PARAM_* |
|
77 | + * @psalm-param IQueryBuilder::PARAM_* $type |
|
78 | + * @return IQueryFunction |
|
79 | + */ |
|
80 | + public function castColumn($column, $type): IQueryFunction { |
|
81 | + if ($type === IQueryBuilder::PARAM_STR) { |
|
82 | + $column = $this->helper->quoteColumnName($column); |
|
83 | + return new QueryFunction('to_char(' . $column . ')'); |
|
84 | + } |
|
85 | + if ($type === IQueryBuilder::PARAM_INT) { |
|
86 | + $column = $this->helper->quoteColumnName($column); |
|
87 | + return new QueryFunction('to_number(to_char(' . $column . '))'); |
|
88 | + } |
|
89 | 89 | |
90 | - return parent::castColumn($column, $type); |
|
91 | - } |
|
90 | + return parent::castColumn($column, $type); |
|
91 | + } |
|
92 | 92 | |
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function like($x, $y, $type = null): string { |
|
97 | - return parent::like($x, $y, $type) . " ESCAPE '\\'"; |
|
98 | - } |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function like($x, $y, $type = null): string { |
|
97 | + return parent::like($x, $y, $type) . " ESCAPE '\\'"; |
|
98 | + } |
|
99 | 99 | |
100 | - /** |
|
101 | - * @inheritdoc |
|
102 | - */ |
|
103 | - public function iLike($x, $y, $type = null): string { |
|
104 | - return $this->like($this->functionBuilder->lower($x), $this->functionBuilder->lower($y)); |
|
105 | - } |
|
100 | + /** |
|
101 | + * @inheritdoc |
|
102 | + */ |
|
103 | + public function iLike($x, $y, $type = null): string { |
|
104 | + return $this->like($this->functionBuilder->lower($x), $this->functionBuilder->lower($y)); |
|
105 | + } |
|
106 | 106 | } |
@@ -31,75 +31,75 @@ |
||
31 | 31 | * @since 9.1 |
32 | 32 | */ |
33 | 33 | interface IOperation { |
34 | - /** |
|
35 | - * returns a translated name to be presented in the web interface |
|
36 | - * |
|
37 | - * Example: "Automated tagging" (en), "Aŭtomata etikedado" (eo) |
|
38 | - * |
|
39 | - * @since 18.0.0 |
|
40 | - */ |
|
41 | - public function getDisplayName(): string; |
|
34 | + /** |
|
35 | + * returns a translated name to be presented in the web interface |
|
36 | + * |
|
37 | + * Example: "Automated tagging" (en), "Aŭtomata etikedado" (eo) |
|
38 | + * |
|
39 | + * @since 18.0.0 |
|
40 | + */ |
|
41 | + public function getDisplayName(): string; |
|
42 | 42 | |
43 | - /** |
|
44 | - * returns a translated, descriptive text to be presented in the web interface. |
|
45 | - * |
|
46 | - * It should be short and precise. |
|
47 | - * |
|
48 | - * Example: "Tag based automatic deletion of files after a given time." (en) |
|
49 | - * |
|
50 | - * @since 18.0.0 |
|
51 | - */ |
|
52 | - public function getDescription(): string; |
|
43 | + /** |
|
44 | + * returns a translated, descriptive text to be presented in the web interface. |
|
45 | + * |
|
46 | + * It should be short and precise. |
|
47 | + * |
|
48 | + * Example: "Tag based automatic deletion of files after a given time." (en) |
|
49 | + * |
|
50 | + * @since 18.0.0 |
|
51 | + */ |
|
52 | + public function getDescription(): string; |
|
53 | 53 | |
54 | - /** |
|
55 | - * returns the URL to the icon of the operator for display in the web interface. |
|
56 | - * |
|
57 | - * Usually, the implementation would utilize the `imagePath()` method of the |
|
58 | - * `\OCP\IURLGenerator` instance and simply return its result. |
|
59 | - * |
|
60 | - * Example implementation: return $this->urlGenerator->imagePath('myApp', 'cat.svg'); |
|
61 | - * |
|
62 | - * @since 18.0.0 |
|
63 | - */ |
|
64 | - public function getIcon(): string; |
|
54 | + /** |
|
55 | + * returns the URL to the icon of the operator for display in the web interface. |
|
56 | + * |
|
57 | + * Usually, the implementation would utilize the `imagePath()` method of the |
|
58 | + * `\OCP\IURLGenerator` instance and simply return its result. |
|
59 | + * |
|
60 | + * Example implementation: return $this->urlGenerator->imagePath('myApp', 'cat.svg'); |
|
61 | + * |
|
62 | + * @since 18.0.0 |
|
63 | + */ |
|
64 | + public function getIcon(): string; |
|
65 | 65 | |
66 | - /** |
|
67 | - * returns whether the operation can be used in the requested scope. |
|
68 | - * |
|
69 | - * Scope IDs are defined as constants in OCP\WorkflowEngine\IManager. At |
|
70 | - * time of writing these are SCOPE_ADMIN and SCOPE_USER. |
|
71 | - * |
|
72 | - * For possibly unknown future scopes the recommended behaviour is: if |
|
73 | - * user scope is permitted, the default behaviour should return `true`, |
|
74 | - * otherwise `false`. |
|
75 | - * |
|
76 | - * @param int $scope |
|
77 | - * @psalm-param IManager::SCOPE_* $scope |
|
78 | - * |
|
79 | - * @since 18.0.0 |
|
80 | - */ |
|
81 | - public function isAvailableForScope(int $scope): bool; |
|
66 | + /** |
|
67 | + * returns whether the operation can be used in the requested scope. |
|
68 | + * |
|
69 | + * Scope IDs are defined as constants in OCP\WorkflowEngine\IManager. At |
|
70 | + * time of writing these are SCOPE_ADMIN and SCOPE_USER. |
|
71 | + * |
|
72 | + * For possibly unknown future scopes the recommended behaviour is: if |
|
73 | + * user scope is permitted, the default behaviour should return `true`, |
|
74 | + * otherwise `false`. |
|
75 | + * |
|
76 | + * @param int $scope |
|
77 | + * @psalm-param IManager::SCOPE_* $scope |
|
78 | + * |
|
79 | + * @since 18.0.0 |
|
80 | + */ |
|
81 | + public function isAvailableForScope(int $scope): bool; |
|
82 | 82 | |
83 | - /** |
|
84 | - * Validates whether a configured workflow rule is valid. If it is not, |
|
85 | - * an `\UnexpectedValueException` is supposed to be thrown. |
|
86 | - * |
|
87 | - * @throws \UnexpectedValueException |
|
88 | - * @since 9.1 |
|
89 | - */ |
|
90 | - public function validateOperation(string $name, array $checks, string $operation): void; |
|
83 | + /** |
|
84 | + * Validates whether a configured workflow rule is valid. If it is not, |
|
85 | + * an `\UnexpectedValueException` is supposed to be thrown. |
|
86 | + * |
|
87 | + * @throws \UnexpectedValueException |
|
88 | + * @since 9.1 |
|
89 | + */ |
|
90 | + public function validateOperation(string $name, array $checks, string $operation): void; |
|
91 | 91 | |
92 | - /** |
|
93 | - * Is being called by the workflow engine when an event was triggered that |
|
94 | - * is configured for this operation. An evaluation whether the event |
|
95 | - * qualifies for this operation to run has still to be done by the |
|
96 | - * implementor by calling the RuleMatchers getMatchingOperations method |
|
97 | - * and evaluating the results. |
|
98 | - * |
|
99 | - * If the implementor is an IComplexOperation, this method will not be |
|
100 | - * called automatically. It can be used or left as no-op by the implementor. |
|
101 | - * |
|
102 | - * @since 18.0.0 |
|
103 | - */ |
|
104 | - public function onEvent(string $eventName, Event $event, IRuleMatcher $ruleMatcher): void; |
|
92 | + /** |
|
93 | + * Is being called by the workflow engine when an event was triggered that |
|
94 | + * is configured for this operation. An evaluation whether the event |
|
95 | + * qualifies for this operation to run has still to be done by the |
|
96 | + * implementor by calling the RuleMatchers getMatchingOperations method |
|
97 | + * and evaluating the results. |
|
98 | + * |
|
99 | + * If the implementor is an IComplexOperation, this method will not be |
|
100 | + * called automatically. It can be used or left as no-op by the implementor. |
|
101 | + * |
|
102 | + * @since 18.0.0 |
|
103 | + */ |
|
104 | + public function onEvent(string $eventName, Event $event, IRuleMatcher $ruleMatcher): void; |
|
105 | 105 | } |
@@ -31,26 +31,26 @@ |
||
31 | 31 | * @since 23.0.0 |
32 | 32 | */ |
33 | 33 | interface ITrustedDomainHelper { |
34 | - /** |
|
35 | - * Checks whether a given URL is considered as trusted from the list |
|
36 | - * of trusted domains in the server's config file. If no trusted domains |
|
37 | - * have been configured and the url is valid, returns true. |
|
38 | - * |
|
39 | - * @param string $url |
|
40 | - * @return bool |
|
41 | - * @since 23.0.0 |
|
42 | - */ |
|
43 | - public function isTrustedUrl(string $url): bool; |
|
34 | + /** |
|
35 | + * Checks whether a given URL is considered as trusted from the list |
|
36 | + * of trusted domains in the server's config file. If no trusted domains |
|
37 | + * have been configured and the url is valid, returns true. |
|
38 | + * |
|
39 | + * @param string $url |
|
40 | + * @return bool |
|
41 | + * @since 23.0.0 |
|
42 | + */ |
|
43 | + public function isTrustedUrl(string $url): bool; |
|
44 | 44 | |
45 | - /** |
|
46 | - * Checks whether a given domain is considered as trusted from the list |
|
47 | - * of trusted domains in the server's config file. If no trusted domains |
|
48 | - * have been configured, returns true. |
|
49 | - * This is used to prevent Host Header Poisoning. |
|
50 | - * |
|
51 | - * @param string $domainWithPort |
|
52 | - * @return bool |
|
53 | - * @since 23.0.0 |
|
54 | - */ |
|
55 | - public function isTrustedDomain(string $domainWithPort): bool; |
|
45 | + /** |
|
46 | + * Checks whether a given domain is considered as trusted from the list |
|
47 | + * of trusted domains in the server's config file. If no trusted domains |
|
48 | + * have been configured, returns true. |
|
49 | + * This is used to prevent Host Header Poisoning. |
|
50 | + * |
|
51 | + * @param string $domainWithPort |
|
52 | + * @return bool |
|
53 | + * @since 23.0.0 |
|
54 | + */ |
|
55 | + public function isTrustedDomain(string $domainWithPort): bool; |
|
56 | 56 | } |
@@ -27,30 +27,30 @@ |
||
27 | 27 | * @since 9.0.0 |
28 | 28 | */ |
29 | 29 | interface IPropagator { |
30 | - /** |
|
31 | - * Mark the beginning of a propagation batch |
|
32 | - * |
|
33 | - * Note that not all cache setups support propagation in which case this will be a noop |
|
34 | - * |
|
35 | - * Batching for cache setups that do support it has to be explicit since the cache state is not fully consistent |
|
36 | - * before the batch is committed. |
|
37 | - * |
|
38 | - * @since 9.1.0 |
|
39 | - */ |
|
40 | - public function beginBatch(); |
|
30 | + /** |
|
31 | + * Mark the beginning of a propagation batch |
|
32 | + * |
|
33 | + * Note that not all cache setups support propagation in which case this will be a noop |
|
34 | + * |
|
35 | + * Batching for cache setups that do support it has to be explicit since the cache state is not fully consistent |
|
36 | + * before the batch is committed. |
|
37 | + * |
|
38 | + * @since 9.1.0 |
|
39 | + */ |
|
40 | + public function beginBatch(); |
|
41 | 41 | |
42 | - /** |
|
43 | - * Commit the active propagation batch |
|
44 | - * |
|
45 | - * @since 9.1.0 |
|
46 | - */ |
|
47 | - public function commitBatch(); |
|
42 | + /** |
|
43 | + * Commit the active propagation batch |
|
44 | + * |
|
45 | + * @since 9.1.0 |
|
46 | + */ |
|
47 | + public function commitBatch(); |
|
48 | 48 | |
49 | - /** |
|
50 | - * @param string $internalPath |
|
51 | - * @param int $time |
|
52 | - * @param int $sizeDifference |
|
53 | - * @since 9.0.0 |
|
54 | - */ |
|
55 | - public function propagateChange($internalPath, $time, $sizeDifference = 0); |
|
49 | + /** |
|
50 | + * @param string $internalPath |
|
51 | + * @param int $time |
|
52 | + * @param int $sizeDifference |
|
53 | + * @since 9.0.0 |
|
54 | + */ |
|
55 | + public function propagateChange($internalPath, $time, $sizeDifference = 0); |
|
56 | 56 | } |
@@ -26,22 +26,22 @@ |
||
26 | 26 | * @since 12.0.0 |
27 | 27 | */ |
28 | 28 | interface ISearchOperator { |
29 | - /** |
|
30 | - * Get a query builder hint by name |
|
31 | - * |
|
32 | - * @param string $name |
|
33 | - * @param $default |
|
34 | - * @return mixed |
|
35 | - * @since 23.0.0 |
|
36 | - */ |
|
37 | - public function getQueryHint(string $name, $default); |
|
29 | + /** |
|
30 | + * Get a query builder hint by name |
|
31 | + * |
|
32 | + * @param string $name |
|
33 | + * @param $default |
|
34 | + * @return mixed |
|
35 | + * @since 23.0.0 |
|
36 | + */ |
|
37 | + public function getQueryHint(string $name, $default); |
|
38 | 38 | |
39 | - /** |
|
40 | - * Get a query builder hint |
|
41 | - * |
|
42 | - * @param string $name |
|
43 | - * @param $value |
|
44 | - * @since 23.0.0 |
|
45 | - */ |
|
46 | - public function setQueryHint(string $name, $value): void; |
|
39 | + /** |
|
40 | + * Get a query builder hint |
|
41 | + * |
|
42 | + * @param string $name |
|
43 | + * @param $value |
|
44 | + * @since 23.0.0 |
|
45 | + */ |
|
46 | + public function setQueryHint(string $name, $value): void; |
|
47 | 47 | } |