[Changed] code cleanup
php cs fixer
This commit is contained in:
@ -9,15 +9,15 @@ class Basket extends Basket_parent
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentOnPaymentId() :string
|
||||
public function getPaymentOnPaymentId(): string
|
||||
{
|
||||
if ($this->getPaymentId()){
|
||||
if ($this->getPaymentId()) {
|
||||
$oPayment = oxNew(Payment::class);
|
||||
if ($oPayment->load($this->getPaymentId())){
|
||||
if ($oPayment->load($this->getPaymentId())) {
|
||||
return $oPayment->getFieldData('oxdesc');
|
||||
}
|
||||
}
|
||||
|
||||
return "couldn't load payment!";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user