Completed
Push — master ( e9a4c1...1f7593 )
by Raffael
09:08 queued 01:05
created
src/lib/Endpoint/Moodle/ApiClient.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/lib/Endpoint/AbstractRest.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -218,6 +218,7 @@
 block discarded – undo
218 218
 
219 219
     /**
220 220
      * Verify response.
221
+     * @param \Psr\Http\Message\ResponseInterface $response
221 222
      */
222 223
     protected function getResponse($response): array
223 224
     {
Please login to merge, or discard this patch.
src/lib/AccessRule.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/lib/Storage/Balloon/ApiClient.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/lib/Async/Sync.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -398,9 +398,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/lib/AttributeMap.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -296,6 +296,7 @@
 block discarded – undo
296 296
 
297 297
     /**
298 298
      * Process ruleset.
299
+     * @return string
299 300
      */
300 301
     protected function rewrite($value, array $ruleset)
301 302
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/lib/Endpoint/AbstractEndpoint.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/lib/Collection.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/lib/DataObjectRelation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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'],
Please login to merge, or discard this patch.