Code Duplication    Length = 41-41 lines in 2 locations

htdocs_symfony/src/Repository/CachesRepository.php 1 location

@@ 197-237 (lines=41) @@
194
    /**
195
     * @return []
196
     */
197
    public function getDatabaseArrayFromEntity(GeoCachesEntity $entity)
198
    {
199
        return [
200
            'cache_id' => $entity->cacheId,
201
            'uuid' => $entity->uuid,
202
            'node' => $entity->node,
203
            'date_created' => $entity->dateCreated,
204
            'is_publishdate' => $entity->isPublishdate,
205
            'last_modified' => $entity->lastModified,
206
            'okapi_syncbase' => $entity->okapiSyncbase,
207
            'listing_last_modified' => $entity->listingLastModified,
208
            'meta_last_modified' => $entity->metaLastModified,
209
            'user_id' => $entity->userId,
210
            'name' => $entity->name,
211
            'longitude' => $entity->longitude,
212
            'latitude' => $entity->latitude,
213
            'type' => $entity->type,
214
            'status' => $entity->status,
215
            'country' => $entity->country,
216
            'date_hidden' => $entity->dateHidden,
217
            'size' => $entity->size,
218
            'difficulty' => $entity->difficulty,
219
            'terrain' => $entity->terrain,
220
            'logpw' => $entity->logpw,
221
            'search_time' => $entity->searchTime,
222
            'way_length' => $entity->wayLength,
223
            'wp_gc' => $entity->wpGc,
224
            'wp_gc_maintained' => $entity->wpGcMaintained,
225
            'wp_nc' => $entity->wpNc,
226
            'wp_oc' => $entity->wpOc,
227
            'desc_languages' => $entity->descLanguages,
228
            'default_desclang' => $entity->defaultDesclang,
229
            'date_activate' => $entity->dateActivate,
230
            'need_npa_recalc' => $entity->needNpaRecalc,
231
            'show_cachelists' => $entity->showCachelists,
232
            'protect_old_coords' => $entity->protectOldCoords,
233
            'needs_maintenance' => $entity->needsMaintenance,
234
            'listing_outdated' => $entity->listingOutdated,
235
            'flags_last_modified' => $entity->flagsLastModified,
236
        ];
237
    }
238
239
    /**
240
     * @return CachesEntity

local/devel/Repositories/CachesRepository.php 1 location

@@ 168-208 (lines=41) @@
165
    /**
166
     * @return []
167
     */
168
    public function getDatabaseArrayFromEntity(GeoCachesEntity $entity)
169
    {
170
        return [
171
            'cache_id' => $entity->cacheId,
172
            'uuid' => $entity->uuid,
173
            'node' => $entity->node,
174
            'date_created' => $entity->dateCreated,
175
            'is_publishdate' => $entity->isPublishdate,
176
            'last_modified' => $entity->lastModified,
177
            'okapi_syncbase' => $entity->okapiSyncbase,
178
            'listing_last_modified' => $entity->listingLastModified,
179
            'meta_last_modified' => $entity->metaLastModified,
180
            'user_id' => $entity->userId,
181
            'name' => $entity->name,
182
            'longitude' => $entity->longitude,
183
            'latitude' => $entity->latitude,
184
            'type' => $entity->type,
185
            'status' => $entity->status,
186
            'country' => $entity->country,
187
            'date_hidden' => $entity->dateHidden,
188
            'size' => $entity->size,
189
            'difficulty' => $entity->difficulty,
190
            'terrain' => $entity->terrain,
191
            'logpw' => $entity->logpw,
192
            'search_time' => $entity->searchTime,
193
            'way_length' => $entity->wayLength,
194
            'wp_gc' => $entity->wpGc,
195
            'wp_gc_maintained' => $entity->wpGcMaintained,
196
            'wp_nc' => $entity->wpNc,
197
            'wp_oc' => $entity->wpOc,
198
            'desc_languages' => $entity->descLanguages,
199
            'default_desclang' => $entity->defaultDesclang,
200
            'date_activate' => $entity->dateActivate,
201
            'need_npa_recalc' => $entity->needNpaRecalc,
202
            'show_cachelists' => $entity->showCachelists,
203
            'protect_old_coords' => $entity->protectOldCoords,
204
            'needs_maintenance' => $entity->needsMaintenance,
205
            'listing_outdated' => $entity->listingOutdated,
206
            'flags_last_modified' => $entity->flagsLastModified,
207
        ];
208
    }
209
210
    /**
211
     * @return GeoCachesEntity