Code Duplication    Length = 10-10 lines in 2 locations

src/Combinatorics.php 1 location

@@ 116-125 (lines=10) @@
113
     * @return array
114
     *               The elements
115
     */
116
    public function toArray()
117
    {
118
        $data = [];
119
120
        for ($this->rewind(); $this->valid(); $this->next()) {
121
            $data[] = $this->current();
122
        }
123
124
        return $data;
125
    }
126
127
    /**
128
     * {@inheritdoc}

src/Iterators/Product.php 1 location

@@ 128-137 (lines=10) @@
125
     * @return array
126
     *               The elements
127
     */
128
    public function toArray()
129
    {
130
        $data = [];
131
132
        for ($this->rewind(); $this->valid(); $this->next()) {
133
            $data[] = $this->current();
134
        }
135
136
        return $data;
137
    }
138
}
139