@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | use \Neomerx\CorsIlluminate\Settings\Settings as S; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Neomerx\CorsIlluminate\Settings; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Neomerx\CorsIlluminate\Providers; |
4 | 4 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function registerPublishConfig(): void |
85 | 85 | { |
86 | - $publishPath = $this->app['path.config'] . DIRECTORY_SEPARATOR . static::CONFIG_FILE_NAME_WO_EXT . '.php'; |
|
86 | + $publishPath = $this->app['path.config'].DIRECTORY_SEPARATOR.static::CONFIG_FILE_NAME_WO_EXT.'.php'; |
|
87 | 87 | $this->publishes([ |
88 | 88 | $this->getConfigPath() => $publishPath, |
89 | 89 | ]); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | protected function getCreateAnalysisStrategyClosure(): Closure |
105 | 105 | { |
106 | - return function (): AnalysisStrategyInterface { |
|
106 | + return function(): AnalysisStrategyInterface { |
|
107 | 107 | $data = $this->getSettingsData(); |
108 | 108 | $strategy = (new Settings())->setData($data); |
109 | 109 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | */ |
119 | 119 | protected function getCreateAnalyzerClosure(): Closure |
120 | 120 | { |
121 | - return function ($app): AnalyzerInterface { |
|
121 | + return function($app): AnalyzerInterface { |
|
122 | 122 | /** @var AnalysisStrategyInterface $strategy */ |
123 | 123 | $strategy = $app[AnalysisStrategyInterface::class]; |
124 | 124 | $analyzer = Analyzer::instance($strategy); |
@@ -140,8 +140,8 @@ discard block |
||
140 | 140 | */ |
141 | 141 | protected function getConfigPath(): string |
142 | 142 | { |
143 | - $root = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR; |
|
144 | - $path = $root . 'config' . DIRECTORY_SEPARATOR . static::CONFIG_FILE_NAME_WO_EXT . '.php'; |
|
143 | + $root = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR; |
|
144 | + $path = $root.'config'.DIRECTORY_SEPARATOR.static::CONFIG_FILE_NAME_WO_EXT.'.php'; |
|
145 | 145 | |
146 | 146 | return $path; |
147 | 147 | } |
@@ -187,12 +187,10 @@ discard block |
||
187 | 187 | $settings->setCredentialsSupported() : $settings->setCredentialsNotSupported(); |
188 | 188 | |
189 | 189 | \boolval($configFile[Settings::KEY_IS_FORCE_ADD_METHODS] ?? false) === true ? |
190 | - $settings->enableAddAllowedMethodsToPreFlightResponse() : |
|
191 | - $settings->disableAddAllowedMethodsToPreFlightResponse(); |
|
190 | + $settings->enableAddAllowedMethodsToPreFlightResponse() : $settings->disableAddAllowedMethodsToPreFlightResponse(); |
|
192 | 191 | |
193 | 192 | \boolval($configFile[Settings::KEY_IS_FORCE_ADD_HEADERS] ?? false) === true ? |
194 | - $settings->enableAddAllowedHeadersToPreFlightResponse() : |
|
195 | - $settings->disableAddAllowedHeadersToPreFlightResponse(); |
|
193 | + $settings->enableAddAllowedHeadersToPreFlightResponse() : $settings->disableAddAllowedHeadersToPreFlightResponse(); |
|
196 | 194 | |
197 | 195 | \boolval($configFile[Settings::KEY_IS_CHECK_HOST] ?? false) === true ? |
198 | 196 | $settings->enableCheckHost() : $settings->disableCheckHost(); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Neomerx\CorsIlluminate\Providers; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Neomerx\CorsIlluminate\Adapters; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Neomerx\CorsIlluminate; |
4 | 4 |