Passed
Push — develop ( 9324e6...f3eb57 )
by Septianata
04:31
created

AbstractRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAttributes() 0 16 1
1
<?php
2
3
namespace App\Http\Requests\Customer;
4
5
use App\Infrastructure\Foundation\Http\FormRequest;
6
7
abstract class AbstractRequest extends FormRequest
8
{
9
    /**
10
     * {@inheritDoc}
11
     */
12 2
    public static function getAttributes()
13
    {
14
        return [
15 2
            'username' => trans('Username'),
16 2
            'fullname' => trans('Full name'),
17 2
            'gender' => trans('Gender'),
18 2
            'email' => trans('Email'),
19 2
            'phone_country' => trans('Phone Country'),
20 2
            'phone' => trans('Phone Number'),
21 2
            'whatsapp_phone_country' => trans('Whatsapp Phone Country'),
22 2
            'whatsapp_phone' => trans('Whatsapp Phone Number'),
23 2
            'account_number' => trans('Account Number'),
24 2
            'identitycard_number' => trans('Identity Card Number'),
25 2
            'identitycard_image' => trans('Identity Card Image'),
26 2
            'location_latitude' => trans('Latitude'),
27 2
            'location_longitude' => trans('Longitude'),
28
        ];
29
    }
30
}
31