Code Duplication    Length = 5-7 lines in 2 locations

api/src/Etemplate.php 2 locations

@@ 376-382 (lines=7) @@
373
		{
374
			if (!$extras) continue;
375
376
			foreach(isset($extras[0]) ? $extras : array($extras) as $extra)
377
			{
378
				if ($extra['data'] && is_array($extra['data']))
379
				{
380
					$validated = array_merge($validated, $extra['data']);
381
				}
382
			}
383
		}
384
385
		//error_log(__METHOD__."(,".array2string($content).')');
@@ 414-418 (lines=5) @@
411
			{
412
				if (!$extras) continue;
413
414
				foreach(isset($extras[0]) ? $extras : array($extras) as $extra) {
415
					if ($extra['data'] && is_array($extra['data'])) {
416
						$content = array_merge($content, $extra['data']);
417
					}
418
				}
419
			}
420
		}
421
		unset($hook_data);