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

FlyoutItemDefaults::defaults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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