Test Failed
Push — master ( 31c635...ef6440 )
by Paul
07:17 queued 01:32
created

ValidationStringsDefaults   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 20
ccs 0
cts 15
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaults() 0 15 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Defaults;
4
5
use GeminiLabs\SiteReviews\Defaults\DefaultsAbstract as Defaults;
6
7
class ValidationStringsDefaults extends Defaults
8
{
9
    /**
10
     * @return array
11
     */
12
    protected function defaults()
13
    {
14
        return [
15
            'accepted' => __('This field must be accepted.', 'site-reviews'),
16
            'between' => __('This field value must be between %s and %s.', 'site-reviews'),
17
            'betweenlength' => __('This field must have between %s and %s characters.', 'site-reviews'),
18
            'email' => __('This field requires a valid e-mail address.', 'site-reviews'),
19
            'errors' => __('Please fix the submission errors.', 'site-reviews'),
20
            'max' => __('Maximum value for this field is %s.', 'site-reviews'),
21
            'maxlength' => __('This field allows a maximum of %s characters.', 'site-reviews'),
22
            'min' => __('Minimum value for this field is %s.', 'site-reviews'),
23
            'minlength' => __('This field requires a minimum of %s characters.', 'site-reviews'),
24
            'number' => __('This field requires a number.', 'site-reviews'),
25
            'required' => __('This field is required.', 'site-reviews'),
26
            'unsupported' => __('The review could not be submitted because this browser is too old. Please try again with a modern browser.', 'site-reviews'),
27
        ];
28
    }
29
}
30