Skip to content

Commit

Permalink
Fix deprecated variable syntax (#119)
Browse files Browse the repository at this point in the history
* Fix depcrecated variable syntax

* Fix typo

Looks like editor autocomplete added a typo to a variable name, fixed arrcustomerEmail -> customerEmail
  • Loading branch information
virgildotcodes authored Feb 11, 2025
1 parent 689941d commit 9904155
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Console/ListLicensesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -141,7 +141,7 @@ private function displayProductInfo(array $license): void

$this->components->twoColumnDetail(
'<fg=gray>Product:Variant</>',
"<fg=gray>${productId}:${variantId}</>"
"<fg=gray>{$productId}:{$variantId}</>"
);
}

Expand All @@ -152,7 +152,7 @@ private function displayCustomer(array $license): void

$this->components->twoColumnDetail(
'<fg=gray>Customer</>',
"<fg=gray>${customerName} [${customerEmail}]</>"
"<fg=gray>{$customerName} [{$customerEmail}]</>"
);
}

Expand All @@ -169,7 +169,7 @@ protected function displayLicense(array $license, bool $long): void
$this->displayCustomer($license);
$this->components->twoColumnDetail(
'<fg=gray>Order ID</>',
"<fg=gray>${orderId}</>"
"<fg=gray>{$orderId}</>"
);
}
}

0 comments on commit 9904155

Please # to comment.