@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | if ($e) { |
78 | 78 | $meta = array_merge($meta, [ |
79 | - 'err' => get_class($e) . '::' . $e->getMessage(), |
|
79 | + 'err' => get_class($e).'::'.$e->getMessage(), |
|
80 | 80 | 'file' => $e->getFile(), |
81 | 81 | 'line' => $e->getLine(), |
82 | 82 | ]); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | // initial mark server "unavailable" |
50 | 50 | Server::layers()->append(ServerWrapper::class, DI::object(ServerUnavailable::class)); |
51 | 51 | |
52 | - $app->starting()->add(static function () use ($app, $options) { |
|
52 | + $app->starting()->add(static function() use ($app, $options) { |
|
53 | 53 | // add traffic monitor layer |
54 | 54 | DI::has(Daemon::class) && Server::layers()->append( |
55 | 55 | ServerWrapper::class, |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $app->conf()->bind($options, ['rpc.serv.opts' => ['tt.exec' => 'ttExec']]); |
60 | 60 | }); |
61 | 61 | |
62 | - $app->starting()->done()->then(static function () { |
|
62 | + $app->starting()->done()->then(static function() { |
|
63 | 63 | // mark server "available" when bootstrap done |
64 | 64 | Server::layers()->remove(ServerUnavailable::class); |
65 | 65 | }); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $this->name = $name; |
47 | 47 | $this->listen = $listen; |
48 | 48 | |
49 | - $this->events()->attach(Worker::STARTED, static function (Conn $ctx) { |
|
49 | + $this->events()->attach(Worker::STARTED, static function(Conn $ctx) { |
|
50 | 50 | $ctx->events()->attach(HTTP::REQUESTING, RServer::layers()->handler()); |
51 | 51 | }); |
52 | 52 | } |