From 9414456fd15cec2bd34dab6ea96f6c24b66cc60b Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 30 Aug 2015 22:45:27 +0100 Subject: [PATCH] More docblocks that should return void --- app/Composers/AppComposer.php | 2 ++ app/Composers/CurrentUserComposer.php | 2 ++ app/Composers/DashboardComposer.php | 2 ++ app/Composers/MetricsComposer.php | 2 ++ app/Composers/StatusPageComposer.php | 2 ++ app/Composers/ThemeComposer.php | 2 ++ app/Composers/TimezoneLocaleComposer.php | 2 ++ app/Config/Repository.php | 4 ++++ app/Console/Kernel.php | 2 ++ app/Events/CustomerHasSubscribedEvent.php | 2 ++ app/Events/IncidentHasReportedEvent.php | 2 ++ app/Events/MaintenanceHasScheduledEvent.php | 2 ++ app/Handlers/Events/SendIncidentEmailNotificationHandler.php | 4 ++++ .../Events/SendMaintenanceEmailNotificationHandler.php | 4 ++++ .../Events/SendSubscriberVerificationEmailHandler.php | 4 ++++ app/Presenters/AbstractPresenter.php | 2 +- 16 files changed, 39 insertions(+), 1 deletion(-) diff --git a/app/Composers/AppComposer.php b/app/Composers/AppComposer.php index 3e30aa40f..e8fee2968 100644 --- a/app/Composers/AppComposer.php +++ b/app/Composers/AppComposer.php @@ -20,6 +20,8 @@ class AppComposer * Index page view composer. * * @param \Illuminate\Contracts\View\View $view + * + * @return void */ public function compose(View $view) { diff --git a/app/Composers/CurrentUserComposer.php b/app/Composers/CurrentUserComposer.php index 7ff81d03a..7543ad8d2 100644 --- a/app/Composers/CurrentUserComposer.php +++ b/app/Composers/CurrentUserComposer.php @@ -20,6 +20,8 @@ class CurrentUserComposer * Bind data to the view. * * @param \Illuminate\Contracts\View\View $view + * + * @return void */ public function compose(View $view) { diff --git a/app/Composers/DashboardComposer.php b/app/Composers/DashboardComposer.php index 85a4318eb..8f320fa61 100644 --- a/app/Composers/DashboardComposer.php +++ b/app/Composers/DashboardComposer.php @@ -21,6 +21,8 @@ class DashboardComposer * Bind data to the view. * * @param \Illuminate\Contracts\View\View $view + * + * @return void */ public function compose(View $view) { diff --git a/app/Composers/MetricsComposer.php b/app/Composers/MetricsComposer.php index dcc5c772b..a90bdba7c 100644 --- a/app/Composers/MetricsComposer.php +++ b/app/Composers/MetricsComposer.php @@ -39,6 +39,8 @@ class MetricsComposer * Metrics view composer. * * @param \Illuminate\Contracts\View\View $view + * + * @return void */ public function compose(View $view) { diff --git a/app/Composers/StatusPageComposer.php b/app/Composers/StatusPageComposer.php index 97616fe29..414730967 100644 --- a/app/Composers/StatusPageComposer.php +++ b/app/Composers/StatusPageComposer.php @@ -23,6 +23,8 @@ class StatusPageComposer * Index page view composer. * * @param \Illuminate\Contracts\View\View $view + * + * @return void */ public function compose(View $view) { diff --git a/app/Composers/ThemeComposer.php b/app/Composers/ThemeComposer.php index f14a927a0..54bc59464 100644 --- a/app/Composers/ThemeComposer.php +++ b/app/Composers/ThemeComposer.php @@ -20,6 +20,8 @@ class ThemeComposer * Bind data to the view. * * @param \Illuminate\Contracts\View\View $view + * + * @return void */ public function compose(View $view) { diff --git a/app/Composers/TimezoneLocaleComposer.php b/app/Composers/TimezoneLocaleComposer.php index 175438e8f..94679b7d1 100644 --- a/app/Composers/TimezoneLocaleComposer.php +++ b/app/Composers/TimezoneLocaleComposer.php @@ -22,6 +22,8 @@ class TimezoneLocaleComposer * Timezones and Locales composer. * * @param \Illuminate\Contracts\View\View $view + * + * @return void */ public function compose(View $view) { diff --git a/app/Config/Repository.php b/app/Config/Repository.php index be98b51ed..9051017a7 100644 --- a/app/Config/Repository.php +++ b/app/Config/Repository.php @@ -33,6 +33,8 @@ class Repository * Create a new settings service instance. * * @param \CachetHQ\Cachet\Models\Setting $model + * + * @return void */ public function __construct(Setting $model) { @@ -75,6 +77,8 @@ class Repository * * @param string $name * @param string $value + * + * @return void */ public function set($name, $value) { diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index beafef10a..c374ec1f0 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -29,6 +29,8 @@ class Kernel extends ConsoleKernel * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule + * + * @return void */ protected function schedule(Schedule $schedule) { diff --git a/app/Events/CustomerHasSubscribedEvent.php b/app/Events/CustomerHasSubscribedEvent.php index 03002b46a..809f579bd 100644 --- a/app/Events/CustomerHasSubscribedEvent.php +++ b/app/Events/CustomerHasSubscribedEvent.php @@ -24,6 +24,8 @@ class CustomerHasSubscribedEvent /** * Create a new customer has subscribed event instance. + * + * @return void */ public function __construct(Subscriber $subscriber) { diff --git a/app/Events/IncidentHasReportedEvent.php b/app/Events/IncidentHasReportedEvent.php index cad5bc17a..81f13990c 100644 --- a/app/Events/IncidentHasReportedEvent.php +++ b/app/Events/IncidentHasReportedEvent.php @@ -24,6 +24,8 @@ class IncidentHasReportedEvent /** * Create a new incident has reported event instance. + * + * @return void */ public function __construct(Incident $incident) { diff --git a/app/Events/MaintenanceHasScheduledEvent.php b/app/Events/MaintenanceHasScheduledEvent.php index 66689ab04..4aea3173c 100644 --- a/app/Events/MaintenanceHasScheduledEvent.php +++ b/app/Events/MaintenanceHasScheduledEvent.php @@ -24,6 +24,8 @@ class MaintenanceHasScheduledEvent /** * Create a new maintenance has scheduled event instance. + * + * @return void */ public function __construct(Incident $incident) { diff --git a/app/Handlers/Events/SendIncidentEmailNotificationHandler.php b/app/Handlers/Events/SendIncidentEmailNotificationHandler.php index fa8abbf98..4f8abc02c 100644 --- a/app/Handlers/Events/SendIncidentEmailNotificationHandler.php +++ b/app/Handlers/Events/SendIncidentEmailNotificationHandler.php @@ -46,6 +46,8 @@ class SendIncidentEmailNotificationHandler * @param \Illuminate\Contracts\Mail\Mailer $mailer * @param \CachetHQ\Cachet\Models\Subscriber $subscriber * @param \McCool\LaravelAutoPresenter\PresenterDecorator $presenter + * + * @return void */ public function __construct(MailQueue $mailer, Subscriber $subscriber, PresenterDecorator $presenter) { @@ -58,6 +60,8 @@ class SendIncidentEmailNotificationHandler * Handle the event. * * @param \CachetHQ\Cachet\Events\IncidentHasReportedEvent $event + * + * @return void */ public function handle(IncidentHasReportedEvent $event) { diff --git a/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php b/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php index 71637d7a3..983d83586 100644 --- a/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php +++ b/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php @@ -46,6 +46,8 @@ class SendMaintenanceEmailNotificationHandler * @param \Illuminate\Contracts\Mail\Mailer $mailer * @param \CachetHQ\Cachet\Models\Subscriber $subscriber * @param \McCool\LaravelAutoPresenter\PresenterDecorator $presenter + * + * @return void */ public function __construct(MailQueue $mailer, Subscriber $subscriber, PresenterDecorator $presenter) { @@ -58,6 +60,8 @@ class SendMaintenanceEmailNotificationHandler * Handle the event. * * @param \CachetHQ\Cachet\Events\MaintenanceHasScheduledEvent $event + * + * @return void */ public function handle(MaintenanceHasScheduledEvent $event) { diff --git a/app/Handlers/Events/SendSubscriberVerificationEmailHandler.php b/app/Handlers/Events/SendSubscriberVerificationEmailHandler.php index 5ee438d58..656344a93 100644 --- a/app/Handlers/Events/SendSubscriberVerificationEmailHandler.php +++ b/app/Handlers/Events/SendSubscriberVerificationEmailHandler.php @@ -28,6 +28,8 @@ class SendSubscriberVerificationEmailHandler * Create a new send subscriber verification email handler. * * @param \Illuminate\Contracts\Mail\Mailer $mailer + * + * @return void */ public function __construct(MailQueue $mailer) { @@ -38,6 +40,8 @@ class SendSubscriberVerificationEmailHandler * Handle the event. * * @param \CachetHQ\Cachet\Events\CustomerHasSubscribedEvent $event + * + * @return void */ public function handle(CustomerHasSubscribedEvent $event) { diff --git a/app/Presenters/AbstractPresenter.php b/app/Presenters/AbstractPresenter.php index 01581c750..1da6485a2 100644 --- a/app/Presenters/AbstractPresenter.php +++ b/app/Presenters/AbstractPresenter.php @@ -27,7 +27,7 @@ abstract class AbstractPresenter extends BaseLaravelAutoPresenter implements Arr /** * Create a incident presenter instance. * - * @param object $resource + * @param \Illuminate\Database\Eloquent\Model $resource */ public function __construct($resource) {