| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | 54 | protected function autoWiringArguments(ReflectionParameter $reflector) |
|
| 40 | { |
||
| 41 | 54 | if (true === $this->has($reflector->getName())) { |
|
| 42 | 18 | return $this->get($reflector->getName()); |
|
| 43 | } |
||
| 44 | |||
| 45 | /** @var ReflectionNamedType|null $type */ |
||
| 46 | 39 | $type = $reflector->getType(); |
|
| 47 | |||
| 48 | 39 | if (null !== $type && !$type->isBuiltin()) { |
|
| 49 | 24 | return $this->get($type->getName()); |
|
| 50 | } |
||
| 51 | |||
| 52 | 15 | return $this->argumentWithoutType($reflector); |
|
| 53 | } |
||
| 55 |