Passed
Push — main ( a0e9c5...805967 )
by Paul
07:42
created

FlyoutItemDefaults   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 1
b 0
f 0
dl 0
loc 22
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaults() 0 6 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Defaults;
4
5
class FlyoutItemDefaults extends DefaultsAbstract
6
{
7
    /**
8
     * The values that should be sanitized.
9
     * This is done after $casts and before $enums.
10
     * @var array
11
     */
12
    public $sanitize = [
13
        'icon' => 'attr-class',
14
        'title' => 'text',
15
        'url' => 'url',
16
    ];
17
18
    /**
19
     * @return array
20
     */
21
    protected function defaults()
22
    {
23
        return [
24
            'icon' => '',
25
            'title' => '',
26
            'url' => '',
27
        ];
28
    }
29
}
30