@@ -47,7 +47,7 @@ |
||
| 47 | 47 | return $result; |
| 48 | 48 | } |
| 49 | 49 | } catch (ReflectionException $e) { |
| 50 | - $e->getMessage();//ignore |
|
| 50 | + $e->getMessage(); //ignore |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | return null; |
@@ -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 | } |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | return []; |
| 128 | 128 | } |
| 129 | 129 | return array_map( |
| 130 | - function ($id) use (&$resourceClass, &$context) { |
|
| 130 | + function($id) use (&$resourceClass, &$context) { |
|
| 131 | 131 | return $this->retrieve($resourceClass, $id, $context); |
| 132 | 132 | }, |
| 133 | 133 | SearchFilterHelper::applySearchFilter($cacheItem->get(), $searchFilterRequest, $this->propertyAccessor) |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $className = $class->getName(); |
| 36 | 36 | $annotations = $this->reader->getClassAnnotations($class); |
| 37 | 37 | if (isset($this->config[$className])) { |
| 38 | - $annotations = array_filter($annotations, function ($annotation) { |
|
| 38 | + $annotations = array_filter($annotations, function($annotation) { |
|
| 39 | 39 | return !($annotation instanceof ApiResource); |
| 40 | 40 | }); |
| 41 | 41 | $annotations[] = $this->config[$className]; |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $this->getApiResourceMetadataFactory(), |
| 61 | 61 | $this->getIdentifierExtractor(), |
| 62 | 62 | $this->apie->getBaseUrl(), |
| 63 | - function (Document $doc) { |
|
| 63 | + function(Document $doc) { |
|
| 64 | 64 | $this->apie->onOpenApiDocGenerated($doc); |
| 65 | 65 | } |
| 66 | 66 | ); |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $prop->setAccessible(true); |
| 101 | 101 | $factories = $prop->getValue($factory); |
| 102 | 102 | return $this->apie = new ChainableFactory( |
| 103 | - array_filter($factories, function (ApiResourceFactoryInterface $factory) { |
|
| 103 | + array_filter($factories, function(ApiResourceFactoryInterface $factory) { |
|
| 104 | 104 | return !$factory instanceof MockApiResourceFactory; |
| 105 | 105 | }) |
| 106 | 106 | ); |
@@ -94,11 +94,11 @@ |
||
| 94 | 94 | $offset = $searchFilterRequest->getOffset(); |
| 95 | 95 | $numberOfItems = $searchFilterRequest->getNumberOfItems(); |
| 96 | 96 | $filter = (array_key_exists('status', $searchFilterRequest->getSearches())) |
| 97 | - ? function (Status $status) use ($searchFilterRequest) { return $status->getStatus() === $searchFilterRequest->getSearches()['status']; } |
|
| 98 | - : function () { return true; }; |
|
| 97 | + ? function(Status $status) use ($searchFilterRequest) { return $status->getStatus() === $searchFilterRequest->getSearches()['status']; } |
|
| 98 | + : function() { return true; }; |
|
| 99 | 99 | return new LimitIterator( |
| 100 | 100 | new CallbackFilterIterator( |
| 101 | - new RewindableGenerator(function () { |
|
| 101 | + new RewindableGenerator(function() { |
|
| 102 | 102 | return $this->iterate(); |
| 103 | 103 | }), |
| 104 | 104 | $filter |
@@ -159,7 +159,6 @@ |
||
| 159 | 159 | private $propertyInfoExtractors = []; |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - |
|
| 163 | 162 | * @param object[] $plugins |
| 164 | 163 | * @param bool $debug |
| 165 | 164 | * @param string|null $cacheFolder |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | if (!$this->chainableFormatRetriever) { |
| 352 | 352 | $this->chainableFormatRetriever = new ChainableFormatRetriever( |
| 353 | 353 | array_map( |
| 354 | - function (EncoderProviderInterface $encoderProvider) { |
|
| 354 | + function(EncoderProviderInterface $encoderProvider) { |
|
| 355 | 355 | return $encoderProvider->getFormatRetriever(); |
| 356 | 356 | }, |
| 357 | 357 | $this->encoders |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | if (!$this->chainableFactory) { |
| 387 | 387 | $this->chainableFactory = new ChainableFactory( |
| 388 | 388 | array_map( |
| 389 | - function (ApiResourceFactoryProviderInterface $factoryProvider) { |
|
| 389 | + function(ApiResourceFactoryProviderInterface $factoryProvider) { |
|
| 390 | 390 | return $factoryProvider->getApiResourceFactory(); |
| 391 | 391 | }, |
| 392 | 392 | $this->apiResourceFactories |
@@ -451,7 +451,7 @@ discard block |
||
| 451 | 451 | { |
| 452 | 452 | $result = []; |
| 453 | 453 | foreach ($this->propertyInfoExtractors as $extractor) { |
| 454 | - $result = $result + $extractor->getListExtractors(); |
|
| 454 | + $result = $result + $extractor->getListExtractors(); |
|
| 455 | 455 | } |
| 456 | 456 | return $result; |
| 457 | 457 | } |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | { |
| 461 | 461 | $result = []; |
| 462 | 462 | foreach ($this->propertyInfoExtractors as $extractor) { |
| 463 | - $result = $result + $extractor->getTypeExtractors(); |
|
| 463 | + $result = $result + $extractor->getTypeExtractors(); |
|
| 464 | 464 | } |
| 465 | 465 | return $result; |
| 466 | 466 | } |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | { |
| 470 | 470 | $result = []; |
| 471 | 471 | foreach ($this->propertyInfoExtractors as $extractor) { |
| 472 | - $result = $result + $extractor->getDescriptionExtractors(); |
|
| 472 | + $result = $result + $extractor->getDescriptionExtractors(); |
|
| 473 | 473 | } |
| 474 | 474 | return $result; |
| 475 | 475 | } |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | { |
| 479 | 479 | $result = []; |
| 480 | 480 | foreach ($this->propertyInfoExtractors as $extractor) { |
| 481 | - $result = $result + $extractor->getAccessExtractors(); |
|
| 481 | + $result = $result + $extractor->getAccessExtractors(); |
|
| 482 | 482 | } |
| 483 | 483 | return $result; |
| 484 | 484 | } |
@@ -487,7 +487,7 @@ discard block |
||
| 487 | 487 | { |
| 488 | 488 | $result = []; |
| 489 | 489 | foreach ($this->propertyInfoExtractors as $extractor) { |
| 490 | - $result = $result + $extractor->getInitializableExtractors(); |
|
| 490 | + $result = $result + $extractor->getInitializableExtractors(); |
|
| 491 | 491 | } |
| 492 | 492 | return $result; |
| 493 | 493 | } |
@@ -186,16 +186,16 @@ |
||
| 186 | 186 | new SerializerExtractor($factory), |
| 187 | 187 | $reflectionExtractor, |
| 188 | 188 | ] + $this->getApie()->getListExtractors(), |
| 189 | - $this->getApie()->getTypeExtractors() +[ |
|
| 189 | + $this->getApie()->getTypeExtractors() + [ |
|
| 190 | 190 | $phpDocExtractor, |
| 191 | 191 | $reflectionExtractor, |
| 192 | 192 | ], |
| 193 | 193 | $this->getApie()->getDescriptionExtractors() + [ |
| 194 | 194 | $phpDocExtractor, |
| 195 | - ] , |
|
| 195 | + ], |
|
| 196 | 196 | $this->getApie()->getAccessExtractors() + [ |
| 197 | 197 | $reflectionExtractor, |
| 198 | - ] , |
|
| 198 | + ], |
|
| 199 | 199 | $this->getApie()->getInitializableExtractors() + [ |
| 200 | 200 | $reflectionExtractor, |
| 201 | 201 | ] |