This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace Esun\CustomerCoupon\Model\Coupon;
use Magento\SalesRule\Model\Rule;
class ConditionFormatter
{
/** @return string[] */
public function format(Rule $rule): array
{
$description = trim(strip_tags((string)$rule->getDescription()));
return $description === '' ? [] : [$description];
}
}