From c21bc27feb78efac6b190c842f20c59d79f87ea6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 18 Sep 2026 18:14:51 +0930 Subject: [PATCH] lint --- app/Http/Resources/StatusStateless.php | 3 ++- app/Models/AccountInterstitial.php | 2 +- app/Models/GroupMember.php | 2 +- app/Models/MediaTag.php | 2 +- app/Models/Notification.php | 2 +- app/Models/Profile.php | 2 +- app/Models/ProfileMigration.php | 4 ++-- app/Models/Status.php | 4 ++-- app/Models/StoryItem.php | 2 +- app/Models/User.php | 2 +- app/Models/UserOidcMapping.php | 2 +- 11 files changed, 14 insertions(+), 13 deletions(-) diff --git a/app/Http/Resources/StatusStateless.php b/app/Http/Resources/StatusStateless.php index 7cb28eda5..979a9a366 100644 --- a/app/Http/Resources/StatusStateless.php +++ b/app/Http/Resources/StatusStateless.php @@ -3,6 +3,7 @@ namespace App\Http\Resources; use App\Models\CustomEmoji; +use App\Models\Status; use App\Services\AccountService; use App\Services\HashidService; use App\Services\LikeService; @@ -17,7 +18,7 @@ use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; /** - * @mixin \App\Models\Status + * @mixin Status */ class StatusStateless extends JsonResource { diff --git a/app/Models/AccountInterstitial.php b/app/Models/AccountInterstitial.php index 4100f608c..afe460661 100644 --- a/app/Models/AccountInterstitial.php +++ b/app/Models/AccountInterstitial.php @@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** - * @property-read \App\Models\Status|null $status + * @property-read Status|null $status * @property-read int $count aggregate/computed alias * @property-read string $month_year aggregate/computed alias */ diff --git a/app/Models/GroupMember.php b/app/Models/GroupMember.php index 213a0b29d..fbd2a9085 100644 --- a/app/Models/GroupMember.php +++ b/app/Models/GroupMember.php @@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** - * @property-read \App\Models\Group|null $group + * @property-read Group|null $group */ class GroupMember extends Model { diff --git a/app/Models/MediaTag.php b/app/Models/MediaTag.php index 52b6b23ad..f8f45b1f1 100644 --- a/app/Models/MediaTag.php +++ b/app/Models/MediaTag.php @@ -5,7 +5,7 @@ namespace App\Models; use Illuminate\Database\Eloquent\Model; /** - * @property-read \App\Models\Status|null $status + * @property-read Status|null $status */ class MediaTag extends Model { diff --git a/app/Models/Notification.php b/app/Models/Notification.php index 0990741ce..2b17ea4b3 100644 --- a/app/Models/Notification.php +++ b/app/Models/Notification.php @@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Relations\MorphTo; use Illuminate\Database\Eloquent\SoftDeletes; /** - * @property-read \App\Models\Profile|null $actor + * @property-read Profile|null $actor */ class Notification extends Model { diff --git a/app/Models/Profile.php b/app/Models/Profile.php index cf19bb948..b158f2c4d 100644 --- a/app/Models/Profile.php +++ b/app/Models/Profile.php @@ -34,7 +34,7 @@ use Illuminate\Support\Facades\Storage; * @property Carbon|null $deleted_at * @property-read User|null $user * @property-read Avatar $avatar - * @property-read \Illuminate\Database\Eloquent\Collection $aliases + * @property-read \Illuminate\Database\Eloquent\Collection $aliases * @property-read bool $is_followed computed/dynamic attribute * @property-read int $profile_id joined-column alias (followers.profile_id) */ diff --git a/app/Models/ProfileMigration.php b/app/Models/ProfileMigration.php index 870a8782f..d1504109f 100644 --- a/app/Models/ProfileMigration.php +++ b/app/Models/ProfileMigration.php @@ -6,8 +6,8 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** - * @property-read \App\Models\Profile|null $profile - * @property-read \App\Models\Profile|null $target + * @property-read Profile|null $profile + * @property-read Profile|null $target */ class ProfileMigration extends Model { diff --git a/app/Models/Status.php b/app/Models/Status.php index 46bf4db49..11cca4e04 100644 --- a/app/Models/Status.php +++ b/app/Models/Status.php @@ -36,7 +36,7 @@ use Illuminate\Support\Str; * @property int $reply_count * @property bool $local * @property int|null $place_id - * @property-read \App\Models\Place|null $place + * @property-read Place|null $place * @property Carbon|null $created_at * @property Carbon|null $updated_at * @property Carbon|null $deleted_at @@ -44,7 +44,7 @@ use Illuminate\Support\Str; * @property-read Profile $profile * @property-read Collection $media * @property-read Collection $mentions - * @property-read \App\Models\Poll|null $poll + * @property-read Poll|null $poll * @property-read int $count aggregate/computed alias * @property-read int $pc aggregate/computed alias */ diff --git a/app/Models/StoryItem.php b/app/Models/StoryItem.php index 7e434ac37..7f8bbe404 100644 --- a/app/Models/StoryItem.php +++ b/app/Models/StoryItem.php @@ -15,7 +15,7 @@ use Pixelfed\Snowflake\HasSnowflakePrimary; * @property Carbon|null $created_at * @property Carbon|null $updated_at * @property string $type - * @property-read \App\Models\Story|null $story + * @property-read Story|null $story */ class StoryItem extends Model { diff --git a/app/Models/User.php b/app/Models/User.php index ce7fd5fd4..f8e510e9c 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -14,7 +14,7 @@ use Laravel\Passport\HasApiTokens; use NotificationChannels\WebPush\HasPushSubscriptions; /** - * @property-read \App\Models\UserSetting|null $settings + * @property-read UserSetting|null $settings */ class User extends Authenticatable implements OAuthenticatable { diff --git a/app/Models/UserOidcMapping.php b/app/Models/UserOidcMapping.php index ee52ed9d3..2d144935b 100644 --- a/app/Models/UserOidcMapping.php +++ b/app/Models/UserOidcMapping.php @@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** - * @property-read \App\Models\User|null $user + * @property-read User|null $user */ class UserOidcMapping extends Model {