@@ -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 | /** |
@@ -145,8 +145,8 @@ discard block |
||
145 | 145 | { |
146 | 146 | $path = config('supervisor.path').'/'.$this->app->get('WORKER').'.conf'; |
147 | 147 | |
148 | - if(files()->exists($path)===false){ |
|
149 | - files()->put($path,' |
|
148 | + if (files()->exists($path)===false) { |
|
149 | + files()->put($path, ' |
|
150 | 150 | [group:'.$this->app->get('PROJECT_NAME').'] |
151 | 151 | [program:'.$this->app()->get('WORKER').'] |
152 | 152 | process_name=%(program_name)s_%(process_num)02d |