Completed
Push — master ( abe227...316baf )
by Raffael
13:55 queued 08:01
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/Rest/Helper.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -60,6 +60,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/lib/Resource/Factory.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -139,6 +139,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/lib/Secret.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
     }
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/Log/Factory.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -52,6 +52,10 @@
 block discarded – undo
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
     {
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.