Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Patabugen authored and github-actions[bot] committed Sep 14, 2023
1 parent 7771a5d commit e47bc6a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions src/Collections/BaseWatchCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ abstract class BaseWatchCollection
{
/**
* Return a collection of Eloquent Models to watch.
*
* @return Collection
*/
abstract public function getModels(): Collection;
}
4 changes: 1 addition & 3 deletions src/Commands/LaravelModelWatchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<Model> $class */
return collect([
$class::findOrFail(
Expand All @@ -93,8 +94,6 @@ public function getModels(): Collection
/**
* Qualify the given model class base name.
*
* @param string $model
* @return string
*
* @see \Illuminate\Console\GeneratorCommand
*/
Expand Down Expand Up @@ -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

Check failure on line 126 in src/Commands/LaravelModelWatchCommand.php

View workflow job for this annotation

GitHub Actions / phpstan

PHPDoc tag @param references unknown parameter: $model
{
Expand Down
1 change: 0 additions & 1 deletion src/ModelWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e47bc6a

Please sign in to comment.