Code Duplication    Length = 14-14 lines in 2 locations

engine/classes/ElggPluginManifest.php 2 locations

@@ 441-454 (lines=14) @@
438
	 *
439
	 * @return array
440
	 */
441
	public function getScreenshots() {
442
		$ss = $this->parser->getAttribute('screenshot');
443
444
		if (!$ss) {
445
			$ss = array();
446
		}
447
448
		$normalized = array();
449
		foreach ($ss as $s) {
450
			$normalized[] = $this->buildStruct($this->screenshotStruct, $s);
451
		}
452
453
		return $normalized;
454
	}
455
	
456
	/**
457
	 * Return the contributors listed.
@@ 461-474 (lines=14) @@
458
	 *
459
	 * @return array
460
	 */
461
	public function getContributors() {
462
		$ss = $this->parser->getAttribute('contributor');
463
464
		if (!$ss) {
465
			$ss = array();
466
		}
467
468
		$normalized = array();
469
		foreach ($ss as $s) {
470
			$normalized[] = $this->buildStruct($this->contributorStruct, $s);
471
		}
472
473
		return $normalized;
474
	}
475
476
	/**
477
	 * Return the list of provides by this plugin.