@@ -41,7 +41,7 @@ |
||
| 41 | 41 | foreach ((new ReflectionClass($class))->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { |
| 42 | 42 | $builder = new Executor; |
| 43 | 43 | |
| 44 | - (new Annotation($method->getDocComment()))->rowing(function (string $key, $expr) use ($builder) { |
|
| 44 | + (new Annotation($method->getDocComment()))->rowing(function(string $key, $expr) use ($builder) { |
|
| 45 | 45 | $this->acknowledge($builder, $key, $expr); |
| 46 | 46 | }); |
| 47 | 47 | |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | } |
| 67 | 67 | $iterates = []; |
| 68 | 68 | foreach ($nested as $data) { |
| 69 | - $iterates[] = function () use ($parts, $data) { |
|
| 69 | + $iterates[] = function() use ($parts, $data) { |
|
| 70 | 70 | return $data instanceof Message |
| 71 | 71 | ? $this->walking(implode('.', $parts), $data)[1] |
| 72 | 72 | : $data |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $expr = ''; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - $fn = function (Rule $rule) use ($to, $field, $expr) { |
|
| 31 | + $fn = function(Rule $rule) use ($to, $field, $expr) { |
|
| 32 | 32 | $to->import(new Rule($field, $rule->v(), $rule->e())); |
| 33 | 33 | $expr && $to->analyzing($expr); |
| 34 | 34 | }; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function valid() : bool |
| 48 | 48 | { |
| 49 | - return ! empty($this->tips); |
|
| 49 | + return !empty($this->tips); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function sync(string $group, Group $source, Executor $linker) : void |
| 19 | 19 | { |
| 20 | - $fn = static function () use ($group, $source, $linker) { |
|
| 21 | - $source->traversing($group, function (Executor $origin, string $field) use ($linker) { |
|
| 20 | + $fn = static function() use ($group, $source, $linker) { |
|
| 21 | + $source->traversing($group, function(Executor $origin, string $field) use ($linker) { |
|
| 22 | 22 | $linker->import($origin->export($field)); |
| 23 | 23 | }); |
| 24 | 24 | }; |
@@ -92,10 +92,10 @@ |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | $regex = [ |
| 95 | - '/^([\d]+)\|([\w\\\]+)\|(.*?)$/' => function (array $matches) { |
|
| 95 | + '/^([\d]+)\|([\w\\\]+)\|(.*?)$/' => function(array $matches) { |
|
| 96 | 96 | return [$matches[2], $matches[1], $matches[3]]; |
| 97 | 97 | }, |
| 98 | - '/^([\w\\\]+)\|(.*?)$/' => function (array $matches) { |
|
| 98 | + '/^([\w\\\]+)\|(.*?)$/' => function(array $matches) { |
|
| 99 | 99 | return [$matches[1], null, $matches[2]]; |
| 100 | 100 | }, |
| 101 | 101 | ]; |