Passed
Push — master ( c10824...94ee2f )
by Biao
03:22
created
src/Components/Apollo/Process.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
                 'class'    => self::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
 block discarded – undo
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');
Please login to merge, or discard this patch.