@@ -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); |
@@ -163,6 +163,9 @@ |
||
163 | 163 | |
164 | 164 | /** |
165 | 165 | * Change stream. |
166 | + * @param boolean $after |
|
167 | + * @param boolean $query |
|
168 | + * @param boolean $offset |
|
166 | 169 | */ |
167 | 170 | public function watch(DataObjectInterface $object, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
168 | 171 | { |
@@ -112,7 +112,7 @@ |
||
112 | 112 | 'namespace_2' => $object_2->getCollection()->getResourceNamespace()->getName(), |
113 | 113 | 'object_2' => $object_2->getId(), |
114 | 114 | 'data' => $context, |
115 | - ]; |
|
115 | + ]; |
|
116 | 116 | |
117 | 117 | $exists = $this->db->{self::COLLECTION_NAME}->findOne([ |
118 | 118 | '$or' => [ |
@@ -63,6 +63,10 @@ discard block |
||
63 | 63 | |
64 | 64 | /** |
65 | 65 | * Get all. |
66 | + * @param integer $query |
|
67 | + * @param integer $offset |
|
68 | + * @param integer $limit |
|
69 | + * @param integer $sort |
|
66 | 70 | */ |
67 | 71 | public function getAll(?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
68 | 72 | { |
@@ -144,6 +148,10 @@ discard block |
||
144 | 148 | |
145 | 149 | /** |
146 | 150 | * Change stream. |
151 | + * @param boolean $query |
|
152 | + * @param boolean $offset |
|
153 | + * @param boolean $limit |
|
154 | + * @param boolean $sort |
|
147 | 155 | */ |
148 | 156 | public function watch(?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator |
149 | 157 | { |