From 8b18c0f8110a313d65f26bcb80823923c1ef9840 Mon Sep 17 00:00:00 2001 From: geni_jaho Date: Thu, 14 Nov 2024 23:38:14 +0100 Subject: [PATCH] Run Rector, PHPStan, and Pint --- app/Models/Item.php | 4 ++-- app/Models/Photo.php | 6 +++--- app/Models/PhotoItem.php | 6 +++--- app/Models/PhotoItemTag.php | 4 ++-- app/Models/Tag.php | 4 ++-- app/Models/TagShortcut.php | 9 +++++---- app/Models/TagShortcutItem.php | 8 ++++---- app/Models/TagShortcutItemTag.php | 4 ++-- app/Models/TeamInvitation.php | 2 +- app/Models/User.php | 4 ++-- 10 files changed, 26 insertions(+), 25 deletions(-) diff --git a/app/Models/Item.php b/app/Models/Item.php index c992faa..9e67115 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -20,7 +20,7 @@ class Item extends Model use HasFactory; /** - * @return BelongsToMany + * @return BelongsToMany */ public function photos(): BelongsToMany { @@ -31,7 +31,7 @@ public function photos(): BelongsToMany } /** - * @return HasMany + * @return HasMany */ public function photoItems(): HasMany { diff --git a/app/Models/Photo.php b/app/Models/Photo.php index e6e49ec..075b57e 100644 --- a/app/Models/Photo.php +++ b/app/Models/Photo.php @@ -35,7 +35,7 @@ protected function casts(): array } /** - * @return BelongsTo + * @return BelongsTo */ public function user(): BelongsTo { @@ -43,7 +43,7 @@ public function user(): BelongsTo } /** - * @return BelongsToMany + * @return BelongsToMany */ public function items(): BelongsToMany { @@ -54,7 +54,7 @@ public function items(): BelongsToMany } /** - * @return HasMany + * @return HasMany */ public function photoItems(): HasMany { diff --git a/app/Models/PhotoItem.php b/app/Models/PhotoItem.php index 884e43e..cc4a35b 100644 --- a/app/Models/PhotoItem.php +++ b/app/Models/PhotoItem.php @@ -35,7 +35,7 @@ protected function casts(): array } /** - * @return BelongsTo + * @return BelongsTo */ public function item(): BelongsTo { @@ -43,7 +43,7 @@ public function item(): BelongsTo } /** - * @return BelongsTo + * @return BelongsTo */ public function photo(): BelongsTo { @@ -51,7 +51,7 @@ public function photo(): BelongsTo } /** - * @return BelongsToMany + * @return BelongsToMany */ public function tags(): BelongsToMany { diff --git a/app/Models/PhotoItemTag.php b/app/Models/PhotoItemTag.php index 09dd93a..82b37fd 100644 --- a/app/Models/PhotoItemTag.php +++ b/app/Models/PhotoItemTag.php @@ -17,7 +17,7 @@ class PhotoItemTag extends Pivot public $incrementing = true; /** - * @return BelongsTo + * @return BelongsTo */ public function photoItem(): BelongsTo { @@ -25,7 +25,7 @@ public function photoItem(): BelongsTo } /** - * @return BelongsTo + * @return BelongsTo */ public function tag(): BelongsTo { diff --git a/app/Models/Tag.php b/app/Models/Tag.php index 29196a2..2c8bfc3 100644 --- a/app/Models/Tag.php +++ b/app/Models/Tag.php @@ -19,7 +19,7 @@ class Tag extends Model protected $guarded = []; /** - * @return BelongsTo + * @return BelongsTo */ public function type(): BelongsTo { @@ -27,7 +27,7 @@ public function type(): BelongsTo } /** - * @return HasMany + * @return HasMany */ public function photoItemTags(): HasMany { diff --git a/app/Models/TagShortcut.php b/app/Models/TagShortcut.php index 8535630..2cfa20f 100644 --- a/app/Models/TagShortcut.php +++ b/app/Models/TagShortcut.php @@ -2,6 +2,7 @@ namespace App\Models; +use Closure; use Database\Factories\TagShortcutFactory; use Illuminate\Contracts\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; @@ -21,7 +22,7 @@ class TagShortcut extends Model use HasFactory; /** - * @return array + * @return array */ public static function commonEagerLoads(): array { @@ -33,7 +34,7 @@ public static function commonEagerLoads(): array } /** - * @return BelongsTo + * @return BelongsTo */ public function user(): BelongsTo { @@ -41,7 +42,7 @@ public function user(): BelongsTo } /** - * @return BelongsToMany + * @return BelongsToMany */ public function items(): BelongsToMany { @@ -52,7 +53,7 @@ public function items(): BelongsToMany } /** - * @return HasMany + * @return HasMany */ public function tagShortcutItems(): HasMany { diff --git a/app/Models/TagShortcutItem.php b/app/Models/TagShortcutItem.php index 5c75603..84c8399 100644 --- a/app/Models/TagShortcutItem.php +++ b/app/Models/TagShortcutItem.php @@ -38,7 +38,7 @@ protected function casts(): array } /** - * @return BelongsTo + * @return BelongsTo */ public function tagShortcut(): BelongsTo { @@ -46,7 +46,7 @@ public function tagShortcut(): BelongsTo } /** - * @return BelongsTo + * @return BelongsTo */ public function item(): BelongsTo { @@ -54,7 +54,7 @@ public function item(): BelongsTo } /** - * @return BelongsToMany + * @return BelongsToMany */ public function tags(): BelongsToMany { @@ -72,7 +72,7 @@ public function tags(): BelongsToMany } /** - * @return HasMany + * @return HasMany */ public function tagShortcutItemTags(): HasMany { diff --git a/app/Models/TagShortcutItemTag.php b/app/Models/TagShortcutItemTag.php index ab31862..6724783 100644 --- a/app/Models/TagShortcutItemTag.php +++ b/app/Models/TagShortcutItemTag.php @@ -17,7 +17,7 @@ class TagShortcutItemTag extends Pivot public $incrementing = true; /** - * @return BelongsTo + * @return BelongsTo */ public function tagShortcutItem(): BelongsTo { @@ -25,7 +25,7 @@ public function tagShortcutItem(): BelongsTo } /** - * @return BelongsTo + * @return BelongsTo */ public function tag(): BelongsTo { diff --git a/app/Models/TeamInvitation.php b/app/Models/TeamInvitation.php index 2d0452f..37ff67d 100644 --- a/app/Models/TeamInvitation.php +++ b/app/Models/TeamInvitation.php @@ -10,7 +10,7 @@ class TeamInvitation extends JetstreamTeamInvitation /** * Get the team that the invitation belongs to. * - * @return BelongsTo + * @return BelongsTo */ public function team(): BelongsTo { diff --git a/app/Models/User.php b/app/Models/User.php index 969cb7d..0d513a3 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -132,7 +132,7 @@ protected function defaultProfilePhotoUrl(): string } /** - * @return HasMany + * @return HasMany */ public function photos(): HasMany { @@ -140,7 +140,7 @@ public function photos(): HasMany } /** - * @return HasMany + * @return HasMany */ public function tagShortcuts(): HasMany {