Showing 94 of 94 total issues
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
string $description = '',
- Exclude checks
The closing parenthesis of a multi-line function declaration must be on a new line Open
Open
Receipt $receipt = null): string
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
string $currency = self::CURRENCY_RUR,
- Exclude checks
The closing parenthesis of a multi-line function declaration must be on a new line Open
Open
Receipt $receipt = null): string;
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
string $failReturnUrl = '',
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
Receipt $receipt = null): string;
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
float $amount,
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
array $extraParams = [],
- Exclude checks
The closing parenthesis of a multi-line function declaration must be on a new line Open
Open
Receipt $receipt = null): Form
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
float $amount,
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
string $failReturnUrl = '',
- Exclude checks
The first parameter of a multi-line function declaration must be on the line after the opening bracket Open
Open
public function getPaymentLink($orderId,
- Exclude checks
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
string $currency = self::CURRENCY_RUR,
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
string $successReturnUrl = '',
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
$paymentId,
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
$paymentId,
- Exclude checks
Multi-line function declaration not indented correctly; expected 8 spaces but found 35 Open
Open
Receipt $receipt = null): Form
- Exclude checks
The method needConfirmation has a boolean flag argument $flag, which is a certain sign of a Single Responsibility Principle violation. Open
Open
public function needConfirmation(bool $flag = true): self;
- Read upRead up
- Exclude checks
BooleanArgumentFlag
Since: 1.4.0
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
Example
class Foo {
public function bar($flag = true) {
}
}
Source https://phpmd.org/rules/cleancode.html#booleanargumentflag
The method getPaymentForm has 10 parameters. Consider reducing the number of parameters to less than 10. Open
Open
public function getPaymentForm($orderId,
$paymentId,
float $amount,
string $currency = self::CURRENCY_RUR,
string $paymentType = self::PAYMENT_TYPE_CARD,
- Exclude checks