@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | $this->setupConfiguration(); |
| 19 | 19 | |
| 20 | - array_map([$this->app, 'register'], $this->getServiceProviders()); |
|
| 20 | + array_map([ $this->app, 'register' ], $this->getServiceProviders()); |
|
| 21 | 21 | |
| 22 | 22 | if ($this->app->runningInConsole()) { |
| 23 | 23 | $this->publishes([ |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | protected function setupConfiguration() |
| 37 | 37 | { |
| 38 | - if (! $this->app->configurationIsCached()) { |
|
| 38 | + if (!$this->app->configurationIsCached()) { |
|
| 39 | 39 | $this->configureDefaults(); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -49,20 +49,20 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | protected function configureDefaults() |
| 51 | 51 | { |
| 52 | - $config = $this->app['config']; |
|
| 52 | + $config = $this->app[ 'config' ]; |
|
| 53 | 53 | |
| 54 | 54 | // Append "app.domains" |
| 55 | - $config['app.domains'] = array_map(function ($value) { |
|
| 55 | + $config[ 'app.domains' ] = array_map(function($value) { |
|
| 56 | 56 | if (is_string($domain = parse_url($value, PHP_URL_HOST))) { |
| 57 | 57 | if (str_contains($domain, '.')) { |
| 58 | 58 | return $domain; |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | - }, $config['support.url']); |
|
| 61 | + }, $config[ 'support.url' ]); |
|
| 62 | 62 | |
| 63 | 63 | // Set "mail.from.name" |
| 64 | - if ($config['mail.from.name'] == 'Example') { |
|
| 65 | - $config['mail.from.name'] = $config['app.name']; |
|
| 64 | + if ($config[ 'mail.from.name' ] == 'Example') { |
|
| 65 | + $config[ 'mail.from.name' ] = $config[ 'app.name' ]; |
|
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | |
@@ -73,17 +73,17 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | protected function configureForCurrentRequest() |
| 75 | 75 | { |
| 76 | - $config = $this->app['config']; |
|
| 77 | - $request = $this->app['request']; |
|
| 76 | + $config = $this->app[ 'config' ]; |
|
| 77 | + $request = $this->app[ 'request' ]; |
|
| 78 | 78 | |
| 79 | - $identifier = array_search($request->getHost(), $config['app.domains']); |
|
| 79 | + $identifier = array_search($request->getHost(), $config[ 'app.domains' ]); |
|
| 80 | 80 | |
| 81 | 81 | if ($identifier && $config->has('support.cookie_domain.'.$identifier)) { |
| 82 | - $config['session.domain'] = $config['support.cookie_domain.'.$identifier]; |
|
| 82 | + $config[ 'session.domain' ] = $config[ 'support.cookie_domain.'.$identifier ]; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - if ($identifier && is_array($auth = $config['support.auth.'.$identifier])) { |
|
| 86 | - $config['auth.defaults'] = $auth; |
|
| 85 | + if ($identifier && is_array($auth = $config[ 'support.auth.'.$identifier ])) { |
|
| 86 | + $config[ 'auth.defaults' ] = $auth; |
|
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | protected function getServiceProviders() |
| 96 | 96 | { |
| 97 | - $providers = []; |
|
| 97 | + $providers = [ ]; |
|
| 98 | 98 | |
| 99 | 99 | if ($this->app->isLocal()) { |
| 100 | 100 | array_push( |