Code Duplication    Length = 25-25 lines in 2 locations

src/Charcoal/Admin/Widget/Graph/AbstractGraphWidget.php 1 location

@@ 66-90 (lines=25) @@
63
    /**
64
     * @todo Read from widget metadata
65
     */
66
    public function defaultColors()
67
    {
68
        return [
69
            '#ed5564',
70
            '#337ab7',
71
            '#da70d6',
72
            '#32cd32',
73
            '#6495ed',
74
            '#ff69b4',
75
            '#ba55d3',
76
            '#cd5c5c',
77
            '#ffa500',
78
            '#40e0d0',
79
            '#1e90ff',
80
            '#ff6347',
81
            '#7b68ee',
82
            '#00fa9a',
83
            '#ffd700',
84
            '#6b8e23',
85
            '#ff00ff',
86
            '#3cb371',
87
            '#b8860b',
88
            '#30e0e0'
89
        ];
90
    }
91
92
    /**
93
     * @return array Categories structure.

src/Charcoal/Admin/Widget/GraphWidget.php 1 location

@@ 63-87 (lines=25) @@
60
    /**
61
     * @todo Read from widget metadata
62
     */
63
    public function defaultColors()
64
    {
65
        return [
66
            '#ed5564',
67
            '#337ab7',
68
            '#da70d6',
69
            '#32cd32',
70
            '#6495ed',
71
            '#ff69b4',
72
            '#ba55d3',
73
            '#cd5c5c',
74
            '#ffa500',
75
            '#40e0d0',
76
            '#1e90ff',
77
            '#ff6347',
78
            '#7b68ee',
79
            '#00fa9a',
80
            '#ffd700',
81
            '#6b8e23',
82
            '#ff00ff',
83
            '#3cb371',
84
            '#b8860b',
85
            '#30e0e0'
86
        ];
87
    }
88
}
89