Test Failed
Push — develop ( 4e95f0...9cbbdf )
by Paul
08:00
created

GatekeeperNoticeDefaults::defaults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 5
c 1
b 1
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Defaults;
4
5
class GatekeeperNoticeDefaults extends DefaultsAbstract
6
{
7
    /**
8
     * The values that should be sanitized.
9
     * This is done after $casts and before $enums.
10
     */
11
    public array $sanitize = [
12
        'error' => 'text',
13
        'name' => 'text',
14
        'plugin_uri' => 'url',
15
        'textdomain' => 'slug',
16
    ];
17
18
    protected function defaults(): array
19
    {
20
        return [
21
            'error' => '',
22
            'name' => '',
23
            'plugin_uri' => '',
24
            'textdomain' => '',
25
        ];
26
    }
27
}
28