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

AbstractRequest::getAttributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 14
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 16
ccs 14
cts 14
cp 1
rs 9.7998
cc 1
nc 1
nop 0
crap 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