@@ -89,17 +89,15 @@ discard block |
||
89 | 89 | $corsSettings->setCredentialsSupported() : $corsSettings->setCredentialsNotSupported(); |
90 | 90 | |
91 | 91 | $packageSettings[static::KEY_IS_FORCE_ADD_METHODS] === true ? |
92 | - $corsSettings->enableAddAllowedMethodsToPreFlightResponse() : |
|
93 | - $corsSettings->disableAddAllowedMethodsToPreFlightResponse(); |
|
92 | + $corsSettings->enableAddAllowedMethodsToPreFlightResponse() : $corsSettings->disableAddAllowedMethodsToPreFlightResponse(); |
|
94 | 93 | |
95 | 94 | $packageSettings[static::KEY_IS_FORCE_ADD_HEADERS] === true ? |
96 | - $corsSettings->enableAddAllowedHeadersToPreFlightResponse() : |
|
97 | - $corsSettings->disableAddAllowedHeadersToPreFlightResponse(); |
|
95 | + $corsSettings->enableAddAllowedHeadersToPreFlightResponse() : $corsSettings->disableAddAllowedHeadersToPreFlightResponse(); |
|
98 | 96 | |
99 | 97 | $packageSettings[static::KEY_IS_CHECK_HOST] === true ? |
100 | 98 | $corsSettings->enableCheckHost() : $corsSettings->disableCheckHost(); |
101 | 99 | |
102 | - return [$corsSettings->getData(), (bool)$packageSettings[static::KEY_LOG_IS_ENABLED]]; |
|
100 | + return [$corsSettings->getData(), (bool) $packageSettings[static::KEY_LOG_IS_ENABLED]]; |
|
103 | 101 | } |
104 | 102 | |
105 | 103 | /** |
@@ -110,7 +108,7 @@ discard block |
||
110 | 108 | $appConfig = $this->getAppConfig(); |
111 | 109 | |
112 | 110 | $serverOrigin = $appConfig[A::KEY_APP_ORIGIN_URI] ?? null; |
113 | - $isLogEnabled = (bool)($appConfig[A::KEY_IS_LOG_ENABLED] ?? false); |
|
111 | + $isLogEnabled = (bool) ($appConfig[A::KEY_IS_LOG_ENABLED] ?? false); |
|
114 | 112 | |
115 | 113 | return [ |
116 | 114 | static::KEY_ALLOWED_ORIGINS => empty($serverOrigin) === true ? [] : [$serverOrigin], |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public static function configureContainer(LimoncelloContainerInterface $container): void |
43 | 43 | { |
44 | - $container[AnalyzerInterface::class] = function (PsrContainerInterface $container) { |
|
44 | + $container[AnalyzerInterface::class] = function(PsrContainerInterface $container) { |
|
45 | 45 | $settingsProvider = $container->get(SettingsProviderInterface::class); |
46 | 46 | |
47 | 47 | [$corsSettings, $isLogEnabled] = $settingsProvider->get(C::class); |