Completed
Branch v2 (bf73c3)
by Pieter
15:10
created
src/Mocks/MockApiResourceRetriever.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
         $ids = array_slice($cacheItem->get(), $pageIndex * $numberOfItems, $numberOfItems);
111 111
 
112
-        return array_values(array_map(function ($id) use ($resourceClass, &$context) {
112
+        return array_values(array_map(function($id) use ($resourceClass, &$context) {
113 113
             return $this->retrieve($resourceClass, $id, $context);
114 114
         }, $ids));
115 115
     }
Please login to merge, or discard this patch.
src/ServiceLibraryFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,8 +298,8 @@
 block discarded – undo
298 298
             $this->encoders = [
299 299
                 new XmlEncoder([XmlEncoder::ROOT_NODE_NAME => 'item']),
300 300
                 new JsonEncoder(
301
-                   new JsonEncode([JsonEncode::OPTIONS => JSON_UNESCAPED_SLASHES]),
302
-                   new JsonDecode([JsonDecode::ASSOCIATIVE => false])
301
+                    new JsonEncode([JsonEncode::OPTIONS => JSON_UNESCAPED_SLASHES]),
302
+                    new JsonDecode([JsonDecode::ASSOCIATIVE => false])
303 303
                 )
304 304
             ];
305 305
         }
Please login to merge, or discard this patch.
src/OpenApiSchema/OpenApiSpecGenerator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,12 +166,12 @@
 block discarded – undo
166 166
                             [
167 167
                                 'application/json' => new OASv3\MediaType(
168 168
                                     [
169
-                                       'schema' => $errorSchema,
169
+                                        'schema' => $errorSchema,
170 170
                                     ]
171 171
                                 ),
172 172
                                 'application/xml' => new OASv3\MediaType(
173 173
                                     [
174
-                                       'schema' => $errorSchema,
174
+                                        'schema' => $errorSchema,
175 175
                                     ]
176 176
                                 ),
177 177
                             ]
Please login to merge, or discard this patch.
src/Exceptions/InvalidIdException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
 {
6 6
     public function __construct(string $id)
7 7
     {
8
-        parent::__construct(500, 'Id "' . $id. '" is not valid as identifier');
8
+        parent::__construct(500, 'Id "' . $id . '" is not valid as identifier');
9 9
     }
10 10
 }
Please login to merge, or discard this patch.
src/Retrievers/StatusCheckRetriever.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public function retrieveAll(string $resourceClass, array $context, int $pageIndex, int $numberOfItems): iterable
89 89
     {
90
-        return new LimitIterator(new RewindableGenerator(function () {
90
+        return new LimitIterator(new RewindableGenerator(function() {
91 91
             return $this->iterate();
92 92
         }), $pageIndex, $numberOfItems);
93 93
     }
Please login to merge, or discard this patch.