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

ValidationStringsDefaults::defaults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 13
nc 1
nop 0
dl 0
loc 15
ccs 0
cts 15
cp 0
crap 2
rs 9.8333
c 0
b 0
f 0
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