@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | private function getCompiledName(): string |
20 | 20 | { |
21 | - return $this->parentDi.self::COMPILED_EXTENSION; |
|
21 | + return $this->parentDi . self::COMPILED_EXTENSION; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function compiledClassExists(): bool |
@@ -48,11 +48,11 @@ discard block |
||
48 | 48 | return |
49 | 49 | '<?php |
50 | 50 | |
51 | -namespace '.$parent->getNamespaceName().'; |
|
51 | +namespace '.$parent->getNamespaceName() . '; |
|
52 | 52 | |
53 | -use '.$parent->getName().'; |
|
53 | +use '.$parent->getName() . '; |
|
54 | 54 | |
55 | -class '.$parent->getShortName().self::COMPILED_EXTENSION.' extends '.$parent->getShortName().' |
|
55 | +class '.$parent->getShortName() . self::COMPILED_EXTENSION . ' extends ' . $parent->getShortName() . ' |
|
56 | 56 | { |
57 | 57 | private array $__services = []; |
58 | 58 | |
@@ -89,13 +89,13 @@ discard block |
||
89 | 89 | |
90 | 90 | $returnType = $method->getReturnType(); |
91 | 91 | if (!in_array($returnType, ['mixed', 'string', 'int', 'bool', 'float', 'resource', 'void', 'null', 'array', 'object'])) { |
92 | - $returnType = '\\'.$returnType; |
|
92 | + $returnType = '\\' . $returnType; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | $code .= ' |
96 | - public function '.$method->getName().'(?string $instanceName = null): '.$returnType.' |
|
96 | + public function '.$method->getName() . '(?string $instanceName = null): ' . $returnType . ' |
|
97 | 97 | { |
98 | - return $this->__service(\''.$method->getName().'\', $instanceName); |
|
98 | + return $this->__service(\''.$method->getName() . '\', $instanceName); |
|
99 | 99 | } |
100 | 100 | '; |
101 | 101 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | private function generateFooter(): string |
107 | 107 | { |
108 | - return PHP_EOL.'}'.PHP_EOL; |
|
108 | + return PHP_EOL . '}' . PHP_EOL; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | public function newInstance(array ...$args): mixed |
@@ -7,12 +7,12 @@ |
||
7 | 7 | |
8 | 8 | trait ConfigTrait |
9 | 9 | { |
10 | - private array|ArrayAccess $config; |
|
10 | + private array | ArrayAccess $config; |
|
11 | 11 | |
12 | 12 | protected function config(string $valueName): mixed |
13 | 13 | { |
14 | 14 | if (!isset($this->config[$valueName])) { |
15 | - throw new OutOfBoundsException('No such config value: '.$valueName); |
|
15 | + throw new OutOfBoundsException('No such config value: ' . $valueName); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | return $this->config[$valueName]; |