@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | protected function assigning(Router $router, string $contracts, array $namespaces) : bool |
22 | 22 | { |
23 | - $nss = array_map(static function ($p) { |
|
23 | + $nss = array_map(static function($p) { |
|
24 | 24 | return lcfirst($p); |
25 | 25 | }, $namespaces); |
26 | 26 |
@@ -119,7 +119,7 @@ |
||
119 | 119 | */ |
120 | 120 | private function psr4init() : void |
121 | 121 | { |
122 | - if (defined('CWD') && is_file($cj = CWD . '/composer.json')) { |
|
122 | + if (defined('CWD') && is_file($cj = CWD.'/composer.json')) { |
|
123 | 123 | $conf = json_decode(file_get_contents($cj), true); |
124 | 124 | foreach ($conf['autoload']['psr-4'] ?? [] as $nsp => $path) { |
125 | 125 | $slot = &$this->psr4al; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function serving() : void |
89 | 89 | { |
90 | - array_walk($this->services, function (string $implementer) { |
|
90 | + array_walk($this->services, function(string $implementer) { |
|
91 | 91 | $this->detector->analyzing($this->router, self::CONTRACTS_NAME, $implementer); |
92 | 92 | }); |
93 | 93 | } |
@@ -96,11 +96,11 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function analyzing() : void |
98 | 98 | { |
99 | - array_walk($this->services, function (string $implementer) { |
|
99 | + array_walk($this->services, function(string $implementer) { |
|
100 | 100 | $ref = new ReflectionClass($implementer); |
101 | 101 | |
102 | 102 | foreach ($ref->getInterfaces() as $inf) { |
103 | - $nss = array_map(static function ($p) { |
|
103 | + $nss = array_map(static function($p) { |
|
104 | 104 | return lcfirst($p); |
105 | 105 | }, explode('\\', $inf->getNamespaceName())); |
106 | 106 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | private function namedServer(string $class) : string |
20 | 20 | { |
21 | - $segments = array_map(static function ($p) { |
|
21 | + $segments = array_map(static function($p) { |
|
22 | 22 | return lcfirst($p); |
23 | 23 | }, explode('\\', $class)); |
24 | 24 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function hasTags() : bool |
22 | 22 | { |
23 | - return ! empty($this->tags); |
|
23 | + return !empty($this->tags); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function inbound($request, Context $ctx) : Promised |
44 | 44 | { |
45 | - return race(async(function ($request) { |
|
45 | + return race(async(function($request) { |
|
46 | 46 | return $this->dispatcher->invoke($request); |
47 | 47 | }, $ctx, $request), timeout(5000)); |
48 | 48 | } |