@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * @inheritdoc |
70 | 70 | */ |
71 | - public function parseParameters(?array $parameters): array |
|
71 | + public function parseParameters(? array $parameters) : array |
|
72 | 72 | { |
73 | 73 | if ($parameters === null) { |
74 | 74 | return [0, $this->getDefaultPageSize() + 1]; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | 0, |
82 | 82 | PHP_INT_MAX |
83 | 83 | ); |
84 | - $size = $this->getValue( |
|
84 | + $size = $this->getValue( |
|
85 | 85 | $parameters, |
86 | 86 | static::PARAM_PAGING_SIZE, |
87 | 87 | $this->getDefaultPageSize(), |
@@ -50,18 +50,18 @@ discard block |
||
50 | 50 | |
51 | 51 | $container[FactoryInterface::class] = $factory; |
52 | 52 | |
53 | - $container[QueryParametersParserInterface::class] = function () use ($factory) { |
|
53 | + $container[QueryParametersParserInterface::class] = function() use ($factory) { |
|
54 | 54 | return $factory->getJsonApiFactory()->createQueryParametersParser(); |
55 | 55 | }; |
56 | 56 | |
57 | - $container[JsonSchemesInterface::class] = function (PsrContainerInterface $container) use ($factory) { |
|
57 | + $container[JsonSchemesInterface::class] = function(PsrContainerInterface $container) use ($factory) { |
|
58 | 58 | $settings = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class); |
59 | 59 | $modelSchemes = $container->get(ModelSchemeInfoInterface::class); |
60 | 60 | |
61 | 61 | return $factory->createJsonSchemes($settings[FluteSettings::KEY_MODEL_TO_SCHEME_MAP], $modelSchemes); |
62 | 62 | }; |
63 | 63 | |
64 | - $container[EncoderInterface::class] = function (PsrContainerInterface $container) use ($factory) { |
|
64 | + $container[EncoderInterface::class] = function(PsrContainerInterface $container) use ($factory) { |
|
65 | 65 | /** @var JsonSchemesInterface $jsonSchemes */ |
66 | 66 | $jsonSchemes = $container->get(JsonSchemesInterface::class); |
67 | 67 | $settings = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class); |
@@ -76,11 +76,11 @@ discard block |
||
76 | 76 | return $encoder; |
77 | 77 | }; |
78 | 78 | |
79 | - $container[FilterOperationsInterface::class] = function (PsrContainerInterface $container) { |
|
79 | + $container[FilterOperationsInterface::class] = function(PsrContainerInterface $container) { |
|
80 | 80 | return new FilterOperations($container); |
81 | 81 | }; |
82 | 82 | |
83 | - $container[RepositoryInterface::class] = function (PsrContainerInterface $container) use ($factory) { |
|
83 | + $container[RepositoryInterface::class] = function(PsrContainerInterface $container) use ($factory) { |
|
84 | 84 | $connection = $container->get(Connection::class); |
85 | 85 | /** @var ModelSchemeInfoInterface $modelSchemes */ |
86 | 86 | $modelSchemes = $container->get(ModelSchemeInfoInterface::class); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | return $factory->createRepository($connection, $modelSchemes, $filerOps, $formatter); |
96 | 96 | }; |
97 | 97 | |
98 | - $container[PaginationStrategyInterface::class] = function (PsrContainerInterface $container) { |
|
98 | + $container[PaginationStrategyInterface::class] = function(PsrContainerInterface $container) { |
|
99 | 99 | $settings = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class); |
100 | 100 | |
101 | 101 | return new PaginationStrategy( |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | ); |
105 | 105 | }; |
106 | 106 | |
107 | - $container[JsonApiValidatorFactoryInterface::class] = function (PsrContainerInterface $container) { |
|
107 | + $container[JsonApiValidatorFactoryInterface::class] = function(PsrContainerInterface $container) { |
|
108 | 108 | $factory = new JsonApiValidatorFactory($container); |
109 | 109 | |
110 | 110 | return $factory; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public static function configureExceptionHandler(LimoncelloContainerInterface $container) |
134 | 134 | { |
135 | - $container[ExceptionHandlerInterface::class] = function () { |
|
135 | + $container[ExceptionHandlerInterface::class] = function() { |
|
136 | 136 | return new FluteExceptionHandler(); |
137 | 137 | }; |
138 | 138 | } |
@@ -162,7 +162,7 @@ |
||
162 | 162 | protected function setWrapperErrors(array $wrapperErrors): self |
163 | 163 | { |
164 | 164 | if (empty($wrapperErrors) === false) { |
165 | - assert(call_user_func(function () use ($wrapperErrors) : bool { |
|
165 | + assert(call_user_func(function() use ($wrapperErrors) : bool { |
|
166 | 166 | $allAreErrors = true; |
167 | 167 | |
168 | 168 | foreach ($wrapperErrors as $error) { |