Code Duplication    Length = 10-10 lines in 2 locations

src/ArrayyIterator.php 2 locations

@@ 32-41 (lines=10) @@
29
    /**
30
     * @return Arrayy|mixed will return a "Arrayy"-object instead of an array
31
     */
32
    public function current()
33
    {
34
        $value = parent::current();
35
36
        if (\is_array($value)) {
37
            $value = call_user_func([$this->class, 'create'], $value);
38
        }
39
40
        return $value;
41
    }
42
43
    /**
44
     * @param string $offset
@@ 48-57 (lines=10) @@
45
     *
46
     * @return Arrayy|mixed will return a "Arrayy"-object instead of an array
47
     */
48
    public function offsetGet($offset)
49
    {
50
        $value = parent::offsetGet($offset);
51
52
        if (\is_array($value)) {
53
            $value = call_user_func([$this->class, 'create'], $value);
54
        }
55
56
        return $value;
57
    }
58
}
59