Passed
Branch master (c87ba8)
by Christian
16:02
created

WidgetApi   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefaultChartColors() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the TYPO3 CMS project.
7
 *
8
 * It is free software; you can redistribute it and/or modify it under
9
 * the terms of the GNU General Public License, either version 2
10
 * of the License, or any later version.
11
 *
12
 * For the full copyright and license information, please read the
13
 * LICENSE.txt file that was distributed with this source code.
14
 *
15
 * The TYPO3 project - inspiring people to share!
16
 */
17
18
namespace TYPO3\CMS\Dashboard;
19
20
/**
21
 * Provides API for widgets.
22
 */
23
class WidgetApi
24
{
25
    /**
26
     * Provides default colors to use for charts.
27
     *
28
     * @return array Hex codes of default colors.
29
     */
30
    public static function getDefaultChartColors(): array
31
    {
32
        return [
33
            '#ff8700',
34
            '#a4276a',
35
            '#1a568f',
36
            '#4c7e3a',
37
            '#69bbb5',
38
        ];
39
    }
40
}
41