Code Duplication    Length = 10-11 lines in 2 locations

manager/media/calendar/datepicker.inc.php 1 location

@@ 3-13 (lines=11) @@
1
<?php
2
3
class DATEPICKER {
4
	function __construct() {
5
	}
6
7
	function getDP() {
8
		$modx = evolutionCMS(); global $_lang;
9
10
		$tpl = file_get_contents(__DIR__ . '/datepicker.tpl');
11
		return $modx->parseText($tpl, $_lang, '[%', '%]');
12
	}
13
}
14

manager/media/style/common/moo-datepicker/datepicker.inc.php 1 location

@@ 2-11 (lines=10) @@
1
<?php
2
class DATEPICKER {
3
    function __construct() {
4
    }
5
    function getDP() {
6
        $modx = evolutionCMS(); global$_lang;
7
8
        $tpl = file_get_contents(__DIR__.'/datepicker.tpl');
9
        return $modx->parseText($tpl,$_lang,'[%','%]');
10
    }
11
}
12