Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -42,7 +42,7 @@ class Payment_Status extends Enum {
|
||||
*/
|
||||
protected function classes() {
|
||||
|
||||
return array(
|
||||
return [
|
||||
static::PENDING => 'wu-bg-gray-200 wu-text-gray-700',
|
||||
static::COMPLETED => 'wu-bg-green-200 wu-text-green-700',
|
||||
static::REFUND => 'wu-bg-blue-200 wu-text-gray-700',
|
||||
@ -50,7 +50,7 @@ class Payment_Status extends Enum {
|
||||
static::PARTIAL => 'wu-bg-yellow-200 wu-text-yellow-700',
|
||||
static::FAILED => 'wu-bg-red-200 wu-text-red-700',
|
||||
static::CANCELLED => 'wu-bg-orange-200 wu-text-orange-700',
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
@ -61,7 +61,7 @@ class Payment_Status extends Enum {
|
||||
*/
|
||||
protected function icon_classes() {
|
||||
|
||||
return array(
|
||||
return [
|
||||
static::PENDING => 'wu-align-middle dashicons-wu-clock wu-text-gray-700',
|
||||
static::COMPLETED => 'wu-align-middle dashicons-wu-check wu-text-green-700',
|
||||
static::REFUND => 'wu-align-middle dashicons-wu-cw wu-text-gray-700',
|
||||
@ -69,7 +69,7 @@ class Payment_Status extends Enum {
|
||||
static::PARTIAL => 'wu-align-middle dashicons-wu-cw wu-text-yellow-700',
|
||||
static::FAILED => 'wu-align-middle dashicons-wu-circle-with-cross wu-text-red-700',
|
||||
static::CANCELLED => 'wu-align-middle dashicons-wu-circle-with-cross wu-text-orange-700',
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
@ -80,7 +80,7 @@ class Payment_Status extends Enum {
|
||||
*/
|
||||
protected function labels() {
|
||||
|
||||
return array(
|
||||
return [
|
||||
static::PENDING => __('Pending', 'wp-ultimo'),
|
||||
static::COMPLETED => __('Completed', 'wp-ultimo'),
|
||||
static::REFUND => __('Refunded', 'wp-ultimo'),
|
||||
@ -88,6 +88,6 @@ class Payment_Status extends Enum {
|
||||
static::PARTIAL => __('Partially Paid', 'wp-ultimo'),
|
||||
static::FAILED => __('Failed', 'wp-ultimo'),
|
||||
static::CANCELLED => __('Cancelled', 'wp-ultimo'),
|
||||
);
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user