diff --git a/src/Commands/CertDeleteCommand.php b/src/Commands/CertDeleteCommand.php
index 81202f7c..31b6d0c8 100644
--- a/src/Commands/CertDeleteCommand.php
+++ b/src/Commands/CertDeleteCommand.php
@@ -84,14 +84,14 @@ protected function determineCertificate()
*/
protected function getCertificateForDomain(array $certificates, $domain)
{
- $certificateId = collect($certificates)->firstWhere(
+ $certificate = collect($certificates)->firstWhere(
'domain', $domain
);
- if (! $certificateId) {
+ if (! $certificate) {
Helpers::abort('You do not have any certificates matching the given criteria.');
}
- return $certificateId;
+ return $certificate['id'];
}
}
diff --git a/src/Commands/Output/DeploymentSuccess.php b/src/Commands/Output/DeploymentSuccess.php
index 0c881a56..5cf70ff0 100644
--- a/src/Commands/Output/DeploymentSuccess.php
+++ b/src/Commands/Output/DeploymentSuccess.php
@@ -27,15 +27,17 @@ public function render(Deployment $deployment, DateTimeInterface $startedAt)
$this->displayTargetDomains($deployment);
}
- Helpers::line();
+ if ($deployment->vanityDomain()) {
+ Helpers::line();
- Helpers::table([
- 'Deployment ID',
- 'Environment URL (Copied To Clipboard)'
- ], [[
- "{$deployment->id}>",
- "https://{$deployment->vanityDomain()}>",
- ]]);
+ Helpers::table([
+ 'Deployment ID',
+ 'Environment URL (Copied To Clipboard)'
+ ], [[
+ "{$deployment->id}>",
+ "https://{$deployment->vanityDomain()}>",
+ ]]);
+ }
}
/**