GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (1449)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/Gateway.php (130 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Omnipay\FirstAtlanticCommerce;
4
5
use Omnipay\Common\AbstractGateway;
6
use Omnipay\FirstAtlanticCommerce\ParameterTrait;
7
8
/**
9
 * First Atlantic Commerce Payment Gateway 2 (XML POST Service)
10
 */
11
class Gateway extends AbstractGateway
12
{
13
    use ParameterTrait;
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
14
15
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
16
     * @return string Gateway name.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
17
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
18
    public function getName()
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
The function name getName is in camel caps, but expected get_name instead as per the coding standard.
Loading history...
19
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
20
        return 'First Atlantic Commerce Payment Gateway 2';
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
21
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
22
23
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
24
     * @return array Default parameters.
0 ignored issues
show
Consider making the return type a bit more specific; maybe use array<string,null|string|boolean>.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
Tabs must be used to indent lines; spaces are not allowed
Loading history...
25
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
26
    public function getDefaultParameters()
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
The function name getDefaultParameters is in camel caps, but expected get_default_parameters instead as per the coding standard.
Loading history...
27
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
28
        return [
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
29
            'merchantId'       => null,
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
30
            'merchantPassword' => null,
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
31
            'acquirerId'       => '464748',
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
32
            'testMode'         => false,
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
33
            'requireAvsCheck'  => true
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
34
        ];
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
35
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
36
37
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
38
     * Authorize an amount on the customer’s card.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
39
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
40
     * @param array $parameters
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
41
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
42
     * @return \Omnipay\FirstAtlanticCommerce\Message\AuthorizeRequest
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
43
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
44
    public function authorize(array $parameters = [])
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
45
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
46
        return $this->createRequest('\Omnipay\FirstAtlanticCommerce\Message\AuthorizeRequest', $parameters);
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
47
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
48
49
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
50
     * Capture an amount you have previously authorized.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
51
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
52
     * @param array $parameters
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
53
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
54
     * @return \Omnipay\FirstAtlanticCommerce\Message\CaptureRequest
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
55
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
56
    public function capture(array $parameters = [])
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
57
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
58
        return $this->createRequest('\Omnipay\FirstAtlanticCommerce\Message\CaptureRequest', $parameters);
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
59
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
60
61
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
62
     *  Authorize and immediately capture an amount on the customer’s card.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
63
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
64
     * @param array $parameters
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
65
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
66
     * @return \Omnipay\FirstAtlanticCommerce\Message\PurchaseRequest
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
67
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
68
    public function purchase(array $parameters = [])
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
69
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
70
        return $this->createRequest('\Omnipay\FirstAtlanticCommerce\Message\PurchaseRequest', $parameters);
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
71
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
72
73
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
74
     *  Refund an already processed transaction.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
75
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
76
     * @param array $parameters
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
77
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
78
     * @return \Omnipay\FirstAtlanticCommerce\Message\RefundRequest
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
79
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
80
    public function refund(array $parameters = [])
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
81
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
82
        return $this->createRequest('\Omnipay\FirstAtlanticCommerce\Message\RefundRequest', $parameters);
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
83
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
84
85
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
86
     *  Reverse an already submitted transaction that hasn't been settled.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
87
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
88
     * @param array $parameters
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
89
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
90
     * @return \Omnipay\FirstAtlanticCommerce\Message\VoidRequest
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
91
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
92
    public function void(array $parameters = [])
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
93
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
94
        return $this->createRequest('\Omnipay\FirstAtlanticCommerce\Message\VoidRequest', $parameters);
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
95
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
96
97
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
98
     *  Retrieve the status of any previous transaction.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
99
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
100
     * @param array $parameters
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
101
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
102
     * @return \Omnipay\FirstAtlanticCommerce\Message\StatusRequest
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
103
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
104
    public function status(array $parameters = [])
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
105
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
106
        return $this->createRequest('\Omnipay\FirstAtlanticCommerce\Message\StatusRequest', $parameters);
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
107
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
108
109
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
110
     *  Create a stored card and return the reference token for future transactions.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
111
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
112
     * @param array $parameters
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
113
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
114
     * @return \Omnipay\FirstAtlanticCommerce\Message\CreateCardRequest
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
115
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
116
    public function createCard(array $parameters = [])
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
The function name createCard is in camel caps, but expected create_card instead as per the coding standard.
Loading history...
117
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
118
        return $this->createRequest('\Omnipay\FirstAtlanticCommerce\Message\CreateCardRequest', $parameters);
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
119
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
120
121
    /**
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
122
     *  Update a stored card.
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
123
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
124
     * @param array $parameters
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
125
     *
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
126
     * @return \Omnipay\FirstAtlanticCommerce\Message\UpdateCardRequest
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
127
     */
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
128
    public function updateCard(array $parameters = [])
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
The function name updateCard is in camel caps, but expected update_card instead as per the coding standard.
Loading history...
129
    {
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
130
        return $this->createRequest('\Omnipay\FirstAtlanticCommerce\Message\UpdateCardRequest', $parameters);
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
131
    }
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
132
}
133