getCarrierTitle(), $shippingMethod->getMethodTitle(), ]; $data = array_filter($data); $formatted = join(' - ', $data); return $formatted; } }