Code Duplication    Length = 12-13 lines in 2 locations

src/Config/Ini/Extended/ZendConfig.php 2 locations

@@ 182-193 (lines=12) @@
179
     *
180
     * @return void
181
     */
182
    public function __clone()
183
    {
184
        $array = array();
185
        foreach ($this->data as $key => $value) {
186
            if ($value instanceof ZendConfig) {
187
                $array[$key] = clone $value;
188
            } else {
189
                $array[$key] = $value;
190
            }
191
        }
192
        $this->data = $array;
193
    }
194
195
    /**
196
     * Return an associative array of the stored data.
@@ 200-212 (lines=13) @@
197
     *
198
     * @return array
199
     */
200
    public function toArray()
201
    {
202
        $array = array();
203
        $data = $this->data;
204
        foreach ($data as $key => $value) {
205
            if ($value instanceof ZendConfig) {
206
                $array[$key] = $value->toArray();
207
            } else {
208
                $array[$key] = $value;
209
            }
210
        }
211
        return $array;
212
    }
213
214
    /**
215
     * Support isset() overloading on PHP 5.1