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

GatekeeperNoticeDefaults   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 11
c 1
b 1
f 0
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaults() 0 7 1
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