From 7cfc26efe6b1695a2a18a02e3adf9d1c539c07c1 Mon Sep 17 00:00:00 2001 From: Virgil Nilson Date: Tue, 11 Feb 2025 11:54:40 -0800 Subject: [PATCH 1/2] Fix depcrecated variable syntax --- src/Console/ListLicensesCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/ListLicensesCommand.php b/src/Console/ListLicensesCommand.php index e3431d8..d19885b 100644 --- a/src/Console/ListLicensesCommand.php +++ b/src/Console/ListLicensesCommand.php @@ -131,7 +131,7 @@ private function displayStatus(array $license): string $limit = Arr::get($license, 'attributes.activation_limit') ?? '0'; $usage = Arr::get($license, 'attributes.activation_usage') ?? '0'; - return "${status} (${usage}/${limit})"; + return "{$status} ({$usage}/{$limit})"; } private function displayProductInfo(array $license): void @@ -141,7 +141,7 @@ private function displayProductInfo(array $license): void $this->components->twoColumnDetail( 'Product:Variant', - "${productId}:${variantId}" + "{$productId}:{$variantId}" ); } @@ -152,7 +152,7 @@ private function displayCustomer(array $license): void $this->components->twoColumnDetail( 'Customer', - "${customerName} [${customerEmail}]" + "{$customerName} [{$arrcustomerEmail}]" ); } @@ -169,7 +169,7 @@ protected function displayLicense(array $license, bool $long): void $this->displayCustomer($license); $this->components->twoColumnDetail( 'Order ID', - "${orderId}" + "{$orderId}" ); } } From 78ef7bb94e398ae5f16518b1c0360e8f010c6bd6 Mon Sep 17 00:00:00 2001 From: Virgil Date: Tue, 11 Feb 2025 15:00:54 -0500 Subject: [PATCH 2/2] Fix typo Looks like editor autocomplete added a typo to a variable name, fixed arrcustomerEmail -> customerEmail --- src/Console/ListLicensesCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ListLicensesCommand.php b/src/Console/ListLicensesCommand.php index d19885b..934c62b 100644 --- a/src/Console/ListLicensesCommand.php +++ b/src/Console/ListLicensesCommand.php @@ -152,7 +152,7 @@ private function displayCustomer(array $license): void $this->components->twoColumnDetail( 'Customer', - "{$customerName} [{$arrcustomerEmail}]" + "{$customerName} [{$customerEmail}]" ); }