Completed
Branch v2 (cda8c7)
by Pieter
03:41
created
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
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     {
93 93
         $offset = $searchFilterRequest->getOffset();
94 94
         $numberOfItems = $searchFilterRequest->getNumberOfItems();
95
-        return new LimitIterator(new RewindableGenerator(function () {
95
+        return new LimitIterator(new RewindableGenerator(function() {
96 96
             return $this->iterate();
97 97
         }), $offset, $numberOfItems);
98 98
     }
Please login to merge, or discard this patch.
src/Retrievers/AppRetriever.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 /**
10 10
  * Retrieves instances of api resource App. This is always one record with id 'name'.
11 11
  */
12
-class AppRetriever implements ApiResourceRetrieverInterface{
12
+class AppRetriever implements ApiResourceRetrieverInterface {
13 13
     /**
14 14
      * @var string
15 15
      */
Please login to merge, or discard this patch.
src/SearchFilters/SearchFilterHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $count = 0;
23 23
         $offset = $searchFilterRequest->getOffset();
24 24
         $max = $offset + $searchFilterRequest->getNumberOfItems();
25
-        return array_values(array_filter($input, function ($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) {
25
+        return array_values(array_filter($input, function($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) {
26 26
             if ($count >= $max) {
27 27
                 return false;
28 28
             }
Please login to merge, or discard this patch.
src/Mocks/MockApiResourceRetriever.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         }
112 112
         $ids = array_slice($cacheItem->get(), $offset, $numberOfItems);
113 113
 
114
-        return array_values(array_map(function ($id) use ($resourceClass, &$context) {
114
+        return array_values(array_map(function($id) use ($resourceClass, &$context) {
115 115
             return $this->retrieve($resourceClass, $id, $context);
116 116
         }, $ids));
117 117
     }
Please login to merge, or discard this patch.