File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ private function getResponseParameters(RequestParameters $inputParameters)
8686
8787 if (
8888 $ inputParameters ->cofIni === CofInitial::No
89- and $ inputParameters ->merchantIdentifier
89+ && $ inputParameters ->merchantIdentifier
9090 ) {
9191 $ returnParameters ['Ds_Card_Number ' ] = '454881******0003 ' ;
9292 $ returnParameters ['Ds_Merchant_Cof_Txnid ' ] = '2006031152000 ' ;
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ public function setParametersFromResponse(array $data): void
3333
3434 if (
3535 empty ($ data ['Ds_SignatureVersion ' ])
36- or empty ($ data ['Ds_MerchantParameters ' ])
37- or empty ($ data ['Ds_Signature ' ])
36+ || empty ($ data ['Ds_MerchantParameters ' ])
37+ || empty ($ data ['Ds_Signature ' ])
3838 ) {
3939 throw new InvalidRedsysResponseException ('Redsys: invalid response from bank. ' );
4040 }
@@ -78,6 +78,6 @@ public function checkResponse(): NotificationParameters
7878
7979 public static function isAuthorisedCode (int $ responseCode ): bool
8080 {
81- return ! ($ responseCode > 99 and $ responseCode !== 400 && $ responseCode !== 900 );
81+ return ! ($ responseCode > 99 && $ responseCode !== 400 && $ responseCode !== 900 );
8282 }
8383}
You can’t perform that action at this time.
0 commit comments