@@ -298,8 +298,8 @@ |
||
| 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 | } |
@@ -166,12 +166,12 @@ |
||
| 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 | ] |
@@ -5,6 +5,6 @@ |
||
| 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 | } |
@@ -92,7 +92,7 @@ |
||
| 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 | } |
@@ -9,7 +9,7 @@ |
||
| 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 | */ |
@@ -22,7 +22,7 @@ |
||
| 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 | } |
@@ -111,7 +111,7 @@ |
||
| 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 | } |