@@ -85,15 +85,15 @@ discard block |
||
85 | 85 | { |
86 | 86 | $list = []; |
87 | 87 | |
88 | - $status = array_filter(explode("\n",$this->process->command(config('supervisor.commands.workers'))),'strlen'); |
|
88 | + $status = array_filter(explode("\n", $this->process->command(config('supervisor.commands.workers'))), 'strlen'); |
|
89 | 89 | |
90 | - foreach ($status as $item){ |
|
91 | - if(preg_match('@'.$this->app->get('PROJECT_NAME').'.*@is',$item,$array)){ |
|
90 | + foreach ($status as $item) { |
|
91 | + if (preg_match('@'.$this->app->get('PROJECT_NAME').'.*@is', $item, $array)) { |
|
92 | 92 | $list[] = $item; |
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
96 | - return implode(PHP_EOL,$list).''.PHP_EOL; |
|
96 | + return implode(PHP_EOL, $list).''.PHP_EOL; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | { |
106 | 106 | $supervisorStatus = $this->process->command(config('supervisor.commands.status')); |
107 | 107 | |
108 | - if(false===$supervisorStatus){ |
|
108 | + if (false===$supervisorStatus) { |
|
109 | 109 | $this->upSupervisor(); |
110 | 110 | } |
111 | 111 | return $this->process->command(config('supervisor.commands.status')); |
@@ -160,8 +160,8 @@ discard block |
||
160 | 160 | { |
161 | 161 | $path = config('supervisor.path').'/'.$this->app->get('WORKER').'.conf'; |
162 | 162 | |
163 | - if(files()->exists($path)===false){ |
|
164 | - files()->put($path,' |
|
163 | + if (files()->exists($path)===false) { |
|
164 | + files()->put($path, ' |
|
165 | 165 | [group:'.$this->app->get('PROJECT_NAME').'] |
166 | 166 | [program:'.$this->app()->get('WORKER').'] |
167 | 167 | process_name=%(program_name)s_%(process_num)02d |