Code Duplication    Length = 16-16 lines in 2 locations

src/Cache/CouchbaseStore.php 1 location

@@ 216-231 (lines=16) @@
213
     *
214
     * @return array|null
215
     */
216
    protected function getMetaDoc($meta)
217
    {
218
        if ($meta instanceof \CouchbaseMetaDoc) {
219
            return $meta->value;
220
        }
221
        if (is_array($meta)) {
222
            $result = [];
223
            foreach ($meta as $row) {
224
                $result[] = $this->getMetaDoc($row);
225
            }
226
227
            return $result;
228
        }
229
230
        return null;
231
    }
232
}
233

src/Cache/LegacyCouchbaseStore.php 1 location

@@ 213-228 (lines=16) @@
210
     *
211
     * @return array|null
212
     */
213
    protected function getMetaDoc($meta)
214
    {
215
        if ($meta instanceof \CouchbaseMetaDoc) {
216
            return $meta->value;
217
        }
218
        if (is_array($meta)) {
219
            $result = [];
220
            foreach ($meta as $row) {
221
                $result[] = $this->getMetaDoc($row);
222
            }
223
224
            return $result;
225
        }
226
227
        return;
228
    }
229
}
230