Completed
Push — master ( b64fc1...5651bd )
by Raffael
16:20 queued 08:39
created
src/lib/DataObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             'namespace' => $namespace,
64 64
             'collection' => $collection,
65 65
             'data' => $this->getData(),
66
-            'status' => function ($object) {
66
+            'status' => function($object) {
67 67
                 $endpoints = $object->getEndpoints();
68 68
                 foreach ($endpoints as &$endpoint) {
69 69
                     $endpoint['last_sync'] = $endpoint['last_sync']->toDateTime()->format('c');
Please login to merge, or discard this patch.
src/lib/ResourceNamespace/ResourceNamespaceInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,5 +46,5 @@
 block discarded – undo
46 46
     /**
47 47
      * Switch namespace.
48 48
      */
49
-    public function switch(string $name): ResourceNamespaceInterface;
49
+    public function switch (string $name): ResourceNamespaceInterface;
50 50
 }
Please login to merge, or discard this patch.
src/lib/ResourceNamespace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     /**
110 110
      * {@inheritdoc}
111 111
      */
112
-    public function switch(string $name): ResourceNamespaceInterface
112
+    public function switch (string $name): ResourceNamespaceInterface
113 113
     {
114 114
         return $this->namespace_factory->getOne($name);
115 115
     }
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.
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/Log/Factory.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $that = $this;
103 103
 
104
-        return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function (array $resource) use ($that) {
104
+        return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function(array $resource) use ($that) {
105 105
             return $that->build($resource);
106 106
         });
107 107
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     {
174 174
         $that = $this;
175 175
 
176
-        return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($that) {
176
+        return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($that) {
177 177
             return $that->build($resource);
178 178
         }, $offset, $limit, $sort);
179 179
     }
Please login to merge, or discard this patch.
src/lib/V8/Engine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     protected function registerFunctions(): void
94 94
     {
95 95
         $this->crypt = [
96
-            'hash' => function ($algo, $data, $raw_output = false) {
96
+            'hash' => function($algo, $data, $raw_output = false) {
97 97
                 return hash($algo, $data, $raw_output);
98 98
             },
99 99
         ];
Please login to merge, or discard this patch.
src/lib/Rest/Helper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $query = $request->getQueryParams();
74 74
         $options = isset($query['pretty']) ? JSON_PRETTY_PRINT : 0;
75 75
 
76
-        $stream = new StreamIterator($cursor, function ($resource) use ($request, $options) {
76
+        $stream = new StreamIterator($cursor, function($resource) use ($request, $options) {
77 77
             if ($this->tell() === 0) {
78 78
                 echo  '[';
79 79
             } else {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $query = $request->getQueryParams();
107 107
         $options = isset($query['pretty']) ? JSON_PRETTY_PRINT : 0;
108 108
 
109
-        $stream = new StreamIterator($cursor, function ($event) use ($request, $options) {
109
+        $stream = new StreamIterator($cursor, function($event) use ($request, $options) {
110 110
             if ($this->tell() === 0) {
111 111
                 echo  '[';
112 112
             } else {
Please login to merge, or discard this patch.