PaymentRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A send() 0 9 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Nxmad\Larapay\Requests;
6
7
use Nxmad\Larapay\Units\Redirect;
8
use Nxmad\Larapay\Abstracts\Request;
9
10
class PaymentRequest extends Request
11
{
12
    /**
13
     * @return Redirect
14
     */
15
    public function send()
16
    {
17
        parent::send();
18
19
        if ($this->gateway->config('public')) {
20
            $this->set(Request::PUBLIC, $this->gateway->config('public'));
21
        }
22
23
        return $this->redirect();
24
    }
25
}
26