From 5fd3abcbd036b08cc81f5f6222c086af78c60e48 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 6 Dec 2015 11:32:30 +0000 Subject: [PATCH] Fixed commands --- app/Commands/Incident/ReportIncidentCommand.php | 2 +- app/Commands/Incident/UpdateIncidentCommand.php | 2 +- app/Commands/Invite/ClaimInviteCommand.php | 8 +++++--- app/Commands/Subscriber/UnsubscribeSubscriberCommand.php | 2 +- app/Commands/Subscriber/VerifySubscriberCommand.php | 2 +- app/Commands/User/GenerateApiTokenCommand.php | 4 +++- app/Commands/User/InviteTeamMemberCommand.php | 4 ++-- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app/Commands/Incident/ReportIncidentCommand.php b/app/Commands/Incident/ReportIncidentCommand.php index a4bcda9e..0d840b70 100644 --- a/app/Commands/Incident/ReportIncidentCommand.php +++ b/app/Commands/Incident/ReportIncidentCommand.php @@ -116,7 +116,7 @@ final class ReportIncidentCommand * * @return void */ - public function __construct($name, $status, $message, $visible, $component_id, $component_status, $notify, $incident_date, $template, $template_vars) + public function __construct($name, $status, $message, $visible, $component_id, $component_status, $notify, $incident_date, $template, array $template_vars = null) { $this->name = $name; $this->status = $status; diff --git a/app/Commands/Incident/UpdateIncidentCommand.php b/app/Commands/Incident/UpdateIncidentCommand.php index 7517b7ec..1b565570 100644 --- a/app/Commands/Incident/UpdateIncidentCommand.php +++ b/app/Commands/Incident/UpdateIncidentCommand.php @@ -125,7 +125,7 @@ final class UpdateIncidentCommand * * @return void */ - public function __construct(Incident $incident, $name, $status, $message, $visible, $component_id, $component_status, $notify, $incident_date, $template, $template_vars) + public function __construct(Incident $incident, $name, $status, $message, $visible, $component_id, $component_status, $notify, $incident_date, $template, array $template_vars = null) { $this->incident = $incident; $this->name = $name; diff --git a/app/Commands/Invite/ClaimInviteCommand.php b/app/Commands/Invite/ClaimInviteCommand.php index 7e49c0f7..9b89624b 100644 --- a/app/Commands/Invite/ClaimInviteCommand.php +++ b/app/Commands/Invite/ClaimInviteCommand.php @@ -11,23 +11,25 @@ namespace CachetHQ\Cachet\Commands\Invite; +use CachetHQ\Cachet\Models\Invite; + final class ClaimInviteCommand { /** * The invte to mark as claimed. * - * @var \CachetHQ\Cachet\Model\Invite + * @var \CachetHQ\Cachet\Models\Invite */ public $invite; /** * Create a new claim invite command instance. * - * @param \CachetHQ\Cachet\Model\Invite $invite + * @param \CachetHQ\Cachet\Models\Invite $invite * * @return void */ - public function __construct($invite) + public function __construct(Invite $invite) { $this->invite = $invite; } diff --git a/app/Commands/Subscriber/UnsubscribeSubscriberCommand.php b/app/Commands/Subscriber/UnsubscribeSubscriberCommand.php index b46e2b0b..a5392fb7 100644 --- a/app/Commands/Subscriber/UnsubscribeSubscriberCommand.php +++ b/app/Commands/Subscriber/UnsubscribeSubscriberCommand.php @@ -25,7 +25,7 @@ final class UnsubscribeSubscriberCommand /** * Create a unsubscribe subscriber command instance. * - * @param string $subscriber + * @param \CachetHQ\Cachet\Models\Subscriber $subscriber * * @return void */ diff --git a/app/Commands/Subscriber/VerifySubscriberCommand.php b/app/Commands/Subscriber/VerifySubscriberCommand.php index 51ca7fa3..fa4aa63e 100644 --- a/app/Commands/Subscriber/VerifySubscriberCommand.php +++ b/app/Commands/Subscriber/VerifySubscriberCommand.php @@ -25,7 +25,7 @@ final class VerifySubscriberCommand /** * Create a verify subscriber command instance. * - * @param string $subscriber + * @param \CachetHQ\Cachet\Models\Subscriber $subscriber * * @return void */ diff --git a/app/Commands/User/GenerateApiTokenCommand.php b/app/Commands/User/GenerateApiTokenCommand.php index 5b79428b..742b9140 100644 --- a/app/Commands/User/GenerateApiTokenCommand.php +++ b/app/Commands/User/GenerateApiTokenCommand.php @@ -11,6 +11,8 @@ namespace CachetHQ\Cachet\Commands\User; +use CachetHQ\Cachet\Models\User; + final class GenerateApiTokenCommand { /** @@ -27,7 +29,7 @@ final class GenerateApiTokenCommand * * @return void */ - public function __construct($user) + public function __construct(User $user) { $this->user = $user; } diff --git a/app/Commands/User/InviteTeamMemberCommand.php b/app/Commands/User/InviteTeamMemberCommand.php index 7090fe28..4807132f 100644 --- a/app/Commands/User/InviteTeamMemberCommand.php +++ b/app/Commands/User/InviteTeamMemberCommand.php @@ -32,11 +32,11 @@ final class InviteTeamMemberCommand /** * Create a new invite team member command instance. * - * @param array $email + * @param string[] $email * * @return void */ - public function __construct($emails) + public function __construct(array $emails) { $this->emails = $emails; }