src/Resource/PaymentResource.php
Method create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function create($amount, $description, $redirectUrl, $metadata = null, array $opts = array())
Missing class import via use statement (line '68', column '23'). Open
Open
throw new \InvalidArgumentException('Metadata argument must be of type array or object.');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '99', column '23'). Open
Open
throw new \BadMethodCallException("No payment ID was given");
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}