Skip to content

Commit

Permalink
Update model docblocks (Laravel IDE Helper CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roardom authored and github-actions[bot] committed May 20, 2024
1 parent b838317 commit 42a95a2
Show file tree
Hide file tree
Showing 102 changed files with 1,162 additions and 150 deletions.
8 changes: 7 additions & 1 deletion app/Models/Announce.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@
* @property int $downloaded
* @property int $left
* @property int $corrupt
* @property mixed $peer_id
* @property string $peer_id
* @property int $port
* @property int $numwant
* @property string $created_at
* @property string $event
* @property string $key
* @property-read User|null $requests
* @property-read Torrent|null $torrents
* @method static \Illuminate\Database\Eloquent\Builder|Announce newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Announce newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Announce query()
* @mixin \Eloquent
*/
class Announce extends Model
{
Expand Down
5 changes: 5 additions & 0 deletions app/Models/Apikey.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
* @property string $content
* @property string|null $created_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property-read User $user
* @method static \Illuminate\Database\Eloquent\Builder|Apikey newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Apikey newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Apikey query()
* @mixin \Eloquent
*/
class Apikey extends Model
{
Expand Down
9 changes: 9 additions & 0 deletions app/Models/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
* @property int|null $accepted_by
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ApplicationImageProof> $imageProofs
* @property-read User|null $moderated
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ApplicationUrlProof> $urlProofs
* @property-read User|null $user
* @method static \Database\Factories\ApplicationFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Application newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Application newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Application query()
* @mixin \Eloquent
*/
class Application extends Model
{
Expand Down
6 changes: 6 additions & 0 deletions app/Models/ApplicationImageProof.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
* @property string $image
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read Application|null $application
* @method static \Database\Factories\ApplicationImageProofFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationImageProof newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationImageProof newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationImageProof query()
* @mixin \Eloquent
*/
class ApplicationImageProof extends Model
{
Expand Down
6 changes: 6 additions & 0 deletions app/Models/ApplicationUrlProof.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
* @property string $url
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read Application|null $application
* @method static \Database\Factories\ApplicationUrlProofFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationUrlProof newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationUrlProof newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ApplicationUrlProof query()
* @mixin \Eloquent
*/
class ApplicationUrlProof extends Model
{
Expand Down
7 changes: 7 additions & 0 deletions app/Models/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property int $user_id
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Comment> $comments
* @property-read User $user
* @method static \Database\Factories\ArticleFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Article newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Article newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Article query()
* @mixin \Eloquent
*/
class Article extends Model
{
Expand Down
8 changes: 7 additions & 1 deletion app/Models/Audit.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@
* @property string $model_name
* @property int $model_entry_id
* @property string $action
* @property mixed $record
* @property string $record
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read User|null $user
* @method static \Database\Factories\AuditFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Audit newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Audit newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Audit query()
* @mixin \Eloquent
*/
class Audit extends Model
{
Expand Down
19 changes: 19 additions & 0 deletions app/Models/AutomaticTorrentFreeleech.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,25 @@
use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Model;

/**
* @property int $id
* @property int $position
* @property string|null $name_regex
* @property int|null $size
* @property int|null $category_id
* @property int|null $type_id
* @property int|null $resolution_id
* @property int $freeleech_percentage
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read Category|null $category
* @property-read Resolution|null $resolution
* @property-read Type|null $type
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticTorrentFreeleech newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticTorrentFreeleech newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticTorrentFreeleech query()
* @mixin \Eloquent
*/
class AutomaticTorrentFreeleech extends Model
{
use Auditable;
Expand Down
7 changes: 7 additions & 0 deletions app/Models/Ban.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
* @property string|null $removed_at
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read User $banneduser
* @property-read User|null $staffuser
* @method static \Database\Factories\BanFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Ban newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Ban newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Ban query()
* @mixin \Eloquent
*/
class Ban extends Model
{
Expand Down
17 changes: 11 additions & 6 deletions app/Models/BlacklistClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@
/**
* App\Models\BlacklistClient.
*
* @property int $id
* @property string $name
* @property string|null $reason
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string $peer_id_prefix
* @property int $id
* @property string $name
* @property string|null $reason
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string $peer_id_prefix
* @method static \Database\Factories\BlacklistClientFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|BlacklistClient newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BlacklistClient newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BlacklistClient query()
* @mixin \Eloquent
*/
class BlacklistClient extends Model
{
Expand Down
6 changes: 6 additions & 0 deletions app/Models/BlockedIp.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
* @property string|null $expires_at
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read User $user
* @method static \Database\Factories\BlockedIpFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|BlockedIp newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BlockedIp newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BlockedIp query()
* @mixin \Eloquent
*/
class BlockedIp extends Model
{
Expand Down
21 changes: 13 additions & 8 deletions app/Models/BonExchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@
/**
* App\Models\BonExchange.
*
* @property int $id
* @property string|null $description
* @property int $value
* @property int $cost
* @property bool $upload
* @property bool $download
* @property bool $personal_freeleech
* @property bool $invite
* @property int $id
* @property string|null $description
* @property int $value
* @property int $cost
* @property bool $upload
* @property bool $download
* @property bool $personal_freeleech
* @property bool $invite
* @method static \Database\Factories\BonExchangeFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|BonExchange newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BonExchange newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BonExchange query()
* @mixin \Eloquent
*/
class BonExchange extends Model
{
Expand Down
13 changes: 9 additions & 4 deletions app/Models/BonTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@
* @property int $id
* @property int $bon_exchange_id
* @property string $name
* @property float $cost
* @property string $cost
* @property int|null $sender_id
* @property int|null $receiver_id
* @property int|null $torrent_id
* @property int|null $post_id
* @property string $comment
* @property string $created_at
* @property-read BonExchange|null $exchange
* @property-read User|null $receiver
* @property-read User|null $sender
* @method static \Database\Factories\BonTransactionsFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|BonTransactions newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BonTransactions newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BonTransactions query()
* @mixin \Eloquent
*/
class BonTransactions extends Model
{
Expand Down
7 changes: 7 additions & 0 deletions app/Models/Bookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
* @property int $torrent_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read Torrent $torrent
* @property-read User $user
* @method static \Database\Factories\BookmarkFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Bookmark newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Bookmark newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Bookmark query()
* @mixin \Eloquent
*/
class Bookmark extends Model
{
Expand Down
47 changes: 26 additions & 21 deletions app/Models/Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,32 @@
/**
* App\Models\Bot.
*
* @property int $id
* @property int $position
* @property string $name
* @property string $command
* @property string|null $color
* @property string|null $icon
* @property string|null $emoji
* @property string|null $info
* @property string|null $about
* @property string|null $help
* @property int $active
* @property int $is_protected
* @property int $is_nerdbot
* @property int $is_systembot
* @property int $uploaded
* @property int $downloaded
* @property int $fl_tokens
* @property float $seedbonus
* @property int $invites
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property int $id
* @property int $position
* @property string $name
* @property string $command
* @property string|null $color
* @property string|null $icon
* @property string|null $emoji
* @property string|null $info
* @property string|null $about
* @property string|null $help
* @property int $active
* @property int $is_protected
* @property int $is_nerdbot
* @property int $is_systembot
* @property int $uploaded
* @property int $downloaded
* @property int $fl_tokens
* @property string $seedbonus
* @property int $invites
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Database\Factories\BotFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Bot newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Bot newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Bot query()
* @mixin \Eloquent
*/
class Bot extends Model
{
Expand Down
7 changes: 7 additions & 0 deletions app/Models/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
* @property bool $tv_meta
* @property bool $movie_meta
* @property int $num_torrent
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\TorrentRequest> $requests
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Torrent> $torrents
* @method static \Database\Factories\CategoryFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Category newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Category newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Category query()
* @mixin \Eloquent
*/
class Category extends Model
{
Expand Down
6 changes: 6 additions & 0 deletions app/Models/ChatStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
* @property string|null $icon
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\User> $users
* @method static \Database\Factories\ChatStatusFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|ChatStatus newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ChatStatus newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ChatStatus query()
* @mixin \Eloquent
*/
class ChatStatus extends Model
{
Expand Down
8 changes: 8 additions & 0 deletions app/Models/Chatroom.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Message> $messages
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\User> $users
* @method static \Database\Factories\ChatroomFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Chatroom newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Chatroom newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Chatroom query()
* @mixin \Eloquent
*/
class Chatroom extends Model
{
Expand Down
7 changes: 7 additions & 0 deletions app/Models/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
* @property string|null $backdrop
* @property string|null $created_at
* @property string|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Comment> $comments
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Movie> $movie
* @method static \Database\Factories\CollectionFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Collection newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Collection newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Collection query()
* @mixin \Eloquent
*/
class Collection extends Model
{
Expand Down
10 changes: 10 additions & 0 deletions app/Models/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Eloquent;

/**
* App\Models\Comment.
Expand All @@ -33,6 +34,15 @@
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string $commentable_type
* @property int $commentable_id
* @property-read \Illuminate\Database\Eloquent\Collection<int, Comment> $children
* @property-read Model|Eloquent $commentable
* @property-read User|null $user
* @method static \Database\Factories\CommentFactory factory($count = null, $state = [])
* @method static Builder|Comment newModelQuery()
* @method static Builder|Comment newQuery()
* @method static Builder|Comment parent()
* @method static Builder|Comment query()
* @mixin \Eloquent
*/
class Comment extends Model
{
Expand Down
7 changes: 7 additions & 0 deletions app/Models/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
* @property string|null $homepage
* @property string|null $logo
* @property string|null $origin_country
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Movie> $movie
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Tv> $tv
* @method static \Database\Factories\CompanyFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder|Company newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Company newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Company query()
* @mixin \Eloquent
*/
class Company extends Model
{
Expand Down
Loading

0 comments on commit 42a95a2

Please sign in to comment.