Passed
Push — main ( 76801a...007e00 )
by Dan
06:22 queued 03:30
created

PurchaseRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 3 1
A getEndpoint() 0 3 2
1
<?php
2
3
namespace Omnipay\WindcaveHpp\Message;
4
5
use Illuminate\Http\Request;
0 ignored issues
show
Bug introduced by
The type Illuminate\Http\Request was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Omnipay\Common\Message\AbstractRequest;
7
8
/**
9
 * Windcave HPP Purchase Request
10
 */
11
12
class PurchaseRequest extends AbstractRequest {
13
14
    const endpointTest = '';
15
    const endpointLive = '';
16
17
    public function initialize(array $parameters = []) 
18
    {
19
        return parent::initialize($parameters);
20
    }
21
22
    /* @todo add other purchase field functions
23
24
    /**
25
     * Get endpoint
26
     *
27
     * Returns endpoint depending on test mode
28
     *
29
     * @access protected
30
     * @return string
31
     */
32
    protected function getEndpoint() 
33
    {
34
        return ($this->getTestMode() ? self::endpointTest : self::endpointLive);
35
    }
36
}