@@ -69,7 +69,7 @@ |
||
| 69 | 69 | /** |
| 70 | 70 | * Set options. |
| 71 | 71 | * |
| 72 | - * @param iterable $config |
|
| 72 | + * @param iterable|null $config |
|
| 73 | 73 | */ |
| 74 | 74 | public function setOptions(?Iterable $config): ApiClient |
| 75 | 75 | { |
@@ -60,6 +60,7 @@ |
||
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * Watch. |
| 63 | + * @param \Generator $cursor |
|
| 63 | 64 | */ |
| 64 | 65 | public static function watchAll(ServerRequestInterface $request, Identity $identity, Acl $acl, Iterable $cursor): ResponseInterface |
| 65 | 66 | { |
@@ -139,6 +139,7 @@ |
||
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | 141 | * Get all. |
| 142 | + * @param Closure $build |
|
| 142 | 143 | */ |
| 143 | 144 | public function getAllFrom(Collection $collection, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null, ?Closure $build = null): Generator |
| 144 | 145 | { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | ], |
| 45 | 45 | 'kind' => 'Secret', |
| 46 | 46 | 'data' => $this->getData(), |
| 47 | - ]; |
|
| 47 | + ]; |
|
| 48 | 48 | |
| 49 | 49 | return AttributeResolver::resolve($request, $this, $resource); |
| 50 | 50 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $resource = [ |
| 43 | 43 | 'kind' => 'AccessRule', |
| 44 | 44 | 'data' => $this->getData(), |
| 45 | - ]; |
|
| 45 | + ]; |
|
| 46 | 46 | |
| 47 | 47 | return AttributeResolver::resolve($request, $this, $resource); |
| 48 | 48 | } |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | 'http' => [ |
| 123 | 123 | 'method' => $method, |
| 124 | 124 | 'header' => "Content-Type: application/json\r\n". |
| 125 | - 'Authorization: Basic '.base64_encode($this->username.':'.$this->password)."\r\n", |
|
| 125 | + 'Authorization: Basic '.base64_encode($this->username.':'.$this->password)."\r\n", |
|
| 126 | 126 | ], |
| 127 | 127 | ]; |
| 128 | 128 | |
@@ -398,9 +398,9 @@ |
||
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | $mail = (new Message()) |
| 401 | - ->setSubject($subject) |
|
| 402 | - ->setBody($body) |
|
| 403 | - ->setEncoding('UTF-8'); |
|
| 401 | + ->setSubject($subject) |
|
| 402 | + ->setBody($body) |
|
| 403 | + ->setEncoding('UTF-8'); |
|
| 404 | 404 | |
| 405 | 405 | foreach ($this->data['notification']['receiver'] as $receiver) { |
| 406 | 406 | $mail->setTo($receiver); |
@@ -52,6 +52,10 @@ |
||
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * watch all. |
| 55 | + * @param boolean $query |
|
| 56 | + * @param boolean $offset |
|
| 57 | + * @param boolean $limit |
|
| 58 | + * @param boolean $sort |
|
| 55 | 59 | */ |
| 56 | 60 | public function watch(?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
| 57 | 61 | { |
@@ -296,6 +296,7 @@ |
||
| 296 | 296 | |
| 297 | 297 | /** |
| 298 | 298 | * Process ruleset. |
| 299 | + * @return string |
|
| 299 | 300 | */ |
| 300 | 301 | protected function rewrite($value, array $ruleset) |
| 301 | 302 | { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | if ($attrv === null || is_string($attrv) && strlen($attrv) === 0 || is_array($attrv) && count($attrv) === 0) { |
| 201 | 201 | if (isset($value['required']) && $value['required'] === false || !isset($value['required'])) { |
| 202 | 202 | $this->logger->debug('found attribute ['.$attr.'] but source attribute is empty, remove attribute from mapping', [ |
| 203 | - 'category' => get_class($this), |
|
| 203 | + 'category' => get_class($this), |
|
| 204 | 204 | ]); |
| 205 | 205 | |
| 206 | 206 | return null; |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | $this->logger->debug('resolved value for attribute ['.$attribute.'] is an array but is not declared as an array, use first array element instead', [ |
| 291 | - 'category' => get_class($this), |
|
| 291 | + 'category' => get_class($this), |
|
| 292 | 292 | ]); |
| 293 | 293 | |
| 294 | 294 | return current($value); |