Completed
Push — master ( 316baf...2178d1 )
by Raffael
67:25 queued 62:39
created
src/lib/Bootstrap/AbstractBootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     protected function setErrorHandler(): self
44 44
     {
45
-        set_error_handler(function ($severity, $message, $file, $line) {
45
+        set_error_handler(function($severity, $message, $file, $line) {
46 46
             $log = $message.' in '.$file.':'.$line;
47 47
 
48 48
             switch ($severity) {
Please login to merge, or discard this patch.
src/lib/Bootstrap/Cli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
      */
185 185
     protected function setExceptionHandler(): self
186 186
     {
187
-        set_exception_handler(function ($e) {
187
+        set_exception_handler(function($e) {
188 188
             $this->logger->emergency('uncaught exception: '.$e->getMessage(), [
189 189
                 'category' => get_class($this),
190 190
                 'exception' => $e,
Please login to merge, or discard this patch.
src/lib/Bootstrap/ContainerBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     protected static function setErrorHandler(LoggerInterface $logger): void
53 53
     {
54
-        set_error_handler(function ($severity, $message, $file, $line) use ($logger) {
54
+        set_error_handler(function($severity, $message, $file, $line) use ($logger) {
55 55
             $log = $message.' in '.$file.':'.$line;
56 56
 
57 57
             switch ($severity) {
Please login to merge, or discard this patch.
src/lib/Async/WorkerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     protected function setErrorHandler(LoggerInterface $logger): self
56 56
     {
57
-        set_error_handler(function ($severity, $message, $file, $line) use ($logger) {
57
+        set_error_handler(function($severity, $message, $file, $line) use ($logger) {
58 58
             $log = $message.' in '.$file.':'.$line;
59 59
 
60 60
             switch ($severity) {
Please login to merge, or discard this patch.
src/lib/Async/Sync.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             if ($handler instanceof MongoDBHandler) {
101 101
                 $handler->setLevel($level);
102 102
 
103
-                $this->logger->pushProcessor(function ($record) use ($context) {
103
+                $this->logger->pushProcessor(function($record) use ($context) {
104 104
                     $record['context'] = array_merge($record['context'], $context);
105 105
 
106 106
                     return $record;
Please login to merge, or discard this 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/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/Resource/Factory.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     public function getAllFrom(Collection $collection, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null, ?Closure $build = null): Generator
144 144
     {
145 145
         if ($build === null) {
146
-            $build = function ($resource) {
146
+            $build = function($resource) {
147 147
                 return $this->build($resource);
148 148
             };
149 149
         }
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     public function watchFrom(Collection $collection, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = [], ?Closure $build = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
171 171
     {
172 172
         if ($build === null) {
173
-            $build = function ($resource) {
173
+            $build = function($resource) {
174 174
                 return $this->build($resource);
175 175
             };
176 176
         }
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/Workflow/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             ];
75 75
         }
76 76
 
77
-        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($endpoint) {
77
+        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($endpoint) {
78 78
             return $this->build($resource, $endpoint);
79 79
         });
80 80
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function watch(EndpointInterface $endpoint, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
144 144
     {
145
-        return $this->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($endpoint) {
145
+        return $this->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($endpoint) {
146 146
             return $this->build($resource, $endpoint);
147 147
         }, $offset, $limit, $sort);
148 148
     }
Please login to merge, or discard this patch.