@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | 'class' => static::class, |
| 22 | 22 | 'redirect' => false, |
| 23 | 23 | 'pipe' => 0, |
| 24 | - 'enable' => (bool)getenv('ENABLE_APOLLO'), |
|
| 24 | + 'enable' => (bool) getenv('ENABLE_APOLLO'), |
|
| 25 | 25 | ], |
| 26 | 26 | ]; |
| 27 | 27 | } |
@@ -30,11 +30,11 @@ discard block |
||
| 30 | 30 | { |
| 31 | 31 | $filename = base_path('.env'); |
| 32 | 32 | if (isset($_ENV['_ENV'])) { |
| 33 | - $filename .= '.' . $_ENV['_ENV']; |
|
| 33 | + $filename .= '.'.$_ENV['_ENV']; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | self::$apollo = Client::createFromEnv(); |
| 37 | - self::$apollo->startWatchNotification(function (array $notifications) use ($process, $filename) { |
|
| 37 | + self::$apollo->startWatchNotification(function(array $notifications) use ($process, $filename) { |
|
| 38 | 38 | $configs = self::$apollo->pullAllAndSave($filename); |
| 39 | 39 | app('log')->info('[ApolloProcess] Pull all configurations', $configs); |
| 40 | 40 | Portal::runLaravelSCommand(base_path(), 'reload'); |