Code Duplication    Length = 18-18 lines in 2 locations

reportwidgets/AccessLogChartLine.php 1 location

@@ 40-57 (lines=18) @@
37
        return $this->makePartial('widget');
38
    }
39
40
	public function defineProperties()
41
	{
42
		return [
43
			'title' => [
44
                'title' => 'vojtasvoboda.useraccesslog::lang.reportwidgets.chartline.title',
45
                'default' => 'vojtasvoboda.useraccesslog::lang.reportwidgets.chartline.title_default',
46
				'type' => 'string',
47
				'validationPattern' => '^.+$',
48
				'validationMessage' => 'vojtasvoboda.useraccesslog::lang.reportwidgets.chartline.title_validation',
49
			],
50
            'days' => [
51
                'title' => 'vojtasvoboda.useraccesslog::lang.reportwidgets.chartline.days_title',
52
                'default' => '30',
53
                'type' => 'string',
54
                'validationPattern' => '^[0-9]+$',
55
            ]
56
		];
57
	}
58
59
    protected function loadData()
60
    {

reportwidgets/AccessLogChartLineAggregated.php 1 location

@@ 41-58 (lines=18) @@
38
     *
39
     * @return array
40
     */
41
	public function defineProperties()
42
	{
43
		return [
44
			'title' => [
45
				'title' => 'vojtasvoboda.useraccesslog::lang.reportwidgets.chartlineaggregated.title',
46
				'default' => 'vojtasvoboda.useraccesslog::lang.reportwidgets.chartlineaggregated.title_default',
47
				'type' => 'string',
48
				'validationPattern' => '^.+$',
49
				'validationMessage' => 'vojtasvoboda.useraccesslog::lang.reportwidgets.chartlineaggregated.title_validation',
50
			],
51
            'days' => [
52
                'title' => 'vojtasvoboda.useraccesslog::lang.reportwidgets.chartlineaggregated.days_title',
53
                'default' => '30',
54
                'type' => 'string',
55
                'validationPattern' => '^[0-9]+$',
56
            ]
57
		];
58
	}
59
60
    protected function loadData()
61
    {