Conditions | 7 |
Paths | 15 |
Total Lines | 27 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 13.125 |
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 | } |
||
54 | } |
||
55 |