@@ -22,12 +22,12 @@ |
||
22 | 22 | { |
23 | 23 | $dependencies = ( |
24 | 24 | new \ReflectionClass(static::class) |
25 | - )?->getConstructor()?->getParameters(); |
|
25 | + ) ? ->getConstructor() ? ->getParameters(); |
|
26 | 26 | |
27 | - if (! empty($dependencies)) { |
|
27 | + if (!empty($dependencies)) { |
|
28 | 28 | $this->proxy = new Fluent(); |
29 | 29 | |
30 | - collect($dependencies)->map(function ($param) { |
|
30 | + collect($dependencies)->map(function($param) { |
|
31 | 31 | $class = $param->getType()->getName(); |
32 | 32 | |
33 | 33 | if (class_exists($class) || interface_exists($class)) { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @param object|string $abstract |
23 | 23 | */ |
24 | 24 | public function __construct( |
25 | - private object | string $abstract |
|
25 | + private object|string $abstract |
|
26 | 26 | ) { |
27 | 27 | $this->abstract = $this->convertToNamespace($this->abstract); |
28 | 28 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * |
120 | 120 | * @return void |
121 | 121 | */ |
122 | - public function for(array|string $concrete): void |
|
122 | + public function for (array|string $concrete): void |
|
123 | 123 | { |
124 | 124 | app()->when($concrete) |
125 | 125 | ->needs($this->abstract) |