@@ -52,18 +52,18 @@ discard block |
||
52 | 52 | |
53 | 53 | $container[FactoryInterface::class] = $factory; |
54 | 54 | |
55 | - $container[QueryParametersParserInterface::class] = function () use ($factory) { |
|
55 | + $container[QueryParametersParserInterface::class] = function() use ($factory) { |
|
56 | 56 | return $factory->getJsonApiFactory()->createQueryParametersParser(); |
57 | 57 | }; |
58 | 58 | |
59 | - $container[JsonSchemesInterface::class] = function (PsrContainerInterface $container) use ($factory) { |
|
59 | + $container[JsonSchemesInterface::class] = function(PsrContainerInterface $container) use ($factory) { |
|
60 | 60 | $settings = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class); |
61 | 61 | $modelSchemes = $container->get(ModelSchemeInfoInterface::class); |
62 | 62 | |
63 | 63 | return $factory->createJsonSchemes($settings[FluteSettings::KEY_MODEL_TO_SCHEME_MAP], $modelSchemes); |
64 | 64 | }; |
65 | 65 | |
66 | - $container[EncoderInterface::class] = function (PsrContainerInterface $container) use ($factory) { |
|
66 | + $container[EncoderInterface::class] = function(PsrContainerInterface $container) use ($factory) { |
|
67 | 67 | /** @var JsonSchemesInterface $jsonSchemes */ |
68 | 68 | $jsonSchemes = $container->get(JsonSchemesInterface::class); |
69 | 69 | $settings = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class); |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | return $encoder; |
79 | 79 | }; |
80 | 80 | |
81 | - $container[FilterOperationsInterface::class] = function (PsrContainerInterface $container) { |
|
81 | + $container[FilterOperationsInterface::class] = function(PsrContainerInterface $container) { |
|
82 | 82 | return new FilterOperations($container); |
83 | 83 | }; |
84 | 84 | |
85 | - $container[RepositoryInterface::class] = function (PsrContainerInterface $container) use ($factory) { |
|
85 | + $container[RepositoryInterface::class] = function(PsrContainerInterface $container) use ($factory) { |
|
86 | 86 | $connection = $container->get(Connection::class); |
87 | 87 | /** @var ModelSchemeInfoInterface $modelSchemes */ |
88 | 88 | $modelSchemes = $container->get(ModelSchemeInfoInterface::class); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | return $factory->createRepository($connection, $modelSchemes, $filerOps, $formatter); |
98 | 98 | }; |
99 | 99 | |
100 | - $container[PaginationStrategyInterface::class] = function (PsrContainerInterface $container) { |
|
100 | + $container[PaginationStrategyInterface::class] = function(PsrContainerInterface $container) { |
|
101 | 101 | $settings = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class); |
102 | 102 | |
103 | 103 | return new PaginationStrategy( |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | ); |
107 | 107 | }; |
108 | 108 | |
109 | - $container[JsonApiValidatorFactoryInterface::class] = function (PsrContainerInterface $container) { |
|
109 | + $container[JsonApiValidatorFactoryInterface::class] = function(PsrContainerInterface $container) { |
|
110 | 110 | $factory = new JsonApiValidatorFactory($container); |
111 | 111 | |
112 | 112 | return $factory; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public static function configureExceptionHandler(LimoncelloContainerInterface $container) |
136 | 136 | { |
137 | - $container[ThrowableHandlerInterface::class] = function (PsrContainerInterface $container) { |
|
137 | + $container[ThrowableHandlerInterface::class] = function(PsrContainerInterface $container) { |
|
138 | 138 | $appSettings = $container->get(SettingsProviderInterface::class)->get(A::class); |
139 | 139 | $fluteSettings = $container->get(SettingsProviderInterface::class)->get(FluteSettings::class); |
140 | 140 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $details = null; |
100 | 100 | if ($this->isDebug === true) { |
101 | 101 | $message = $throwable->getMessage(); |
102 | - $details = (string)$throwable; |
|
102 | + $details = (string) $throwable; |
|
103 | 103 | } |
104 | 104 | $errors->add(new Error(null, null, $httpCode, null, $message, $details)); |
105 | 105 | } |