Code Duplication    Length = 7-7 lines in 2 locations

mod/solr_api/start.php 2 locations

@@ 259-265 (lines=7) @@
256
257
	foreach ($entities as $entity) {
258
		
259
		if (is_Json($entity->title)) {
260
			$title_array['en'] = str_replace('"', '\"', gc_explode_translation($entity->title, 'en'));
261
			$title_array['fr'] = str_replace('"', '\"', gc_explode_translation($entity->title, 'fr'));
262
		} else {
263
			$title_array['en'] = $entity->title;
264
			$title_array['fr'] = $entity->title;
265
		}
266
267
		if (is_Json($entity->description)) {
268
			$description_array['en'] = str_replace('"', '\"', gc_explode_translation($entity->description, 'en'));
@@ 267-273 (lines=7) @@
264
			$title_array['fr'] = $entity->title;
265
		}
266
267
		if (is_Json($entity->description)) {
268
			$description_array['en'] = str_replace('"', '\"', gc_explode_translation($entity->description, 'en'));
269
			$description_array['fr'] = str_replace('"', '\"', gc_explode_translation($entity->description, 'fr'));
270
		} else {
271
			$description_array['en'] = $entity->description;
272
			$description_array['fr'] = $entity->description;
273
		}
274
275
		$arr[] = array(
276
			'guid' => $entity->getGUID(),