Code Duplication    Length = 5-7 lines in 2 locations

api/src/Etemplate.php 2 locations

@@ 360-366 (lines=7) @@
357
		{
358
			if (!$extras) continue;
359
360
			foreach(isset($extras[0]) ? $extras : array($extras) as $extra)
361
			{
362
				if ($extra['data'] && is_array($extra['data']))
363
				{
364
					$validated = array_merge($validated, $extra['data']);
365
				}
366
			}
367
		}
368
369
		//error_log(__METHOD__."(,".array2string($content).')');
@@ 390-394 (lines=5) @@
387
			{
388
				if (!$extras) continue;
389
390
				foreach(isset($extras[0]) ? $extras : array($extras) as $extra) {
391
					if ($extra['data'] && is_array($extra['data'])) {
392
						$content = array_merge($content, $extra['data']);
393
					}
394
				}
395
			}
396
		}
397
		unset($hook_data);