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

StripeExecutionRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 6 1
1
<?php
2
3
namespace App\Shop\Carts\Requests;
4
5
use App\Shop\Base\BaseFormRequest;
6
7
class StripeExecutionRequest 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
            'stripeToken' => ['required'],
18
            'courier' => ['required'],
19
            'billing_address' => ['required'],
20
        ];
21
    }
22
}
23