@@ -31,15 +31,13 @@ |
||
| 31 | 31 | |
| 32 | 32 | if(($array instanceof ArrayObject) || ($array instanceof ArrayIterator)){ |
| 33 | 33 | $this->array = $array->getArrayCopy(); // @codeCoverageIgnore |
| 34 | - } |
|
| 35 | - elseif($array instanceof Traversable){ |
|
| 34 | + } elseif($array instanceof Traversable){ |
|
| 36 | 35 | $this->array = \iterator_to_array($array); // @codeCoverageIgnore |
| 37 | 36 | } |
| 38 | 37 | // yields unexpected results with DotArray |
| 39 | 38 | elseif(\gettype($array) === 'object'){ |
| 40 | 39 | $this->array = \get_object_vars($array); // @codeCoverageIgnore |
| 41 | - } |
|
| 42 | - elseif(\is_array($array)){ |
|
| 40 | + } elseif(\is_array($array)){ |
|
| 43 | 41 | $this->array = $array; |
| 44 | 42 | } |
| 45 | 43 | |