Test Failed
Push — master ( 55431f...64d5a8 )
by Jeff
04:55
created

PayPalCheckoutExecutionRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 8 1
1
<?php
2
3
namespace App\Shop\Carts\Requests;
4
5
use App\Shop\Base\BaseFormRequest;
6
7
class PayPalCheckoutExecutionRequest extends BaseFormRequest implements CheckoutInterface
8
{
9
    /**
10
     * Get the validation rules that apply to the request.
11
     *
12
     * @return array
13
     */
14
    public function rules()
15
    {
16
        return [
17
            'paymentId' => ['required'],
18
            'PayerID' => ['required'],
19
            'courier' => ['required'],
20
            'billing_address' => ['required'],
21
            'payment' => ['required']
22
        ];
23
    }
24
}
25