@@ -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); |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | '_links' => [ |
| 186 | 186 | 'namespace' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace)], |
| 187 | 187 | 'collection' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection)], |
| 188 | - ], |
|
| 188 | + ], |
|
| 189 | 189 | 'kind' => static::KIND, |
| 190 | 190 | 'namespace' => $namespace, |
| 191 | 191 | 'collection' => $collection, |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | 'data' => [ |
| 145 | 145 | 'schema' => $this->schema->getSchema(), |
| 146 | 146 | ], |
| 147 | - ]; |
|
| 147 | + ]; |
|
| 148 | 148 | |
| 149 | 149 | return AttributeResolver::resolve($request, $this, $resource); |
| 150 | 150 | } |
@@ -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); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | { |
| 43 | 43 | $resource = [ |
| 44 | 44 | '_links' => [ |
| 45 | - 'self' => ['href' => (string) $request->getUri()], |
|
| 45 | + 'self' => ['href' => (string) $request->getUri()], |
|
| 46 | 46 | ], |
| 47 | 47 | 'kind' => 'DataObjectRelation', |
| 48 | 48 | 'namespace' => $this->resource['namespace'], |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | 'kind' => 'Secret', |
| 48 | 48 | 'namespace' => $this->namespace->getName(), |
| 49 | 49 | 'data' => $this->getData(), |
| 50 | - ]; |
|
| 50 | + ]; |
|
| 51 | 51 | |
| 52 | 52 | return AttributeResolver::resolve($request, $this, $resource); |
| 53 | 53 | } |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | 'namespace' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace)], |
| 122 | 122 | 'collection' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection)], |
| 123 | 123 | 'endpoint' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection.'/endpoints/'.$endpoint)], |
| 124 | - ], |
|
| 124 | + ], |
|
| 125 | 125 | 'namespace' => $namespace, |
| 126 | 126 | 'collection' => $collection, |
| 127 | 127 | 'endpoint' => $endpoint, |