@@ -36,18 +36,15 @@ |
||
36 | 36 | |
37 | 37 | if(($array instanceof ArrayObject) || ($array instanceof ArrayIterator)){ |
38 | 38 | $this->array = $array->getArrayCopy(); |
39 | - } |
|
40 | - elseif($array instanceof Traversable){ |
|
39 | + } elseif($array instanceof Traversable){ |
|
41 | 40 | $this->array = iterator_to_array($array); |
42 | 41 | } |
43 | 42 | // yields unexpected results with DotArray |
44 | 43 | elseif(gettype($array) === 'object'){ |
45 | 44 | $this->array = get_object_vars($array); |
46 | - } |
|
47 | - elseif(is_array($array)){ |
|
45 | + } elseif(is_array($array)){ |
|
48 | 46 | $this->array = $array; |
49 | - } |
|
50 | - else{ |
|
47 | + } else{ |
|
51 | 48 | $this->array = []; |
52 | 49 | } |
53 | 50 | } |