From e47bc6a88742978d6b28724565e86a159e3eed15 Mon Sep 17 00:00:00 2001 From: Patabugen Date: Thu, 14 Sep 2023 12:34:01 +0000 Subject: [PATCH] Fix styling --- src/Collections/BaseWatchCollection.php | 2 -- src/Commands/LaravelModelWatchCommand.php | 4 +--- src/ModelWatcher.php | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Collections/BaseWatchCollection.php b/src/Collections/BaseWatchCollection.php index c409dce..0e49773 100644 --- a/src/Collections/BaseWatchCollection.php +++ b/src/Collections/BaseWatchCollection.php @@ -8,8 +8,6 @@ abstract class BaseWatchCollection { /** * Return a collection of Eloquent Models to watch. - * - * @return Collection */ abstract public function getModels(): Collection; } diff --git a/src/Commands/LaravelModelWatchCommand.php b/src/Commands/LaravelModelWatchCommand.php index 29489e7..68ef660 100644 --- a/src/Commands/LaravelModelWatchCommand.php +++ b/src/Commands/LaravelModelWatchCommand.php @@ -73,6 +73,7 @@ public function getModels(): Collection if ($this->argument('id')) { $class = $this->qualifyModel($this->argument('modelOrCollection')); $this->collectionName = $class.':'.$this->argument('id'); + /** @var class-string $class */ return collect([ $class::findOrFail( @@ -93,8 +94,6 @@ public function getModels(): Collection /** * Qualify the given model class base name. * - * @param string $model - * @return string * * @see \Illuminate\Console\GeneratorCommand */ @@ -123,7 +122,6 @@ protected function qualifyModel(string $model): string * Qualify the given collection class base name. * * @param string $model - * @return string */ protected function qualifyCollection(string $collection): string { diff --git a/src/ModelWatcher.php b/src/ModelWatcher.php index 2fa05f4..e36236b 100644 --- a/src/ModelWatcher.php +++ b/src/ModelWatcher.php @@ -59,7 +59,6 @@ protected function getFields(): Collection * Values are all stored as text, and null means the value had not changed. * Any missing attributes are assumed to have not changed. * - * @param array $attributes * @return bool True if a new version was created, false if there were no changes to add */ protected function addVersion(array $attributes): bool