Passed
Push — master ( 3896ee...e50616 )
by Raffael
05:45
created
src/lib/Endpoint/Ucs.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -409,6 +409,7 @@
 block discarded – undo
409 409
 
410 410
     /**
411 411
      * Get identifier.
412
+     * @return string
412 413
      */
413 414
     protected function getResourceId(array $object, array $endpoint_object = []): ?string
414 415
     {
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.
src/lib/Process/Factory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             ];
67 67
         }
68 68
 
69
-        return $this->getAllFrom($this->db->{$this->scheduler->getJobQueue()}, $filter, $offset, $limit, $sort, function (array $resource) use ($namespace) {
69
+        return $this->getAllFrom($this->db->{$this->scheduler->getJobQueue()}, $filter, $offset, $limit, $sort, function(array $resource) use ($namespace) {
70 70
             return $this->build($resource, $namespace);
71 71
         });
72 72
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
111 111
     {
112
-        return $this->watchFrom($this->db->{$this->scheduler->getJobQueue()}, $after, $existing, $query, function (array $resource) use ($namespace) {
112
+        return $this->watchFrom($this->db->{$this->scheduler->getJobQueue()}, $after, $existing, $query, function(array $resource) use ($namespace) {
113 113
             return $this->build($resource, $namespace);
114 114
         }, $offset, $limit, $sort);
115 115
     }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -180,6 +180,8 @@
 block discarded – undo
180 180
 
181 181
     /**
182 182
      * Change stream.
183
+     * @param integer $offset
184
+     * @param integer $limit
183 185
      */
184 186
     public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
185 187
     {
Please login to merge, or discard this patch.
src/lib/Job/Factory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             ];
80 80
         }
81 81
 
82
-        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($namespace) {
82
+        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($namespace) {
83 83
             return $this->build($resource, $namespace);
84 84
         });
85 85
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
145 145
     {
146
-        return $this->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($namespace) {
146
+        return $this->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($namespace) {
147 147
             return $this->build($resource, $namespace);
148 148
         }, $offset, $limit, $sort);
149 149
     }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -180,6 +180,8 @@
 block discarded – undo
180 180
 
181 181
     /**
182 182
      * Change stream.
183
+     * @param integer $offset
184
+     * @param integer $limit
183 185
      */
184 186
     public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
185 187
     {
Please login to merge, or discard this patch.
src/lib/DataObjectRelation/Factory.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             ];
115 115
         }
116 116
 
117
-        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($object, $relation) {
117
+        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($object, $relation) {
118 118
             $object_1 = $resource['data']['relation'][0];
119 119
             $object_2 = $resource['data']['relation'][1];
120 120
             $related = $object_1;
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             ];
145 145
         }
146 146
 
147
-        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) {
147
+        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) {
148 148
             return $this->build($resource);
149 149
         });
150 150
     }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
240 240
     {
241
-        return $this->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) {
241
+        return $this->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) {
242 242
             return $this->build($resource);
243 243
         }, $offset, $limit, $sort);
244 244
     }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -133,6 +133,8 @@  discard block
 block discarded – undo
133 133
 
134 134
     /**
135 135
      * {@inheritdoc}
136
+     * @param integer $offset
137
+     * @param integer $limit
136 138
      */
137 139
     public function getAll(ResourceNamespaceInterface $namespace, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
138 140
     {
@@ -266,6 +268,7 @@  discard block
 block discarded – undo
266 268
 
267 269
     /**
268 270
      * Build.
271
+     * @param DataObjectInterface $object
269 272
      */
270 273
     public function build(array $resource, ?DataObjectInterface $object = null): DataObjectRelationInterface
271 274
     {
Please login to merge, or discard this patch.
src/httpdocs/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 $request = Zend\Diactoros\ServerRequestFactory::fromGlobals();
32 32
 $logger = $dic->get(Psr\Log\LoggerInterface::class);
33 33
 
34
-set_exception_handler(function ($e) use ($logger) {
34
+set_exception_handler(function($e) use ($logger) {
35 35
     http_response_code(500);
36 36
     $logger->emergency('uncaught exception: '.$e->getMessage(), [
37 37
         'category' => 'Http',
Please login to merge, or discard this patch.
src/lib/DataObject/Factory.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -185,6 +185,9 @@
 block discarded – undo
185 185
 
186 186
     /**
187 187
      * Change stream.
188
+     * @param boolean $offset
189
+     * @param integer $limit
190
+     * @param integer $sort
188 191
      */
189 192
     public function watch(CollectionInterface $collection, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
190 193
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function getAll(CollectionInterface $collection, ?array $query = null, bool $include_dataset = true, ?int $offset = 0, ?int $limit = 0, ?array $sort = ['$natural' => -1]): Generator
118 118
     {
119
-        return $this->getAllFrom($this->db->{$collection->getCollection()}, $query, $offset, $limit, $sort, function (array $resource) use ($collection) {
119
+        return $this->getAllFrom($this->db->{$collection->getCollection()}, $query, $offset, $limit, $sort, function(array $resource) use ($collection) {
120 120
             return $this->build($resource, $collection);
121 121
         });
122 122
     }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function watch(CollectionInterface $collection, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
190 190
     {
191
-        return $this->watchFrom($this->db->{$collection->getCollection()}, $after, $existing, $query, function (array $resource) use ($collection) {
191
+        return $this->watchFrom($this->db->{$collection->getCollection()}, $after, $existing, $query, function(array $resource) use ($collection) {
192 192
             return $this->build($collection, $resource);
193 193
         }, $offset, $limit, $sort);
194 194
     }
Please login to merge, or discard this patch.
src/lib/Log/Factory.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -52,6 +52,8 @@
 block discarded – undo
52 52
 
53 53
     /**
54 54
      * watch all.
55
+     * @param integer $offset
56
+     * @param integer $limit
55 57
      */
56 58
     public function watch(?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
57 59
     {
Please login to merge, or discard this patch.
src/lib/Secret/Factory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             ];
80 80
         }
81 81
 
82
-        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($namespace) {
82
+        return $this->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($namespace) {
83 83
             return $this->build($resource, $namespace);
84 84
         });
85 85
     }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -180,6 +180,8 @@
 block discarded – undo
180 180
 
181 181
     /**
182 182
      * Change stream.
183
+     * @param integer $offset
184
+     * @param integer $limit
183 185
      */
184 186
     public function watch(ResourceNamespaceInterface $namespace, ?ObjectIdInterface $after = null, bool $existing = true, ?array $query = null, ?int $offset = null, ?int $limit = null, ?array $sort = null): Generator
185 187
     {
Please login to merge, or discard this patch.