TcaUtility   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBaseConfiguration() 0 28 1
1
<?php
2
3
/**
4
 * TCA functions.
5
 */
6
7
namespace HDNET\Focuspoint\Utility;
8
9
/**
10
 * TCA functions.
11
 */
12
class TcaUtility
13
{
14
    /**
15
     * Get field configuration.
16
     *
17
     * @return array
18
     */
19
    public static function getBaseConfiguration()
20
    {
21
        return [
22
            'config' => [
23
                'type' => 'input',
24
                'size' => 4,
25
                'eval' => 'trim,int',
26
                'range' => [
27
                    'lower' => -100,
28
                    'upper' => 100,
29
                ],
30
                'wizards' => [
31
                    '_DISTANCE' => '10',
32
                    'focuspoint' => [
33
                        'type' => 'script',
34
                        'icon' => 'EXT:focuspoint/ext_icon.svg',
35
                        'module' => [
36
                            'name' => 'focuspoint',
37
                        ],
38
                    ],
39
                    'slider' => [
40
                        'type' => 'slider',
41
                        'step' => '1',
42
                    ],
43
                ],
44
            ],
45
        ];
46
    }
47
}
48