| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.3332 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 42 | 30 | protected function createVectorNodeFromValue($value, ?Document $doc, int $flags): ?Node |
|
| 43 | { |
||
| 44 | 30 | if (\is_object($value)) { |
|
| 45 | return $this->createNodeFromObject($value, $doc, $flags); |
||
| 46 | } |
||
| 47 | |||
| 48 | 30 | if (\is_array($value)) { |
|
| 49 | 30 | return $this->createVectorNodeFromArray($value, $doc, $flags); |
|
| 50 | } |
||
| 51 | |||
| 52 | return null; |
||
| 53 | } |
||
| 55 |