diff --git a/app/Actions/ActionResult.php b/app/Actions/ActionResult.php index dac98ebc1..8809fc842 100644 --- a/app/Actions/ActionResult.php +++ b/app/Actions/ActionResult.php @@ -19,9 +19,7 @@ class ActionResult * @param ActionStatus $status * @param string|null $message */ - public function __construct(protected readonly ActionStatus $status, protected readonly ?string $message = null) - { - } + public function __construct(protected readonly ActionStatus $status, protected readonly ?string $message = null) {} /** * Get the action result status. @@ -50,7 +48,7 @@ class ActionResult */ public function hasFailed(): bool { - return ActionStatus::FAILED === $this->status; + return $this->status === ActionStatus::FAILED; } /** diff --git a/app/Actions/Discord/DiscordMessageAction.php b/app/Actions/Discord/DiscordMessageAction.php index 8d35bcd47..314d19cfa 100644 --- a/app/Actions/Discord/DiscordMessageAction.php +++ b/app/Actions/Discord/DiscordMessageAction.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace App\Actions\Discord; use App\Discord\DiscordMessage; +use Illuminate\Http\Client\PendingRequest; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Http; @@ -14,6 +15,17 @@ use Illuminate\Support\Facades\Http; */ class DiscordMessageAction { + /** + * Get the HTTP client for Discord API. + * + * @return PendingRequest + */ + public static function getHttp(): PendingRequest + { + return Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) + ->baseUrl(Config::get('services.discord.api_url')); + } + /** * Make the Discord message. * @@ -48,8 +60,8 @@ class DiscordMessageAction */ public function get(string $url): DiscordMessage { - $message = Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) - ->get(Config::get('services.discord.api_url') . '/message', [ + $message = static::getHttp() + ->get('/message', [ 'url' => $url, ]) ->throw() @@ -66,8 +78,8 @@ class DiscordMessageAction */ public function edit(DiscordMessage $message): void { - Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) - ->put(Config::get('services.discord.api_url') . '/message', [ + static::getHttp() + ->put('/message', [ $message->toArray(), ]) ->throw(); @@ -81,8 +93,8 @@ class DiscordMessageAction */ public function send(DiscordMessage $message): void { - Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) - ->post(Config::get('services.discord.api_url') . '/message', [ + static::getHttp() + ->post('/message', [ 'message' => $message->toArray(), ]) ->throw(); diff --git a/app/Actions/Discord/DiscordThreadAction.php b/app/Actions/Discord/DiscordThreadAction.php index 4173f9c28..662e2e11d 100644 --- a/app/Actions/Discord/DiscordThreadAction.php +++ b/app/Actions/Discord/DiscordThreadAction.php @@ -8,8 +8,6 @@ use App\Models\Discord\DiscordThread; use App\Models\Wiki\Anime; use Exception; use Illuminate\Support\Arr; -use Illuminate\Support\Facades\Config; -use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Log; /** @@ -40,9 +38,9 @@ class DiscordThreadAction Arr::set($animeArray, "images.$key.facet", $anime->images->get($key)->facet->localize()); } - $response = Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) + $response = DiscordMessageAction::getHttp() ->acceptJson() - ->post(Config::get('services.discord.api_url') . '/thread', $animeArray) + ->post('/thread', $animeArray) ->throw() ->json(); @@ -55,7 +53,6 @@ class DiscordThreadAction } return null; - } catch (Exception $e) { Log::error($e->getMessage()); @@ -71,9 +68,9 @@ class DiscordThreadAction */ public function get(string $id): array { - return Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) + return DiscordMessageAction::getHttp() ->acceptJson() - ->get(Config::get('services.discord.api_url') . '/thread', ['id' => $id]) + ->get('/thread', ['id' => $id]) ->throw() ->json(); } diff --git a/app/Actions/Discord/DiscordVideoNotificationAction.php b/app/Actions/Discord/DiscordVideoNotificationAction.php index 17ad89611..48e648e86 100644 --- a/app/Actions/Discord/DiscordVideoNotificationAction.php +++ b/app/Actions/Discord/DiscordVideoNotificationAction.php @@ -8,8 +8,6 @@ use App\Enums\Actions\Models\Wiki\Video\DiscordNotificationType; use App\Models\Wiki\Video; use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Arr; -use Illuminate\Support\Facades\Config; -use Illuminate\Support\Facades\Http; /** * Class DiscordVideoNotificationAction. @@ -42,7 +40,6 @@ class DiscordVideoNotificationAction $anime = $theme->anime; if ($anime->discordthread === null) { - $threadAction = new DiscordThreadAction(); $threadAction->handle($anime, ['name' => $anime->getName()]); @@ -62,8 +59,8 @@ class DiscordVideoNotificationAction $newVideos[] = $videoArray; } - Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) - ->post(Config::get('services.discord.api_url') . '/notification', [ + DiscordMessageAction::getHttp() + ->post('/notification', [ 'type' => $type, 'videos' => $newVideos, ]) diff --git a/app/Actions/Http/DownloadAction.php b/app/Actions/Http/DownloadAction.php index 0bed5faa9..5e145bd3c 100644 --- a/app/Actions/Http/DownloadAction.php +++ b/app/Actions/Http/DownloadAction.php @@ -22,9 +22,7 @@ abstract class DownloadAction implements InteractsWithDisk * * @param TModel $model */ - public function __construct(protected readonly BaseModel $model) - { - } + public function __construct(protected readonly BaseModel $model) {} /** * Download the resource. diff --git a/app/Actions/Http/NginxStreamAction.php b/app/Actions/Http/NginxStreamAction.php index ba2bca860..e42ec2656 100644 --- a/app/Actions/Http/NginxStreamAction.php +++ b/app/Actions/Http/NginxStreamAction.php @@ -15,7 +15,7 @@ abstract class NginxStreamAction extends StreamAction /** * Stream the resource. * - * @param string $disposition + * @param string $disposition * @return Response */ public function stream(string $disposition = 'inline'): Response diff --git a/app/Actions/Http/ResponseStreamAction.php b/app/Actions/Http/ResponseStreamAction.php index b19cf30d7..8a0d17af6 100644 --- a/app/Actions/Http/ResponseStreamAction.php +++ b/app/Actions/Http/ResponseStreamAction.php @@ -15,7 +15,7 @@ abstract class ResponseStreamAction extends StreamAction /** * Stream the resource. * - * @param string $disposition + * @param string $disposition * @return StreamedResponse */ public function stream(string $disposition = 'inline'): StreamedResponse diff --git a/app/Actions/Http/StreamAction.php b/app/Actions/Http/StreamAction.php index c24af0ecf..b3e83e06c 100644 --- a/app/Actions/Http/StreamAction.php +++ b/app/Actions/Http/StreamAction.php @@ -18,14 +18,12 @@ abstract class StreamAction implements InteractsWithDisk * * @param Streamable $streamable */ - public function __construct(protected readonly Streamable $streamable) - { - } + public function __construct(protected readonly Streamable $streamable) {} /** * Stream the resource. * - * @param string $disposition + * @param string $disposition * @return Response */ abstract public function stream(string $disposition = 'inline'): Response; diff --git a/app/Actions/Models/Aggregate/SyncLikeAggregatesAction.php b/app/Actions/Models/Aggregate/SyncLikeAggregatesAction.php index b35efd2f5..d70a44fc4 100644 --- a/app/Actions/Models/Aggregate/SyncLikeAggregatesAction.php +++ b/app/Actions/Models/Aggregate/SyncLikeAggregatesAction.php @@ -24,14 +24,13 @@ class SyncLikeAggregatesAction public function handle(): ActionResult { try { - DB::statement(" + DB::statement(' INSERT INTO like_aggregates (likeable_id, likeable_type, value) SELECT likeable_id, likeable_type, COUNT(*) as value FROM likes GROUP BY likeable_type, likeable_id ON DUPLICATE KEY UPDATE value = VALUES(value); - "); - + '); } catch (Exception $e) { return new ActionResult( ActionStatus::FAILED, diff --git a/app/Actions/Models/Aggregate/SyncViewAggregatesAction.php b/app/Actions/Models/Aggregate/SyncViewAggregatesAction.php index 2831e8b03..e8242bc91 100644 --- a/app/Actions/Models/Aggregate/SyncViewAggregatesAction.php +++ b/app/Actions/Models/Aggregate/SyncViewAggregatesAction.php @@ -24,14 +24,13 @@ class SyncViewAggregatesAction public function handle(): ActionResult { try { - DB::statement(" + DB::statement(' INSERT INTO view_aggregates (viewable_id, viewable_type, value) SELECT viewable_id, viewable_type, COUNT(*) as value FROM views GROUP BY viewable_type, viewable_id ON DUPLICATE KEY UPDATE value = VALUES(value); - "); - + '); } catch (Exception $e) { return new ActionResult( ActionStatus::FAILED, diff --git a/app/Actions/Models/BackfillAction.php b/app/Actions/Models/BackfillAction.php index bc7292668..e7fd22099 100644 --- a/app/Actions/Models/BackfillAction.php +++ b/app/Actions/Models/BackfillAction.php @@ -21,9 +21,7 @@ abstract class BackfillAction * * @param TModel $model */ - public function __construct(protected BaseModel $model) - { - } + public function __construct(protected BaseModel $model) {} /** * Handle action. diff --git a/app/Actions/Models/BackfillWikiAction.php b/app/Actions/Models/BackfillWikiAction.php index 510d15024..55c349acf 100644 --- a/app/Actions/Models/BackfillWikiAction.php +++ b/app/Actions/Models/BackfillWikiAction.php @@ -35,9 +35,7 @@ abstract class BackfillWikiAction * @param BaseModel $model * @param array $toBackfill */ - public function __construct(protected BaseModel $model, protected array $toBackfill) - { - } + public function __construct(protected BaseModel $model, protected array $toBackfill) {} /** * Handle the action. @@ -66,7 +64,7 @@ abstract class BackfillWikiAction foreach ($api->getResources() as $site => $url) { $site = ResourceSite::from($site); - if (!in_array($site, $toBackfill)) { + if (! in_array($site, $toBackfill)) { Log::info("Resource {$site->localize()} should not be backfilled for {$this->label()} {$this->getModel()->getName()}"); continue; } @@ -95,7 +93,7 @@ abstract class BackfillWikiAction foreach ($api->getImages() as $facet => $url) { $facet = ImageFacet::from($facet); - if (!in_array($facet, $toBackfill)) { + if (! in_array($facet, $toBackfill)) { Log::info("Skipping {$facet->localize()} for {$this->label()} {$this->getModel()->getName()}"); continue; } @@ -115,7 +113,7 @@ abstract class BackfillWikiAction * Remove element already backfilled. * * @param mixed $enum - * @param string $scope + * @param string $scope * @return void */ protected function backfilled(mixed $enum, string $scope): void diff --git a/app/Actions/Models/List/ExternalProfile/ExternalEntry/BaseExternalEntryAction.php b/app/Actions/Models/List/ExternalProfile/ExternalEntry/BaseExternalEntryAction.php index f576004bf..1680b6529 100644 --- a/app/Actions/Models/List/ExternalProfile/ExternalEntry/BaseExternalEntryAction.php +++ b/app/Actions/Models/List/ExternalProfile/ExternalEntry/BaseExternalEntryAction.php @@ -21,9 +21,7 @@ abstract class BaseExternalEntryAction * * @param ExternalProfile|array $profile */ - public function __construct(protected ExternalProfile|array $profile) - { - } + public function __construct(protected ExternalProfile|array $profile) {} /** * Get the username of the profile. diff --git a/app/Actions/Models/List/ExternalProfile/ExternalEntry/BaseExternalEntryTokenAction.php b/app/Actions/Models/List/ExternalProfile/ExternalEntry/BaseExternalEntryTokenAction.php index dcaaad67c..73fe3967b 100644 --- a/app/Actions/Models/List/ExternalProfile/ExternalEntry/BaseExternalEntryTokenAction.php +++ b/app/Actions/Models/List/ExternalProfile/ExternalEntry/BaseExternalEntryTokenAction.php @@ -8,7 +8,7 @@ use App\Models\List\External\ExternalToken; use Illuminate\Support\Facades\Crypt; /** - * Class BaseExternalEntryTokenAction + * Class BaseExternalEntryTokenAction. * * This action will create the entries through the authentication method. */ @@ -17,14 +17,14 @@ abstract class BaseExternalEntryTokenAction /** * The response of the external API. * - * @var array|null $response + * @var array|null */ protected ?array $response = null; /** * The id of the external user. * - * @var int|null $userId + * @var int|null */ protected ?int $userId = null; @@ -33,9 +33,7 @@ abstract class BaseExternalEntryTokenAction * * @param ExternalToken $token */ - public function __construct(protected ExternalToken $token) - { - } + public function __construct(protected ExternalToken $token) {} /** * Get the id of the external user. diff --git a/app/Actions/Models/List/ExternalProfile/ExternalEntry/Token/MalExternalEntryTokenAction.php b/app/Actions/Models/List/ExternalProfile/ExternalEntry/Token/MalExternalEntryTokenAction.php index 80b2487d9..295be02d3 100644 --- a/app/Actions/Models/List/ExternalProfile/ExternalEntry/Token/MalExternalEntryTokenAction.php +++ b/app/Actions/Models/List/ExternalProfile/ExternalEntry/Token/MalExternalEntryTokenAction.php @@ -21,7 +21,7 @@ class MalExternalEntryTokenAction extends BaseExternalEntryTokenAction /** * The response of the user endpoint in external API. * - * @var array|null $userResponse + * @var array|null */ protected ?array $userResponse = null; diff --git a/app/Actions/Models/List/ExternalProfile/ExternalEntry/Username/AnilistExternalEntryAction.php b/app/Actions/Models/List/ExternalProfile/ExternalEntry/Username/AnilistExternalEntryAction.php index ca036ebbb..30ae4fca4 100644 --- a/app/Actions/Models/List/ExternalProfile/ExternalEntry/Username/AnilistExternalEntryAction.php +++ b/app/Actions/Models/List/ExternalProfile/ExternalEntry/Username/AnilistExternalEntryAction.php @@ -112,7 +112,6 @@ class AnilistExternalEntryAction extends BaseExternalEntryAction ->json(); return $this; - } catch (RequestException $e) { Log::error($e->getMessage()); diff --git a/app/Actions/Models/List/ExternalProfile/ExternalToken/Site/MalExternalTokenAction.php b/app/Actions/Models/List/ExternalProfile/ExternalToken/Site/MalExternalTokenAction.php index 8749e9713..7c81fece2 100644 --- a/app/Actions/Models/List/ExternalProfile/ExternalToken/Site/MalExternalTokenAction.php +++ b/app/Actions/Models/List/ExternalProfile/ExternalToken/Site/MalExternalTokenAction.php @@ -54,7 +54,6 @@ class MalExternalTokenAction extends BaseExternalTokenAction if ($token === null) { throw new Error('Failed to get token'); } - } catch (Exception $e) { Log::error($e->getMessage()); diff --git a/app/Actions/Models/List/ExternalProfile/StoreExternalProfileTokenAction.php b/app/Actions/Models/List/ExternalProfile/StoreExternalProfileTokenAction.php index 718d15682..3130adcc2 100644 --- a/app/Actions/Models/List/ExternalProfile/StoreExternalProfileTokenAction.php +++ b/app/Actions/Models/List/ExternalProfile/StoreExternalProfileTokenAction.php @@ -46,7 +46,6 @@ class StoreExternalProfileTokenAction $profile = $this->firstForUserIdOrCreate($userId, $site, $action, $parameters); return $profile; - } catch (Exception $e) { Log::error($e->getMessage()); diff --git a/app/Actions/Models/List/ExternalProfile/StoreExternalProfileUsernameAction.php b/app/Actions/Models/List/ExternalProfile/StoreExternalProfileUsernameAction.php index cac535362..c5b0f7c8e 100644 --- a/app/Actions/Models/List/ExternalProfile/StoreExternalProfileUsernameAction.php +++ b/app/Actions/Models/List/ExternalProfile/StoreExternalProfileUsernameAction.php @@ -53,6 +53,7 @@ class StoreExternalProfileUsernameAction } DB::rollBack(); + return $findProfile; } @@ -96,4 +97,4 @@ class StoreExternalProfileUsernameAction default => throw new RuntimeException("External entry action not configured for site {$site->localize()}"), }; } -} \ No newline at end of file +} diff --git a/app/Actions/Models/List/Playlist/FixPlaylistAction.php b/app/Actions/Models/List/Playlist/FixPlaylistAction.php index 1eb548c06..f1c8a278b 100644 --- a/app/Actions/Models/List/Playlist/FixPlaylistAction.php +++ b/app/Actions/Models/List/Playlist/FixPlaylistAction.php @@ -7,8 +7,8 @@ namespace App\Actions\Models\List\Playlist; use App\Models\List\Playlist; use App\Models\List\Playlist\PlaylistTrack; use Illuminate\Console\Command; -use Illuminate\Support\Facades\DB; use Illuminate\Support\Collection; +use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; /** @@ -35,7 +35,7 @@ class FixPlaylistAction ->keyBy(PlaylistTrack::ATTRIBUTE_ID); // Find the playlist and get the first_id - $this->sendMessage("Fetching playlist details...", $context, 'info'); + $this->sendMessage('Fetching playlist details...', $context, 'info'); $first_id = $playlist->first_id; @@ -44,7 +44,7 @@ class FixPlaylistAction $visitedTracks = []; // Start at the first_id and follow the next_id chain - $this->sendMessage("Reconstructing the playlist order...", $context, 'info'); + $this->sendMessage('Reconstructing the playlist order...', $context, 'info'); $current_id = $first_id; @@ -66,11 +66,11 @@ class FixPlaylistAction // Check if we have traversed all tracks; if not, some tracks are broken if (count($orderedTracks) != count($tracks)) { - $this->sendMessage("Detected broken tracks, attempting to add them to the end of the list...", $context, 'warn'); + $this->sendMessage('Detected broken tracks, attempting to add them to the end of the list...', $context, 'warn'); // Find all tracks that were not visited (potentially broken) $remainingTracks = $tracks->filter(function ($track) use ($visitedTracks) { - return !isset($visitedTracks[$track->track_id]); + return ! isset($visitedTracks[$track->track_id]); }); // Add remaining tracks to the end, preserving the existing order as much as possible @@ -80,7 +80,7 @@ class FixPlaylistAction } // Update the previous_id and next_id for all tracks in the correct order - $this->sendMessage("Updating track links (previous_id and next_id)...", $context, 'info'); + $this->sendMessage('Updating track links (previous_id and next_id)...', $context, 'info'); DB::transaction(function () use ($orderedTracks, $tracks, $playlist, $context) { $previous_id = null; @@ -104,10 +104,11 @@ class FixPlaylistAction $playlist->last_id = $orderedTracks[count($orderedTracks) - 1]; $playlist->save(); - $this->sendMessage("Playlist first_id and last_id updated successfully.", $context, 'info'); + $this->sendMessage('Playlist first_id and last_id updated successfully.', $context, 'info'); }); - $this->sendMessage("Playlist fixed successfully.", $context, 'info'); + $this->sendMessage('Playlist fixed successfully.', $context, 'info'); + return 1; } diff --git a/app/Actions/Models/Wiki/Anime/ExternalApi/AnilistAnimeExternalApiAction.php b/app/Actions/Models/Wiki/Anime/ExternalApi/AnilistAnimeExternalApiAction.php index 9c5e495ac..53bb15cbf 100644 --- a/app/Actions/Models/Wiki/Anime/ExternalApi/AnilistAnimeExternalApiAction.php +++ b/app/Actions/Models/Wiki/Anime/ExternalApi/AnilistAnimeExternalApiAction.php @@ -100,7 +100,9 @@ class AnilistAnimeExternalApiAction extends ExternalApiAction implements Backfil foreach ($this->getResourcesMapping() as $site => $key) { if ($siteAnilist === $key) { - if (in_array($siteAnilist, ['Official Site', 'Twitter']) && !in_array($language, ['Japanese', null])) continue; + if (in_array($siteAnilist, ['Official Site', 'Twitter']) && ! in_array($language, ['Japanese', null])) { + continue; + } $resources[$site] = $url; } diff --git a/app/Actions/Models/Wiki/AttachImageAction.php b/app/Actions/Models/Wiki/AttachImageAction.php index ec274ca8b..c80462a2e 100644 --- a/app/Actions/Models/Wiki/AttachImageAction.php +++ b/app/Actions/Models/Wiki/AttachImageAction.php @@ -30,7 +30,9 @@ class AttachImageAction foreach ($facets as $facet) { $image = Arr::get($fields, $facet->name); - if (empty($image)) continue; + if (empty($image)) { + continue; + } $this->createImageFromFile($image, $facet, $model); } diff --git a/app/Actions/Models/Wiki/AttachResourceAction.php b/app/Actions/Models/Wiki/AttachResourceAction.php index c69e22f76..a335cefd2 100644 --- a/app/Actions/Models/Wiki/AttachResourceAction.php +++ b/app/Actions/Models/Wiki/AttachResourceAction.php @@ -30,7 +30,9 @@ class AttachResourceAction foreach ($sites as $resourceSite) { $link = Arr::get($fields, $resourceSite->name); - if (empty($link)) continue; + if (empty($link)) { + continue; + } $this->createResource($link, $resourceSite, $model); } diff --git a/app/Actions/Models/Wiki/BackfillAnimeAction.php b/app/Actions/Models/Wiki/BackfillAnimeAction.php index 78248d031..a4dcec01d 100644 --- a/app/Actions/Models/Wiki/BackfillAnimeAction.php +++ b/app/Actions/Models/Wiki/BackfillAnimeAction.php @@ -59,8 +59,8 @@ class BackfillAnimeAction extends BackfillWikiAction if ( count($this->toBackfill[self::RESOURCES]) === 0 && count($this->toBackfill[self::IMAGES]) === 0 - && !$this->toBackfill[self::STUDIOS] - && !$this->toBackfill[self::SYNONYMS] + && ! $this->toBackfill[self::STUDIOS] + && ! $this->toBackfill[self::SYNONYMS] ) { // Don't make other requests if everything is backfilled Log::info("Backfill action finished for Anime {$this->getModel()->getName()}"); @@ -110,7 +110,7 @@ class BackfillAnimeAction extends BackfillWikiAction new LivechartAnimeExternalApiAction(), new AnilistAnimeExternalApiAction(), new MalAnimeExternalApiAction(), - //new JikanAnimeExternalApiAction(), + // new JikanAnimeExternalApiAction(), ]; } @@ -124,7 +124,9 @@ class BackfillAnimeAction extends BackfillWikiAction { $studios = $response->getStudios(); - if (!$this->toBackfill[self::STUDIOS]) return; + if (! $this->toBackfill[self::STUDIOS]) { + return; + } foreach ($studios as $studio) { $id = Arr::get($studio, 'id'); @@ -156,7 +158,9 @@ class BackfillAnimeAction extends BackfillWikiAction */ protected function forSynonyms(ExternalApiAction&BackfillSynonyms $api): void { - if (!$this->toBackfill[self::SYNONYMS]) return; + if (! $this->toBackfill[self::SYNONYMS]) { + return; + } $texts = []; foreach ($api->getSynonyms() as $type => $text) { diff --git a/app/Actions/Models/Wiki/BackfillSongAction.php b/app/Actions/Models/Wiki/BackfillSongAction.php index 7e771ae0b..d4af9afeb 100644 --- a/app/Actions/Models/Wiki/BackfillSongAction.php +++ b/app/Actions/Models/Wiki/BackfillSongAction.php @@ -62,7 +62,7 @@ class BackfillSongAction extends BackfillAction $label = $matches[2][$key]; $resourceSite = $this->getMappingFromExternalSite($label); - if (!$resourceSite) { + if (! $resourceSite) { Log::info("Skipping {$label} for Song {$this->getModel()->getName()}"); continue; } @@ -118,4 +118,4 @@ class BackfillSongAction extends BackfillAction { return $this->getModel()->resources(); } -} \ No newline at end of file +} diff --git a/app/Actions/Models/Wiki/BackfillStudioAction.php b/app/Actions/Models/Wiki/BackfillStudioAction.php index 9149c9e80..7f87766c1 100644 --- a/app/Actions/Models/Wiki/BackfillStudioAction.php +++ b/app/Actions/Models/Wiki/BackfillStudioAction.php @@ -45,6 +45,7 @@ class BackfillStudioAction extends BackfillWikiAction // Don't make other requests if everything is backfilled Log::info("Backfill action finished for Studio {$this->getModel()->getName()}"); DB::rollBack(); + return new ActionResult(ActionStatus::SKIPPED); } diff --git a/app/Actions/Models/Wiki/Song/ManageSongPerformances.php b/app/Actions/Models/Wiki/Song/ManageSongPerformances.php index 4a4dd0e84..49dd35f7b 100644 --- a/app/Actions/Models/Wiki/Song/ManageSongPerformances.php +++ b/app/Actions/Models/Wiki/Song/ManageSongPerformances.php @@ -68,7 +68,7 @@ class ManageSongPerformances { $this->groups[$group->getKey()] = [ Performance::ATTRIBUTE_ALIAS => $alias, - Performance::ATTRIBUTE_AS => $as + Performance::ATTRIBUTE_AS => $as, ]; return $this; @@ -87,14 +87,14 @@ class ManageSongPerformances { $this->performances[] = [ Performance::ATTRIBUTE_ARTIST_TYPE => Membership::class, - Performance::ATTRIBUTE_ALIAS => Arr::get($this->groups, "{$group->getKey()}." . Performance::ATTRIBUTE_ALIAS), - Performance::ATTRIBUTE_AS => Arr::get($this->groups, "{$group->getKey()}." . Performance::ATTRIBUTE_AS), + Performance::ATTRIBUTE_ALIAS => Arr::get($this->groups, "{$group->getKey()}.".Performance::ATTRIBUTE_ALIAS), + Performance::ATTRIBUTE_AS => Arr::get($this->groups, "{$group->getKey()}.".Performance::ATTRIBUTE_AS), Performance::RELATION_MEMBERSHIP => [ Membership::ATTRIBUTE_ARTIST => $group->getKey(), Membership::ATTRIBUTE_MEMBER => $member->getKey(), Membership::ATTRIBUTE_ALIAS => $alias, Membership::ATTRIBUTE_AS => $as, - ] + ], ]; return $this; @@ -146,8 +146,8 @@ class ManageSongPerformances ] ); // Note: Working in prod. Saving this here for local tests. Same for deleted events. - //$event = $model->wasRecentlyCreated ? new PerformanceCreated($model) : new PerformanceUpdated($model); - //$event->syncArtistSong(); + // $event = $model->wasRecentlyCreated ? new PerformanceCreated($model) : new PerformanceUpdated($model); + // $event->syncArtistSong(); } // Delete membership performances that are not in the new list. @@ -164,7 +164,7 @@ class ManageSongPerformances foreach ($membershipPerformances->get() as $performance) { $performance->forceDelete(); - //new PerformanceDeleted($performance)->syncArtistSong(); + // new PerformanceDeleted($performance)->syncArtistSong(); } // Delete solo performances that are not in the new list. @@ -181,7 +181,7 @@ class ManageSongPerformances foreach ($soloPerformances->get() as $performance) { $performance->forceDelete(); - //new PerformanceDeleted($performance)->syncArtistSong(); + // new PerformanceDeleted($performance)->syncArtistSong(); } // Update artist_member table to match memberships diff --git a/app/Actions/Models/Wiki/Video/Audio/BackfillAudioAction.php b/app/Actions/Models/Wiki/Video/Audio/BackfillAudioAction.php index 9ebc18b1b..cd4b7edd3 100644 --- a/app/Actions/Models/Wiki/Video/Audio/BackfillAudioAction.php +++ b/app/Actions/Models/Wiki/Video/Audio/BackfillAudioAction.php @@ -82,6 +82,7 @@ class BackfillAudioAction extends BackfillAction if ($this->relation()->getQuery()->doesntExist()) { DB::rollBack(); + return new ActionResult( ActionStatus::FAILED, "{$this->label()} '{$this->getModel()->getName()}' has no Audio after backfilling. Please review." @@ -127,7 +128,7 @@ class BackfillAudioAction extends BackfillAction */ protected function deriveSourceVideo(): bool { - return DeriveSourceVideo::YES === $this->deriveSourceVideo; + return $this->deriveSourceVideo === DeriveSourceVideo::YES; } /** @@ -137,7 +138,7 @@ class BackfillAudioAction extends BackfillAction */ protected function overwriteAudio(): bool { - return OverwriteAudio::YES === $this->overwriteAudio; + return $this->overwriteAudio === OverwriteAudio::YES; } /** @@ -147,7 +148,7 @@ class BackfillAudioAction extends BackfillAction */ protected function replaceRelatedAudio(): bool { - return ReplaceRelatedAudio::YES === $this->replaceRelatedAudio; + return $this->replaceRelatedAudio === ReplaceRelatedAudio::YES; } /** @@ -200,7 +201,6 @@ class BackfillAudioAction extends BackfillAction // Finally, extract audio from the source video if ($audio === null || $this->overwriteAudio() || $this->replaceRelatedAudio()) { - if ($this->replaceRelatedAudio()) { $sourceVideo = $this->getModel(); } @@ -298,7 +298,7 @@ class BackfillAudioAction extends BackfillAction '-y', $audioPath, ]) - ->throw(); + ->throw(); $uploadAudio = new UploadAudioAction( new UploadedFile($audioPath, $audioBasename), diff --git a/app/Actions/Storage/Admin/Dump/DumpAction.php b/app/Actions/Storage/Admin/Dump/DumpAction.php index 1becfe93c..d2ac7fc49 100644 --- a/app/Actions/Storage/Admin/Dump/DumpAction.php +++ b/app/Actions/Storage/Admin/Dump/DumpAction.php @@ -5,9 +5,9 @@ declare(strict_types=1); namespace App\Actions\Storage\Admin\Dump; use App\Actions\ActionResult; -use App\Concerns\Repositories\ReconcilesRepositories; use App\Constants\Config\DumpConstants; use App\Enums\Actions\ActionStatus; +use App\Models\Admin\Dump; use Exception; use Illuminate\Database\Connection; use Illuminate\Database\MySqlConnection; @@ -32,16 +32,12 @@ use Spatie\DbDumper\Exceptions\CannotSetParameter; */ abstract class DumpAction { - use ReconcilesRepositories; - /** * Create a new action instance. * * @param array $options */ - public function __construct(protected readonly array $options = []) - { - } + public function __construct(protected readonly array $options = []) {} /** * Handle action. @@ -72,7 +68,7 @@ abstract class DumpAction // Then, store dump file in intended location /** @var FilesystemAdapter $fs */ $fs = Storage::disk(Config::get(DumpConstants::DISK_QUALIFIED)); - $fs->putFileAs('', $dumpFile, File::basename($dumpFile)); + $path = $fs->putFileAs('', $dumpFile, File::basename($dumpFile)); // Finally, delete the temporary file File::delete($dumpFile); @@ -83,9 +79,9 @@ abstract class DumpAction ); } - $reconcileResults = $this->reconcileRepositories(); - - $reconcileResults->toLog(); + Dump::query()->create([ + Dump::ATTRIBUTE_PATH => $path, + ]); return new ActionResult( ActionStatus::PASSED, diff --git a/app/Actions/Storage/Admin/Dump/DumpViewAction.php b/app/Actions/Storage/Admin/Dump/DumpViewAction.php index b6435582f..2725f24b5 100644 --- a/app/Actions/Storage/Admin/Dump/DumpViewAction.php +++ b/app/Actions/Storage/Admin/Dump/DumpViewAction.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Actions\Storage\Admin\Dump; use App\Concerns\Repositories\Admin\ReconcilesDumpRepositories; -use App\Models\Service\View; use App\Models\Aggregate\ViewAggregate; +use App\Models\Service\View; use Illuminate\Support\Facades\Date; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; diff --git a/app/Actions/Storage/Base/DeleteAction.php b/app/Actions/Storage/Base/DeleteAction.php index 5fa88fccd..807e5ea15 100644 --- a/app/Actions/Storage/Base/DeleteAction.php +++ b/app/Actions/Storage/Base/DeleteAction.php @@ -23,9 +23,7 @@ abstract class DeleteAction implements InteractsWithDisks, StorageAction * * @param TModel $model */ - public function __construct(protected BaseModel $model) - { - } + public function __construct(protected BaseModel $model) {} /** * Handle action. diff --git a/app/Actions/Storage/Base/DeleteResults.php b/app/Actions/Storage/Base/DeleteResults.php index 09effb24b..d51e0a030 100644 --- a/app/Actions/Storage/Base/DeleteResults.php +++ b/app/Actions/Storage/Base/DeleteResults.php @@ -23,9 +23,7 @@ readonly class DeleteResults implements StorageResults * @param BaseModel $model * @param array $deletions */ - public function __construct(protected BaseModel $model, protected array $deletions = []) - { - } + public function __construct(protected BaseModel $model, protected array $deletions = []) {} /** * Write results to log. diff --git a/app/Actions/Storage/Base/MoveAction.php b/app/Actions/Storage/Base/MoveAction.php index e47298043..6434f61de 100644 --- a/app/Actions/Storage/Base/MoveAction.php +++ b/app/Actions/Storage/Base/MoveAction.php @@ -23,9 +23,7 @@ abstract class MoveAction implements InteractsWithDisks, StorageAction * * @param TModel $model */ - public function __construct(protected BaseModel $model, protected readonly string $to) - { - } + public function __construct(protected BaseModel $model, protected readonly string $to) {} /** * Handle action. diff --git a/app/Actions/Storage/Base/MoveResults.php b/app/Actions/Storage/Base/MoveResults.php index 24ea17a90..06350c7df 100644 --- a/app/Actions/Storage/Base/MoveResults.php +++ b/app/Actions/Storage/Base/MoveResults.php @@ -30,8 +30,7 @@ readonly class MoveResults implements StorageResults protected string $from, protected string $to, protected array $moves = [] - ) { - } + ) {} /** * Write results to log. diff --git a/app/Actions/Storage/Base/PruneAction.php b/app/Actions/Storage/Base/PruneAction.php index dfb19fdb4..fd0fa74f8 100644 --- a/app/Actions/Storage/Base/PruneAction.php +++ b/app/Actions/Storage/Base/PruneAction.php @@ -25,9 +25,7 @@ abstract class PruneAction implements InteractsWithDisk, StorageAction * * @param int $hours */ - public function __construct(protected readonly int $hours = 72) - { - } + public function __construct(protected readonly int $hours = 72) {} /** * Handle action. diff --git a/app/Actions/Storage/Base/PruneResults.php b/app/Actions/Storage/Base/PruneResults.php index 7109fac7c..ac8a2f38d 100644 --- a/app/Actions/Storage/Base/PruneResults.php +++ b/app/Actions/Storage/Base/PruneResults.php @@ -22,9 +22,7 @@ readonly class PruneResults implements StorageResults * @param string $fs * @param array $prunings */ - public function __construct(protected string $fs, protected array $prunings = []) - { - } + public function __construct(protected string $fs, protected array $prunings = []) {} /** * Write results to log. diff --git a/app/Actions/Storage/Base/UploadAction.php b/app/Actions/Storage/Base/UploadAction.php index ba9505b90..218636b07 100644 --- a/app/Actions/Storage/Base/UploadAction.php +++ b/app/Actions/Storage/Base/UploadAction.php @@ -22,9 +22,7 @@ abstract class UploadAction implements InteractsWithDisks, StorageAction * @param UploadedFile $file * @param string $path */ - public function __construct(protected readonly UploadedFile $file, protected readonly string $path) - { - } + public function __construct(protected readonly UploadedFile $file, protected readonly string $path) {} /** * Handle action. diff --git a/app/Actions/Storage/Base/UploadResults.php b/app/Actions/Storage/Base/UploadResults.php index 09b58fe0d..03cd1bdfd 100644 --- a/app/Actions/Storage/Base/UploadResults.php +++ b/app/Actions/Storage/Base/UploadResults.php @@ -21,9 +21,7 @@ readonly class UploadResults implements StorageResults * * @param array $uploads */ - public function __construct(protected array $uploads = []) - { - } + public function __construct(protected array $uploads = []) {} /** * Write results to log. diff --git a/app/Concerns/Actions/Http/Api/ConstrainsEagerLoads.php b/app/Concerns/Actions/Http/Api/ConstrainsEagerLoads.php index 53210374a..148b9d7c3 100644 --- a/app/Concerns/Actions/Http/Api/ConstrainsEagerLoads.php +++ b/app/Concerns/Actions/Http/Api/ConstrainsEagerLoads.php @@ -4,12 +4,10 @@ declare(strict_types=1); namespace App\Concerns\Actions\Http\Api; -use App\Http\Api\Include\AllowedInclude; use App\Http\Api\Query\Query; use App\Http\Api\Schema\Schema; use App\Http\Api\Scope\ScopeParser; use Illuminate\Database\Eloquent\Relations\Relation; -use Illuminate\Support\Arr; use RuntimeException; /** diff --git a/app/Concerns/Filament/ActionLogs/HasActionLogs.php b/app/Concerns/Filament/ActionLogs/HasActionLogs.php index 7fdfdb766..4e873ff11 100644 --- a/app/Concerns/Filament/ActionLogs/HasActionLogs.php +++ b/app/Concerns/Filament/ActionLogs/HasActionLogs.php @@ -98,7 +98,7 @@ trait HasActionLogs */ public function finishedLog(): void { - if (!$this->isFailedLog()) { + if (! $this->isFailedLog()) { $this->actionLog->finished(); // Filament notifications @@ -125,6 +125,4 @@ trait HasActionLogs { return $this->actionLog->isFailed(); } - - } diff --git a/app/Concerns/Filament/ActionLogs/HasPivotActionLogs.php b/app/Concerns/Filament/ActionLogs/HasPivotActionLogs.php index 70e391f0e..756ac770b 100644 --- a/app/Concerns/Filament/ActionLogs/HasPivotActionLogs.php +++ b/app/Concerns/Filament/ActionLogs/HasPivotActionLogs.php @@ -19,7 +19,7 @@ trait HasPivotActionLogs * Create the pivot action log. * * @param string $actionName - * @param BaseRelationManager $livewire + * @param BaseRelationManager $livewire * @param Model $record * @param mixed $action * @return void @@ -53,7 +53,7 @@ trait HasPivotActionLogs * Create the associate action log. * * @param string $actionName - * @param BaseRelationManager $livewire + * @param BaseRelationManager $livewire * @param Model $record * @param mixed $action * @return void diff --git a/app/Concerns/Filament/Actions/Models/Wiki/Anime/BackfillAnimeActionTrait.php b/app/Concerns/Filament/Actions/Models/Wiki/Anime/BackfillAnimeActionTrait.php index 29cd5bd5b..5a672fe40 100644 --- a/app/Concerns/Filament/Actions/Models/Wiki/Anime/BackfillAnimeActionTrait.php +++ b/app/Concerns/Filament/Actions/Models/Wiki/Anime/BackfillAnimeActionTrait.php @@ -74,6 +74,7 @@ trait BackfillAnimeActionTrait { if ($anime->resources()->doesntExist()) { $this->failedLog(__('filament.actions.anime.backfill.message.resource_required_failure')); + return; } @@ -110,7 +111,9 @@ trait BackfillAnimeActionTrait { $anime = $this->getRecord(); - if (!($anime instanceof Anime)) return $form; + if (! ($anime instanceof Anime)) { + return $form; + } $anime = $anime->load([Anime::RELATION_RESOURCES, Anime::RELATION_IMAGES, Anime::RELATION_STUDIOS, Anime::RELATION_SYNONYMS]); diff --git a/app/Concerns/Filament/Actions/Models/Wiki/AttachResourceActionTrait.php b/app/Concerns/Filament/Actions/Models/Wiki/AttachResourceActionTrait.php index 16b00119f..b5046ecd7 100644 --- a/app/Concerns/Filament/Actions/Models/Wiki/AttachResourceActionTrait.php +++ b/app/Concerns/Filament/Actions/Models/Wiki/AttachResourceActionTrait.php @@ -56,7 +56,9 @@ trait AttachResourceActionTrait $fields = []; $model = $this->getRecord(); - if (!($model instanceof HasResources)) return $form; + if (! ($model instanceof HasResources)) { + return $form; + } $resources = $model->resources() ->get([ExternalResource::ATTRIBUTE_SITE]) @@ -65,7 +67,9 @@ trait AttachResourceActionTrait ->keys(); foreach ($this->sites as $resourceSite) { - if ($resources->contains($resourceSite->value)) continue; + if ($resources->contains($resourceSite->value)) { + continue; + } $resourceSiteLower = Str::lower($resourceSite->name); diff --git a/app/Concerns/Filament/Actions/Models/Wiki/Studio/BackfillStudioActionTrait.php b/app/Concerns/Filament/Actions/Models/Wiki/Studio/BackfillStudioActionTrait.php index 1a73dc17e..94e93f716 100644 --- a/app/Concerns/Filament/Actions/Models/Wiki/Studio/BackfillStudioActionTrait.php +++ b/app/Concerns/Filament/Actions/Models/Wiki/Studio/BackfillStudioActionTrait.php @@ -56,6 +56,7 @@ trait BackfillStudioActionTrait { if ($studio->resources()->doesntExist()) { $this->failedLog(__('filament.actions.studio.backfill.message.resource_required_failure')); + return; } diff --git a/app/Concerns/Filament/Actions/Storage/MoveAllActionTrait.php b/app/Concerns/Filament/Actions/Storage/MoveAllActionTrait.php index 4ff1e7cca..cf4c9f296 100644 --- a/app/Concerns/Filament/Actions/Storage/MoveAllActionTrait.php +++ b/app/Concerns/Filament/Actions/Storage/MoveAllActionTrait.php @@ -21,7 +21,7 @@ use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Storage; /** - * Trait MoveAllActionTrait + * Trait MoveAllActionTrait. */ trait MoveAllActionTrait { diff --git a/app/Concerns/Filament/Actions/Storage/Wiki/Audio/MoveAudioActionTrait.php b/app/Concerns/Filament/Actions/Storage/Wiki/Audio/MoveAudioActionTrait.php index 2b2bb4e47..9304b226d 100644 --- a/app/Concerns/Filament/Actions/Storage/Wiki/Audio/MoveAudioActionTrait.php +++ b/app/Concerns/Filament/Actions/Storage/Wiki/Audio/MoveAudioActionTrait.php @@ -6,8 +6,8 @@ namespace App\Concerns\Filament\Actions\Storage\Wiki\Audio; use App\Actions\Storage\Wiki\Audio\MoveAudioAction as MoveAudio; use App\Constants\Config\AudioConstants; -use App\Models\Wiki\Audio; use App\Models\BaseModel; +use App\Models\Wiki\Audio; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Config; diff --git a/app/Concerns/Filament/Actions/Storage/Wiki/Image/MoveImageActionTrait.php b/app/Concerns/Filament/Actions/Storage/Wiki/Image/MoveImageActionTrait.php index f7b597068..96ffcd515 100644 --- a/app/Concerns/Filament/Actions/Storage/Wiki/Image/MoveImageActionTrait.php +++ b/app/Concerns/Filament/Actions/Storage/Wiki/Image/MoveImageActionTrait.php @@ -6,8 +6,8 @@ namespace App\Concerns\Filament\Actions\Storage\Wiki\Image; use App\Actions\Storage\Wiki\Image\MoveImageAction as MoveImage; use App\Constants\Config\ImageConstants; -use App\Models\Wiki\Image; use App\Models\BaseModel; +use App\Models\Wiki\Image; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\File; @@ -77,6 +77,6 @@ trait MoveImageActionTrait */ protected function allowedFileExtension(): string { - return '.' . File::extension($this->defaultPath()); + return '.'.File::extension($this->defaultPath()); } } diff --git a/app/Concerns/Filament/Actions/Storage/Wiki/Video/MoveVideoActionTrait.php b/app/Concerns/Filament/Actions/Storage/Wiki/Video/MoveVideoActionTrait.php index dded84c81..d6850b751 100644 --- a/app/Concerns/Filament/Actions/Storage/Wiki/Video/MoveVideoActionTrait.php +++ b/app/Concerns/Filament/Actions/Storage/Wiki/Video/MoveVideoActionTrait.php @@ -6,8 +6,8 @@ namespace App\Concerns\Filament\Actions\Storage\Wiki\Video; use App\Actions\Storage\Wiki\Video\MoveVideoAction as MoveVideo; use App\Constants\Config\VideoConstants; -use App\Models\Wiki\Video; use App\Models\BaseModel; +use App\Models\Wiki\Video; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Config; diff --git a/app/Concerns/Filament/Actions/Storage/Wiki/Video/Script/MoveScriptActionTrait.php b/app/Concerns/Filament/Actions/Storage/Wiki/Video/Script/MoveScriptActionTrait.php index 149b3a658..5adfed75f 100644 --- a/app/Concerns/Filament/Actions/Storage/Wiki/Video/Script/MoveScriptActionTrait.php +++ b/app/Concerns/Filament/Actions/Storage/Wiki/Video/Script/MoveScriptActionTrait.php @@ -6,8 +6,8 @@ namespace App\Concerns\Filament\Actions\Storage\Wiki\Video\Script; use App\Actions\Storage\Wiki\Video\Script\MoveScriptAction as MoveScript; use App\Constants\Config\VideoConstants; -use App\Models\Wiki\Video\VideoScript; use App\Models\BaseModel; +use App\Models\Wiki\Video\VideoScript; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Config; diff --git a/app/Concerns/Filament/Enums/HasColorOrEmoji.php b/app/Concerns/Filament/Enums/HasColorOrEmoji.php index 0a156764a..e0793a4a8 100644 --- a/app/Concerns/Filament/Enums/HasColorOrEmoji.php +++ b/app/Concerns/Filament/Enums/HasColorOrEmoji.php @@ -63,4 +63,4 @@ trait HasColorOrEmoji return $name->__toString(); } -} \ No newline at end of file +} diff --git a/app/Concerns/Filament/HasTabs.php b/app/Concerns/Filament/HasTabs.php index 231c3a8c9..c81aafa5b 100644 --- a/app/Concerns/Filament/HasTabs.php +++ b/app/Concerns/Filament/HasTabs.php @@ -22,7 +22,9 @@ trait HasTabs $tabs = []; foreach ($tabClasses as $class) { - if ((new $class)->shouldBeHidden()) continue; + if ((new $class)->shouldBeHidden()) { + continue; + } $tabs[$class::getKey()] = $class::make(); } diff --git a/app/Concerns/GraphQL/ResolvesArguments.php b/app/Concerns/GraphQL/ResolvesArguments.php index 200aed3b9..a72b94fa1 100644 --- a/app/Concerns/GraphQL/ResolvesArguments.php +++ b/app/Concerns/GraphQL/ResolvesArguments.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Concerns\GraphQL; use App\Contracts\GraphQL\FilterableField; -use App\GraphQL\Definition\Fields\Field; use App\GraphQL\Definition\Directives\Filters\FilterDirective; +use App\GraphQL\Definition\Fields\Field; use Illuminate\Support\Arr; use Illuminate\Support\Str; diff --git a/app/Concerns/Http/Requests/Api/ValidatesFilters.php b/app/Concerns/Http/Requests/Api/ValidatesFilters.php index ccc19044d..9feb26380 100644 --- a/app/Concerns/Http/Requests/Api/ValidatesFilters.php +++ b/app/Concerns/Http/Requests/Api/ValidatesFilters.php @@ -119,11 +119,11 @@ trait ValidatesFilters } } - if (Clause::WHERE === $filter->clause()) { + if ($filter->clause() === Clause::WHERE) { $this->validateMultiValueFilterForWhereClause($validator, $schema, $filter); } - if (Clause::HAVING === $filter->clause()) { + if ($filter->clause() === Clause::HAVING) { $this->prohibitMultiValueFilterForHavingClause($validator, $schema, $filter); } } diff --git a/app/Concerns/Models/CanCreateExternalResource.php b/app/Concerns/Models/CanCreateExternalResource.php index c5cdc3835..9717ff1fa 100644 --- a/app/Concerns/Models/CanCreateExternalResource.php +++ b/app/Concerns/Models/CanCreateExternalResource.php @@ -47,7 +47,7 @@ trait CanCreateExternalResource ->where(ExternalResource::ATTRIBUTE_SITE, $site->value) ->where(function (Builder $query) use ($url) { return $query->where(ExternalResource::ATTRIBUTE_LINK, $url) - ->orWhere(ExternalResource::ATTRIBUTE_LINK, $url . '/'); + ->orWhere(ExternalResource::ATTRIBUTE_LINK, $url.'/'); }) ->first(); @@ -89,6 +89,6 @@ trait CanCreateExternalResource */ protected function ensureHttpsUrl(string $url): string { - return preg_replace("/^http:/i", "https:", $url); + return preg_replace('/^http:/i', 'https:', $url); } } diff --git a/app/Concerns/Models/CanCreateStudio.php b/app/Concerns/Models/CanCreateStudio.php index ab48dd599..0abf56067 100644 --- a/app/Concerns/Models/CanCreateStudio.php +++ b/app/Concerns/Models/CanCreateStudio.php @@ -76,4 +76,4 @@ trait CanCreateStudio $studioResource->studios()->attach($studio); } } -} \ No newline at end of file +} diff --git a/app/Concerns/Models/HasLabel.php b/app/Concerns/Models/HasLabel.php index 0daa10a5a..a1b2921be 100644 --- a/app/Concerns/Models/HasLabel.php +++ b/app/Concerns/Models/HasLabel.php @@ -22,4 +22,4 @@ trait HasLabel { return Str::headline(class_basename($model)); } -} \ No newline at end of file +} diff --git a/app/Concerns/Models/Reportable.php b/app/Concerns/Models/Reportable.php index 8cf57f36c..da7954b0f 100644 --- a/app/Concerns/Models/Reportable.php +++ b/app/Concerns/Models/Reportable.php @@ -5,9 +5,8 @@ declare(strict_types=1); namespace App\Concerns\Models; use App\Actions\Models\User\Report\ReportAction; -use App\Models\User\Report; -use App\Models\User\Report\ReportStep; use App\Models\BaseModel; +use App\Models\User\Report\ReportStep; use Illuminate\Database\Eloquent\Relations\MorphMany; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Gate; diff --git a/app/Console/Commands/Database/DatabaseSyncCommand.php b/app/Console/Commands/Database/DatabaseSyncCommand.php index 022c70a82..89b2d6890 100644 --- a/app/Console/Commands/Database/DatabaseSyncCommand.php +++ b/app/Console/Commands/Database/DatabaseSyncCommand.php @@ -44,6 +44,7 @@ class DatabaseSyncCommand extends BaseCommand { if (app()->isProduction()) { $this->error('Command not allowed in production.'); + return 1; } diff --git a/app/Console/Commands/Models/PlaylistFixCommand.php b/app/Console/Commands/Models/PlaylistFixCommand.php index b5686ff46..f0e97d6eb 100644 --- a/app/Console/Commands/Models/PlaylistFixCommand.php +++ b/app/Console/Commands/Models/PlaylistFixCommand.php @@ -41,8 +41,9 @@ class PlaylistFixCommand extends BaseCommand /** @var Playlist|null $playlist */ $playlist = Playlist::find($playlistId); - if (!$playlist) { + if (! $playlist) { $this->error("Playlist with id $playlistId not found."); + return 0; } diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 2644c698f..12a3bf40c 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -6,6 +6,7 @@ namespace App\Console; use App\Console\Commands\Models\SyncLikeAggregatesCommand; use App\Console\Commands\Models\SyncViewAggregatesCommand; +use App\Console\Commands\Repositories\Storage\Admin\DumpReconcileCommand; use App\Console\Commands\Storage\Admin\AdminDumpCommand; use App\Console\Commands\Storage\Admin\AuthDumpCommand; use App\Console\Commands\Storage\Admin\DiscordDumpCommand; @@ -60,37 +61,43 @@ class Kernel extends ConsoleKernel ->withoutOverlapping() ->runInBackground() ->storeOutput() - ->dailyAt('00:02'); + ->daily(); $schedule->command(AdminDumpCommand::class) ->withoutOverlapping() ->runInBackground() ->storeOutput() - ->weeklyOn(Schedule::MONDAY, '00:04'); + ->weeklyOn(Schedule::MONDAY); $schedule->command(AuthDumpCommand::class) ->withoutOverlapping() ->runInBackground() ->storeOutput() - ->weeklyOn(Schedule::MONDAY, '00:06'); + ->weeklyOn(Schedule::MONDAY); $schedule->command(DiscordDumpCommand::class) ->withoutOverlapping() ->runInBackground() ->storeOutput() - ->weeklyOn(Schedule::MONDAY, '00:08'); + ->weeklyOn(Schedule::MONDAY); $schedule->command(ListDumpCommand::class) ->withoutOverlapping() ->runInBackground() ->storeOutput() - ->weeklyOn(Schedule::MONDAY, '00:10'); + ->weeklyOn(Schedule::MONDAY); $schedule->command(UserDumpCommand::class) ->withoutOverlapping() ->runInBackground() ->storeOutput() - ->weeklyOn(Schedule::MONDAY, '00:12'); + ->weeklyOn(Schedule::MONDAY); + + $schedule->command(DumpReconcileCommand::class) + ->withoutOverlapping() + ->runInBackground() + ->storeOutput() + ->dailyAt('00:10'); $schedule->command(DumpPruneCommand::class) ->withoutOverlapping() diff --git a/app/Contracts/Events/NotifiesUsersEvent.php b/app/Contracts/Events/NotifiesUsersEvent.php index b4f373a0c..fdf895598 100644 --- a/app/Contracts/Events/NotifiesUsersEvent.php +++ b/app/Contracts/Events/NotifiesUsersEvent.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace App\Contracts\Events; -use Filament\Notifications\Notification; -use Illuminate\Support\Collection; - /** * Interface NotifiesUsersEvent. */ diff --git a/app/Contracts/GraphQL/HasDirectives.php b/app/Contracts/GraphQL/HasDirectives.php index e49a1c2a4..9364898da 100644 --- a/app/Contracts/GraphQL/HasDirectives.php +++ b/app/Contracts/GraphQL/HasDirectives.php @@ -4,8 +4,6 @@ declare(strict_types=1); namespace App\Contracts\GraphQL; -use App\GraphQL\Definition\Relations\Relation; - /** * Interface HasDirectives. */ diff --git a/app/Contracts/Http/Api/Schema/SearchableSchema.php b/app/Contracts/Http/Api/Schema/SearchableSchema.php index 5dab5a04b..28bbc85cb 100644 --- a/app/Contracts/Http/Api/Schema/SearchableSchema.php +++ b/app/Contracts/Http/Api/Schema/SearchableSchema.php @@ -7,6 +7,4 @@ namespace App\Contracts\Http\Api\Schema; /** * Interface SearchableSchema. */ -interface SearchableSchema -{ -} +interface SearchableSchema {} diff --git a/app/Enums/Models/List/ExternalEntryWatchStatus.php b/app/Enums/Models/List/ExternalEntryWatchStatus.php index 2505f20c6..235f47581 100644 --- a/app/Enums/Models/List/ExternalEntryWatchStatus.php +++ b/app/Enums/Models/List/ExternalEntryWatchStatus.php @@ -29,12 +29,12 @@ enum ExternalEntryWatchStatus: int public static function getMalMapping(string $status): static { return match ($status) { - 'watching' => static::WATCHING, - 'completed' => static::COMPLETED, - 'on_hold' => static::PAUSED, - 'dropped' => static::DROPPED, - 'plan_to_watch' => static::PLAN_TO_WATCH, - default => static::REWATCHING, + 'watching' => self::WATCHING, + 'completed' => self::COMPLETED, + 'on_hold' => self::PAUSED, + 'dropped' => self::DROPPED, + 'plan_to_watch' => self::PLAN_TO_WATCH, + default => self::REWATCHING, }; } diff --git a/app/Enums/Models/List/ExternalProfileSite.php b/app/Enums/Models/List/ExternalProfileSite.php index 80b856831..f7c58686d 100644 --- a/app/Enums/Models/List/ExternalProfileSite.php +++ b/app/Enums/Models/List/ExternalProfileSite.php @@ -29,9 +29,9 @@ enum ExternalProfileSite: int public function getResourceSite(): ResourceSite { return match ($this) { - static::MAL => ResourceSite::MAL, - static::ANILIST => ResourceSite::ANILIST, - static::KITSU => ResourceSite::KITSU, + self::MAL => ResourceSite::MAL, + self::ANILIST => ResourceSite::ANILIST, + self::KITSU => ResourceSite::KITSU, }; } @@ -42,7 +42,7 @@ enum ExternalProfileSite: int */ public function getAuthorizeUrl(): ?string { - if ($this === static::MAL) { + if ($this === self::MAL) { $codeVerifier = bin2hex(random_bytes(64)); $id = Str::uuid()->__toString(); @@ -58,17 +58,17 @@ enum ExternalProfileSite: int 'code_challenge_method' => 'plain', ]; - return 'https://myanimelist.net/v1/oauth2/authorize?' . http_build_query($query); + return 'https://myanimelist.net/v1/oauth2/authorize?'.http_build_query($query); } - if ($this === static::ANILIST) { + if ($this === self::ANILIST) { $query = [ 'client_id' => Config::get('services.anilist.client_id'), 'redirect_uri' => Config::get('services.anilist.redirect_uri'), 'response_type' => 'code', ]; - return 'https://anilist.co/api/v2/oauth/authorize?' . http_build_query($query); + return 'https://anilist.co/api/v2/oauth/authorize?'.http_build_query($query); } return null; diff --git a/app/Enums/Models/Wiki/AnimeSeason.php b/app/Enums/Models/Wiki/AnimeSeason.php index df96e162d..9785488e9 100644 --- a/app/Enums/Models/Wiki/AnimeSeason.php +++ b/app/Enums/Models/Wiki/AnimeSeason.php @@ -28,10 +28,10 @@ enum AnimeSeason: int public function getColor(): string { return match ($this) { - static::WINTER => '153, 204, 255', - static::SPRING => '255, 192, 203', - static::SUMMER => '255, 153, 51', - static::FALL => '204, 102, 0', + self::WINTER => '153, 204, 255', + self::SPRING => '255, 192, 203', + self::SUMMER => '255, 153, 51', + self::FALL => '204, 102, 0', }; } @@ -43,10 +43,10 @@ enum AnimeSeason: int public function getEmoji(): string { return match ($this) { - static::WINTER => "\u{2744}", - static::SPRING => "\u{1F33C}", - static::SUMMER => "\u{2600}", - static::FALL => "\u{1F342}", + self::WINTER => "\u{2744}", + self::SPRING => "\u{1F33C}", + self::SUMMER => "\u{2600}", + self::FALL => "\u{1F342}", }; } } diff --git a/app/Events/Base/Wiki/WikiDeletedEvent.php b/app/Events/Base/Wiki/WikiDeletedEvent.php index e955c6624..a31425e2b 100644 --- a/app/Events/Base/Wiki/WikiDeletedEvent.php +++ b/app/Events/Base/Wiki/WikiDeletedEvent.php @@ -50,7 +50,7 @@ abstract class WikiDeletedEvent extends BaseDeletedEvent implements FilamentNoti { $model = $this->getModel(); - return !$model->isForceDeleting(); + return ! $model->isForceDeleting(); } /** diff --git a/app/Events/BaseEvent.php b/app/Events/BaseEvent.php index b533bc961..683eefd14 100644 --- a/app/Events/BaseEvent.php +++ b/app/Events/BaseEvent.php @@ -65,7 +65,7 @@ abstract class BaseEvent 'footer' => [ 'text' => $this->getAuthenticatedUser()->getName(), 'icon_url' => $this->getAuthenticatedUser()->getFilamentAvatarUrl(), - ] + ], ]; } } diff --git a/app/Events/BasePivotEvent.php b/app/Events/BasePivotEvent.php index 5d16923fb..f8ffa18ab 100644 --- a/app/Events/BasePivotEvent.php +++ b/app/Events/BasePivotEvent.php @@ -83,7 +83,7 @@ abstract class BasePivotEvent implements DiscordMessageEvent 'footer' => [ 'text' => $this->getAuthenticatedUser()->getName(), 'icon_url' => $this->getAuthenticatedUser()->getFilamentAvatarUrl(), - ] + ], ]; } diff --git a/app/Events/Discord/DiscordThread/DiscordThreadDeleted.php b/app/Events/Discord/DiscordThread/DiscordThreadDeleted.php index 0044305d3..b7c40a84c 100644 --- a/app/Events/Discord/DiscordThread/DiscordThreadDeleted.php +++ b/app/Events/Discord/DiscordThread/DiscordThreadDeleted.php @@ -55,7 +55,7 @@ class DiscordThreadDeleted extends AdminDeletedEvent protected function deleteThread(): void { Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) - ->delete(Config::get('services.discord.api_url') . '/thread', ['id' => $this->getModel()->getKey()]) + ->delete(Config::get('services.discord.api_url').'/thread', ['id' => $this->getModel()->getKey()]) ->throw(); } } diff --git a/app/Events/Discord/DiscordThread/DiscordThreadUpdated.php b/app/Events/Discord/DiscordThread/DiscordThreadUpdated.php index 87b78d4b7..d0ed1ae45 100644 --- a/app/Events/Discord/DiscordThread/DiscordThreadUpdated.php +++ b/app/Events/Discord/DiscordThread/DiscordThreadUpdated.php @@ -56,7 +56,7 @@ class DiscordThreadUpdated extends AdminUpdatedEvent protected function updateThread(): void { Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')]) - ->put(Config::get('services.discord.api_url') . '/thread', $this->getModel()->toArray()) + ->put(Config::get('services.discord.api_url').'/thread', $this->getModel()->toArray()) ->throw(); } } diff --git a/app/Events/List/ExternalProfile/ExternalProfileSynced.php b/app/Events/List/ExternalProfile/ExternalProfileSynced.php index aea4f4397..060a46e5d 100644 --- a/app/Events/List/ExternalProfile/ExternalProfileSynced.php +++ b/app/Events/List/ExternalProfile/ExternalProfileSynced.php @@ -22,9 +22,7 @@ class ExternalProfileSynced implements NotifiesUsersEvent * * @param ExternalProfile $profile */ - public function __construct(protected ExternalProfile $profile) - { - } + public function __construct(protected ExternalProfile $profile) {} /** * Notify the users. diff --git a/app/Events/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoCreated.php b/app/Events/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoCreated.php index 176ac125c..892bf6292 100644 --- a/app/Events/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoCreated.php +++ b/app/Events/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoCreated.php @@ -18,7 +18,7 @@ use Illuminate\Support\Facades\DB; * * @extends PivotCreatedEvent */ -class AnimeThemeEntryVideoCreated extends PivotCreatedEvent implements UpdateRelatedIndicesEvent, UpdatePlaylistTracksEvent +class AnimeThemeEntryVideoCreated extends PivotCreatedEvent implements UpdatePlaylistTracksEvent, UpdateRelatedIndicesEvent { /** * Create a new event instance. diff --git a/app/Events/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoDeleted.php b/app/Events/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoDeleted.php index ada4037ac..a3ce390bf 100644 --- a/app/Events/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoDeleted.php +++ b/app/Events/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoDeleted.php @@ -18,7 +18,7 @@ use Illuminate\Support\Facades\DB; * * @extends PivotDeletedEvent */ -class AnimeThemeEntryVideoDeleted extends PivotDeletedEvent implements UpdateRelatedIndicesEvent, UpdatePlaylistTracksEvent +class AnimeThemeEntryVideoDeleted extends PivotDeletedEvent implements UpdatePlaylistTracksEvent, UpdateRelatedIndicesEvent { /** * Create a new event instance. diff --git a/app/Events/Pivot/Wiki/SongResource/SongResourceCreated.php b/app/Events/Pivot/Wiki/SongResource/SongResourceCreated.php index 3c95ce5b3..e1e25c8a2 100644 --- a/app/Events/Pivot/Wiki/SongResource/SongResourceCreated.php +++ b/app/Events/Pivot/Wiki/SongResource/SongResourceCreated.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Events\Pivot\Wiki\SongResource; use App\Events\Base\Pivot\PivotCreatedEvent; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; /** diff --git a/app/Events/Pivot/Wiki/SongResource/SongResourceDeleted.php b/app/Events/Pivot/Wiki/SongResource/SongResourceDeleted.php index 2fec78a94..95d8bd9c0 100644 --- a/app/Events/Pivot/Wiki/SongResource/SongResourceDeleted.php +++ b/app/Events/Pivot/Wiki/SongResource/SongResourceDeleted.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Events\Pivot\Wiki\SongResource; use App\Events\Base\Pivot\PivotDeletedEvent; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; /** diff --git a/app/Events/Pivot/Wiki/SongResource/SongResourceUpdated.php b/app/Events/Pivot/Wiki/SongResource/SongResourceUpdated.php index 2aa6364f9..53742d582 100644 --- a/app/Events/Pivot/Wiki/SongResource/SongResourceUpdated.php +++ b/app/Events/Pivot/Wiki/SongResource/SongResourceUpdated.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Events\Pivot\Wiki\SongResource; use App\Events\Base\Pivot\PivotUpdatedEvent; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; /** diff --git a/app/Events/User/Encode/EncodeCreated.php b/app/Events/User/Encode/EncodeCreated.php index 5b8dbaab9..077e30f5e 100644 --- a/app/Events/User/Encode/EncodeCreated.php +++ b/app/Events/User/Encode/EncodeCreated.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace App\Events\User\Encode; -use App\Actions\Http\Api\List\Playlist\Track\StoreTrackAction;; +use App\Actions\Http\Api\List\Playlist\Track\StoreTrackAction; use App\Contracts\Events\ManagesTrackEvent; use App\Enums\Models\List\PlaylistVisibility; use App\Events\BaseEvent; diff --git a/app/Events/Wiki/Song/Membership/MembershipDeleted.php b/app/Events/Wiki/Song/Membership/MembershipDeleted.php index 976a18d78..659627c96 100644 --- a/app/Events/Wiki/Song/Membership/MembershipDeleted.php +++ b/app/Events/Wiki/Song/Membership/MembershipDeleted.php @@ -7,11 +7,7 @@ namespace App\Events\Wiki\Song\Membership; use App\Contracts\Events\UpdateRelatedIndicesEvent; use App\Events\Base\Wiki\WikiDeletedEvent; use App\Filament\Resources\Wiki\Song\Membership as MembershipFilament; -use App\Models\Wiki\Anime\AnimeTheme; -use App\Models\Wiki\Anime\Theme\AnimeThemeEntry; -use App\Models\Wiki\Artist; use App\Models\Wiki\Song\Membership; -use App\Models\Wiki\Video; /** * Class MembershipDeleted. diff --git a/app/Events/Wiki/Song/Performance/PerformanceCreated.php b/app/Events/Wiki/Song/Performance/PerformanceCreated.php index 4999345a8..d52b3846e 100644 --- a/app/Events/Wiki/Song/Performance/PerformanceCreated.php +++ b/app/Events/Wiki/Song/Performance/PerformanceCreated.php @@ -18,7 +18,7 @@ use Exception; * * @extends WikiCreatedEvent */ -class PerformanceCreated extends WikiCreatedEvent implements UpdateRelatedIndicesEvent, SyncArtistSongEvent +class PerformanceCreated extends WikiCreatedEvent implements SyncArtistSongEvent, UpdateRelatedIndicesEvent { /** * Create a new event instance. diff --git a/app/Events/Wiki/Song/Performance/PerformanceDeleted.php b/app/Events/Wiki/Song/Performance/PerformanceDeleted.php index c4567dda0..4a7744cad 100644 --- a/app/Events/Wiki/Song/Performance/PerformanceDeleted.php +++ b/app/Events/Wiki/Song/Performance/PerformanceDeleted.php @@ -21,7 +21,7 @@ use Illuminate\Database\Eloquent\Relations\MorphTo; * * @extends WikiDeletedEvent */ -class PerformanceDeleted extends WikiDeletedEvent implements UpdateRelatedIndicesEvent, SyncArtistSongEvent +class PerformanceDeleted extends WikiDeletedEvent implements SyncArtistSongEvent, UpdateRelatedIndicesEvent { /** * Create a new event instance. @@ -94,9 +94,9 @@ class PerformanceDeleted extends WikiDeletedEvent implements UpdateRelatedIndice Performance::RELATION_ARTIST => function (MorphTo $morphTo) { $morphTo->morphWith([ Artist::class => [], - Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER] + Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER], ]); - } + }, ]); if ($performance->isMembership()) { @@ -127,7 +127,9 @@ class PerformanceDeleted extends WikiDeletedEvent implements UpdateRelatedIndice ->where(Performance::ATTRIBUTE_ARTIST_TYPE, Membership::class) ->whereHas(Performance::RELATION_ARTIST, fn (Builder $query) => $query->where(Artist::ATTRIBUTE_ID, $performance->artist->artist->getKey())) ->exists() - ) return; + ) { + return; + } $artist = match ($performance->artist_type) { Artist::class => $performance->artist, diff --git a/app/Events/Wiki/Song/Performance/PerformanceDeleting.php b/app/Events/Wiki/Song/Performance/PerformanceDeleting.php index 433c81588..9a2c6be5e 100644 --- a/app/Events/Wiki/Song/Performance/PerformanceDeleting.php +++ b/app/Events/Wiki/Song/Performance/PerformanceDeleting.php @@ -49,9 +49,9 @@ class PerformanceDeleting extends BaseEvent implements UpdateRelatedIndicesEvent Performance::RELATION_ARTIST => function (MorphTo $morphTo) { $morphTo->morphWith([ Artist::class => [], - Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER] + Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER], ]); - } + }, ]); if ($performance->isForceDeleting()) { diff --git a/app/Events/Wiki/Song/Performance/PerformanceRestored.php b/app/Events/Wiki/Song/Performance/PerformanceRestored.php index e6a093160..b0dafe48c 100644 --- a/app/Events/Wiki/Song/Performance/PerformanceRestored.php +++ b/app/Events/Wiki/Song/Performance/PerformanceRestored.php @@ -19,7 +19,7 @@ use Illuminate\Database\Eloquent\Relations\MorphTo; * * @extends WikiRestoredEvent */ -class PerformanceRestored extends WikiRestoredEvent implements UpdateRelatedIndicesEvent, SyncArtistSongEvent +class PerformanceRestored extends WikiRestoredEvent implements SyncArtistSongEvent, UpdateRelatedIndicesEvent { /** * Create a new event instance. @@ -62,9 +62,9 @@ class PerformanceRestored extends WikiRestoredEvent implements UpdateRelatedIndi Performance::RELATION_ARTIST => function (MorphTo $morphTo) { $morphTo->morphWith([ Artist::class => [], - Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER] + Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER], ]); - } + }, ]); if ($performance->isMembership()) { diff --git a/app/Events/Wiki/Song/Performance/PerformanceUpdated.php b/app/Events/Wiki/Song/Performance/PerformanceUpdated.php index a23d7130f..355fe2f91 100644 --- a/app/Events/Wiki/Song/Performance/PerformanceUpdated.php +++ b/app/Events/Wiki/Song/Performance/PerformanceUpdated.php @@ -19,7 +19,7 @@ use Illuminate\Database\Eloquent\Relations\MorphTo; * * @extends WikiUpdatedEvent */ -class PerformanceUpdated extends WikiUpdatedEvent implements UpdateRelatedIndicesEvent, SyncArtistSongEvent +class PerformanceUpdated extends WikiUpdatedEvent implements SyncArtistSongEvent, UpdateRelatedIndicesEvent { /** * Create a new event instance. @@ -63,9 +63,9 @@ class PerformanceUpdated extends WikiUpdatedEvent implements UpdateRelatedIndice Performance::RELATION_ARTIST => function (MorphTo $morphTo) { $morphTo->morphWith([ Artist::class => [], - Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER] + Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER], ]); - } + }, ]); if ($performance->isMembership()) { diff --git a/app/Events/Wiki/Video/VideoThrottled.php b/app/Events/Wiki/Video/VideoThrottled.php index bf4b13c75..a61936d8e 100644 --- a/app/Events/Wiki/Video/VideoThrottled.php +++ b/app/Events/Wiki/Video/VideoThrottled.php @@ -27,9 +27,7 @@ class VideoThrottled implements DiscordMessageEvent * @param Video $video * @param string $user */ - public function __construct(protected Video $video, protected string $user) - { - } + public function __construct(protected Video $video, protected string $user) {} /** * Get Discord message payload. diff --git a/app/Filament/Actions/Base/AttachAction.php b/app/Filament/Actions/Base/AttachAction.php index ba2caa37d..d1916b453 100644 --- a/app/Filament/Actions/Base/AttachAction.php +++ b/app/Filament/Actions/Base/AttachAction.php @@ -35,7 +35,7 @@ class AttachAction extends DefaultAttachAction parent::setUp(); $this->visible(function (BaseRelationManager $livewire) { - if (!$livewire->getRelationship() instanceof BelongsToMany) { + if (! $livewire->getRelationship() instanceof BelongsToMany) { return false; } @@ -92,6 +92,6 @@ class AttachAction extends DefaultAttachAction */ private function shouldShowCreateOption(string $model): bool { - return !($model === Image::class || $model === ExternalResource::class); + return ! ($model === Image::class || $model === ExternalResource::class); } } diff --git a/app/Filament/Actions/Base/CreateAction.php b/app/Filament/Actions/Base/CreateAction.php index 2f7b36438..08d803331 100644 --- a/app/Filament/Actions/Base/CreateAction.php +++ b/app/Filament/Actions/Base/CreateAction.php @@ -53,6 +53,7 @@ class CreateAction extends DefaultCreateAction if ($livewire instanceof ResourceRelationManager) { /** @var User $user */ $user = Auth::user(); + return $user->hasRole(Role::ADMIN->value); } diff --git a/app/Filament/Actions/Base/DetachAction.php b/app/Filament/Actions/Base/DetachAction.php index 139e93a15..357a10003 100644 --- a/app/Filament/Actions/Base/DetachAction.php +++ b/app/Filament/Actions/Base/DetachAction.php @@ -32,8 +32,8 @@ class DetachAction extends DefaultDetachAction $this->visible(function (mixed $livewire) { if ( - !($livewire instanceof BaseRelationManager) - || !($livewire->getRelationship() instanceof BelongsToMany) + ! ($livewire instanceof BaseRelationManager) + || ! ($livewire->getRelationship() instanceof BelongsToMany) ) { return false; } diff --git a/app/Filament/Actions/BaseAction.php b/app/Filament/Actions/BaseAction.php index 228debb84..06e2a34e3 100644 --- a/app/Filament/Actions/BaseAction.php +++ b/app/Filament/Actions/BaseAction.php @@ -40,4 +40,4 @@ abstract class BaseAction extends Action $this->modalWidth(MaxWidth::FourExtraLarge); } -} \ No newline at end of file +} diff --git a/app/Filament/Actions/Models/Auth/User/GivePermissionAction.php b/app/Filament/Actions/Models/Auth/User/GivePermissionAction.php index 0e7dbc030..bed195a93 100644 --- a/app/Filament/Actions/Models/Auth/User/GivePermissionAction.php +++ b/app/Filament/Actions/Models/Auth/User/GivePermissionAction.php @@ -6,6 +6,7 @@ namespace App\Filament\Actions\Models\Auth\User; use App\Concerns\Filament\Actions\Models\Auth\User\GivePermissionActionTrait; use App\Filament\Actions\BaseAction; + /** * Class GivePermissionAction. */ diff --git a/app/Filament/Components/Columns/BelongsToColumn.php b/app/Filament/Components/Columns/BelongsToColumn.php index f72183124..075b28009 100644 --- a/app/Filament/Components/Columns/BelongsToColumn.php +++ b/app/Filament/Components/Columns/BelongsToColumn.php @@ -29,11 +29,11 @@ class BelongsToColumn extends TextColumn */ public static function make(string $relation, ?string $resource = null, ?bool $shouldUseModelName = false): static { - if (!is_string($resource)) { + if (! is_string($resource)) { throw new InvalidArgumentException('The resource must be specified.'); } - if (!(($resource = new $resource) instanceof BaseResource)) { + if (! (($resource = new $resource) instanceof BaseResource)) { throw new InvalidArgumentException('The resource must instanceof a BaseResource.'); } @@ -64,7 +64,9 @@ class BelongsToColumn extends TextColumn /** @var (Model&Nameable)|null $related */ $related = $record->$relation; - if ($related === null) return null; + if ($related === null) { + return null; + } $this->formatStateUsing(function () use ($related) { $name = $this->shouldUseModelName @@ -72,6 +74,7 @@ class BelongsToColumn extends TextColumn : $this->resource->getRecordTitle($related); $nameLimited = Str::limit($name, $this->getCharacterLimit() ?? 100); + return "

{$nameLimited}

"; }); @@ -83,7 +86,9 @@ class BelongsToColumn extends TextColumn /** @var (Model&Nameable)|null $related */ $related = $record->$relation; - if ($related === null) return null; + if ($related === null) { + return null; + } return $this->shouldUseModelName ? $related->getName() diff --git a/app/Filament/Components/Columns/TextColumn.php b/app/Filament/Components/Columns/TextColumn.php index 629e0746e..ab012e3c0 100644 --- a/app/Filament/Components/Columns/TextColumn.php +++ b/app/Filament/Components/Columns/TextColumn.php @@ -24,4 +24,4 @@ class TextColumn extends ColumnsTextColumn ->copyMessage(__('filament.actions.base.copied')) ->icon(__('filament-icons.actions.base.copied')); } -} \ No newline at end of file +} diff --git a/app/Filament/Components/Fields/BelongsTo.php b/app/Filament/Components/Fields/BelongsTo.php index c6b625067..6e4923fdc 100644 --- a/app/Filament/Components/Fields/BelongsTo.php +++ b/app/Filament/Components/Fields/BelongsTo.php @@ -35,7 +35,7 @@ class BelongsTo extends ComponentsSelect $model = $resource->getModel(); $this->label($resource->getModelLabel()); - if (!empty($this->relation)) { + if (! empty($this->relation)) { $this->relationship($this->relation, $resource->getRecordTitleAttribute()); } @@ -118,6 +118,7 @@ class BelongsTo extends ComponentsSelect return $this ->getSearchResultsUsing(function (string $search) use ($model, $eagerLoads) { $search = $this->escapeReservedChars($search); + /** @phpstan-ignore-next-line */ return $model::search($search) ->query(fn (Builder $query) => $query->with($eagerLoads)) @@ -162,7 +163,7 @@ class BelongsTo extends ComponentsSelect * @param string $search * @return string */ - public function escapeReservedChars(string $search) : string + public function escapeReservedChars(string $search): string { return preg_replace( [ diff --git a/app/Filament/Components/Fields/Select.php b/app/Filament/Components/Fields/Select.php index 8f2f79de6..572f37b40 100644 --- a/app/Filament/Components/Fields/Select.php +++ b/app/Filament/Components/Fields/Select.php @@ -32,11 +32,11 @@ class Select extends ComponentsSelect ->getOptionLabelUsing(fn ($state) => BelongsTo::getSearchLabelWithBlade($model::find($state))) ->getSearchResultsUsing(function (string $search) use ($livewire, $model, $loadRelation) { $search = $this->escapeReservedChars($search); + /** @phpstan-ignore-next-line */ return $model::search($search) ->query(function (Builder $query) use ($livewire) { - - if (!($livewire instanceof BaseRelationManager) + if (! ($livewire instanceof BaseRelationManager) ||($livewire->getTable()->allowsDuplicates())) { return; } @@ -61,7 +61,7 @@ class Select extends ComponentsSelect * @param string $search * @return string */ - public function escapeReservedChars(string $search) : string + public function escapeReservedChars(string $search): string { return preg_replace( [ @@ -75,4 +75,4 @@ class Select extends ComponentsSelect $search ); } -} \ No newline at end of file +} diff --git a/app/Filament/Components/Filters/CheckboxFilter.php b/app/Filament/Components/Filters/CheckboxFilter.php index 68484be63..a47c4a7d3 100644 --- a/app/Filament/Components/Filters/CheckboxFilter.php +++ b/app/Filament/Components/Filters/CheckboxFilter.php @@ -24,4 +24,4 @@ class CheckboxFilter extends Filter $this->checkbox(); $this->query(fn (Builder $query): Builder => $query->where($this->getName(), true)); } -} \ No newline at end of file +} diff --git a/app/Filament/Components/Filters/DateFilter.php b/app/Filament/Components/Filters/DateFilter.php index 5a8ae35b0..57378a7a8 100644 --- a/app/Filament/Components/Filters/DateFilter.php +++ b/app/Filament/Components/Filters/DateFilter.php @@ -59,7 +59,7 @@ class DateFilter extends Filter ->native(false) ->required(), ]), - ]) + ]), ]; } diff --git a/app/Filament/Components/Filters/NumberFilter.php b/app/Filament/Components/Filters/NumberFilter.php index 875e9e6c6..e31678c9b 100644 --- a/app/Filament/Components/Filters/NumberFilter.php +++ b/app/Filament/Components/Filters/NumberFilter.php @@ -7,7 +7,6 @@ namespace App\Filament\Components\Filters; use App\Enums\Http\Api\Filter\ComparisonOperator; use Filament\Forms\Components\Fieldset; use Filament\Forms\Components\Grid; -use Filament\Forms\Components\Section; use Filament\Forms\Components\TextInput; use Filament\Tables\Filters\Filter; use Illuminate\Database\Eloquent\Builder; @@ -36,11 +35,11 @@ class NumberFilter extends Filter TextInput::make('from') ->label(__('filament.filters.base.from')) ->integer(), - + TextInput::make('to') ->label(__('filament.filters.base.to')) ->integer(), - ]) + ]), ]), ]; } @@ -64,4 +63,4 @@ class NumberFilter extends Filter fn (Builder $query, $value): Builder => $query->where($this->getName(), ComparisonOperator::LTE->value, $value), ); } -} \ No newline at end of file +} diff --git a/app/Filament/Components/Filters/TextFilter.php b/app/Filament/Components/Filters/TextFilter.php index dd06ae217..b34ee8c9f 100644 --- a/app/Filament/Components/Filters/TextFilter.php +++ b/app/Filament/Components/Filters/TextFilter.php @@ -40,4 +40,4 @@ class TextFilter extends Filter ? $query->where($this->getName(), Arr::get($data, $this->getName())) : $query; } -} \ No newline at end of file +} diff --git a/app/Filament/Components/Infolist/BelongsToEntry.php b/app/Filament/Components/Infolist/BelongsToEntry.php index fe383a1fc..808e6b88e 100644 --- a/app/Filament/Components/Infolist/BelongsToEntry.php +++ b/app/Filament/Components/Infolist/BelongsToEntry.php @@ -29,11 +29,11 @@ class BelongsToEntry extends TextEntry */ public static function make(string $relation, ?string $resource = null, ?bool $shouldUseModelName = false): static { - if (!is_string($resource)) { + if (! is_string($resource)) { throw new InvalidArgumentException('The resource must be specified.'); } - if (!(($resource = new $resource) instanceof BaseResource)) { + if (! (($resource = new $resource) instanceof BaseResource)) { throw new InvalidArgumentException('The resource must instanceof a BaseResource.'); } @@ -66,7 +66,9 @@ class BelongsToEntry extends TextEntry $related = $related->$relationPart; } - if ($related === null) return null; + if ($related === null) { + return null; + } $this->formatStateUsing(function () use ($related) { $name = $this->shouldUseModelName @@ -84,11 +86,13 @@ class BelongsToEntry extends TextEntry /** @var (Model&Nameable)|null $related */ $related = $record->$relation; - if ($related === null) return null; + if ($related === null) { + return null; + } return $this->shouldUseModelName ? $related->getName() : $this->resource->getRecordTitle($related); }); } -} \ No newline at end of file +} diff --git a/app/Filament/Components/Infolist/KeyValueThreeEntry.php b/app/Filament/Components/Infolist/KeyValueThreeEntry.php index 3ef3f7f0a..c5c8348a9 100644 --- a/app/Filament/Components/Infolist/KeyValueThreeEntry.php +++ b/app/Filament/Components/Infolist/KeyValueThreeEntry.php @@ -49,7 +49,7 @@ class KeyValueThreeEntry extends Entry /** * Set the label for the left column. * - * @param string|Closure|null $label + * @param string|Closure|null $label * @return static */ public function leftLabel(string|Closure|null $label): static @@ -62,7 +62,7 @@ class KeyValueThreeEntry extends Entry /** * Set the label for the middle column. * - * @param string|Closure|null $label + * @param string|Closure|null $label * @return static */ public function middleLabel(string|Closure|null $label): static @@ -75,7 +75,7 @@ class KeyValueThreeEntry extends Entry /** * Set the label for the right column. * - * @param string|Closure|null $label + * @param string|Closure|null $label * @return static */ public function rightLabel(string|Closure|null $label): static diff --git a/app/Filament/Components/Infolist/TextEntry.php b/app/Filament/Components/Infolist/TextEntry.php index 88a04c3b3..3f5ce042b 100644 --- a/app/Filament/Components/Infolist/TextEntry.php +++ b/app/Filament/Components/Infolist/TextEntry.php @@ -24,4 +24,4 @@ class TextEntry extends ComponentsTextEntry ->copyMessage(__('filament.actions.base.copied')) ->icon(__('filament-icons.actions.base.copied')); } -} \ No newline at end of file +} diff --git a/app/Filament/Dashboards/AdminDashboard.php b/app/Filament/Dashboards/AdminDashboard.php index 0562643d2..68264acc7 100644 --- a/app/Filament/Dashboards/AdminDashboard.php +++ b/app/Filament/Dashboards/AdminDashboard.php @@ -54,7 +54,7 @@ class AdminDashboard extends BaseDashboard */ public static function getNavigationIcon(): string { - return __('filament-icons.dashboards.admin');; + return __('filament-icons.dashboards.admin'); } /** @@ -71,4 +71,4 @@ class AdminDashboard extends BaseDashboard PlaylistTrackChart::class, ]; } -} \ No newline at end of file +} diff --git a/app/Filament/Dashboards/BaseDashboard.php b/app/Filament/Dashboards/BaseDashboard.php index 5c2abf2a0..955f3e54a 100644 --- a/app/Filament/Dashboards/BaseDashboard.php +++ b/app/Filament/Dashboards/BaseDashboard.php @@ -30,4 +30,4 @@ abstract class BaseDashboard extends Dashboard { return static::getNavigationLabel(); } -} \ No newline at end of file +} diff --git a/app/Filament/Dashboards/DeveloperDashboard.php b/app/Filament/Dashboards/DeveloperDashboard.php index 87ee2a3d1..2745b3079 100644 --- a/app/Filament/Dashboards/DeveloperDashboard.php +++ b/app/Filament/Dashboards/DeveloperDashboard.php @@ -51,7 +51,7 @@ class DeveloperDashboard extends BaseDashboard */ public static function getNavigationIcon(): string { - return __('filament-icons.dashboards.dev');; + return __('filament-icons.dashboards.dev'); } /** @@ -65,4 +65,4 @@ class DeveloperDashboard extends BaseDashboard ExceptionsTableWidget::class, ]; } -} \ No newline at end of file +} diff --git a/app/Filament/Dashboards/WikiDashboard.php b/app/Filament/Dashboards/WikiDashboard.php index 1518a1fd5..2d60c3ce9 100644 --- a/app/Filament/Dashboards/WikiDashboard.php +++ b/app/Filament/Dashboards/WikiDashboard.php @@ -41,7 +41,7 @@ class WikiDashboard extends BaseDashboard */ public static function getNavigationIcon(): string { - return __('filament-icons.dashboards.wiki');; + return __('filament-icons.dashboards.wiki'); } /** @@ -58,4 +58,4 @@ class WikiDashboard extends BaseDashboard VideoChart::class, ]; } -} \ No newline at end of file +} diff --git a/app/Filament/HeaderActions/BaseHeaderAction.php b/app/Filament/HeaderActions/BaseHeaderAction.php index c64366068..b1704b9a1 100644 --- a/app/Filament/HeaderActions/BaseHeaderAction.php +++ b/app/Filament/HeaderActions/BaseHeaderAction.php @@ -40,4 +40,4 @@ abstract class BaseHeaderAction extends Action $this->modalWidth(MaxWidth::FourExtraLarge); } -} \ No newline at end of file +} diff --git a/app/Filament/HeaderActions/Models/List/External/SyncExternalProfileHeaderAction.php b/app/Filament/HeaderActions/Models/List/External/SyncExternalProfileHeaderAction.php index 7ef2c0d54..e65000e62 100644 --- a/app/Filament/HeaderActions/Models/List/External/SyncExternalProfileHeaderAction.php +++ b/app/Filament/HeaderActions/Models/List/External/SyncExternalProfileHeaderAction.php @@ -29,4 +29,4 @@ class SyncExternalProfileHeaderAction extends BaseHeaderAction $this->action(fn (ExternalProfile $record, SyncExternalProfileAction $sync) => $sync->handle($record)); } -} \ No newline at end of file +} diff --git a/app/Filament/HeaderActions/Models/List/FixPlaylistHeaderAction.php b/app/Filament/HeaderActions/Models/List/FixPlaylistHeaderAction.php index b33b9f4b2..50823d669 100644 --- a/app/Filament/HeaderActions/Models/List/FixPlaylistHeaderAction.php +++ b/app/Filament/HeaderActions/Models/List/FixPlaylistHeaderAction.php @@ -28,4 +28,4 @@ class FixPlaylistHeaderAction extends BaseHeaderAction $this->action(fn (Playlist $record, FixPlaylistAction $fix) => $fix->handle($record)); } -} \ No newline at end of file +} diff --git a/app/Filament/Providers/GlobalSearchScoutProvider.php b/app/Filament/Providers/GlobalSearchScoutProvider.php index 534c1cdd8..877973a75 100644 --- a/app/Filament/Providers/GlobalSearchScoutProvider.php +++ b/app/Filament/Providers/GlobalSearchScoutProvider.php @@ -5,11 +5,11 @@ declare(strict_types=1); namespace App\Filament\Providers; use App\Filament\Resources\BaseResource; +use Elastic\ScoutDriverPlus\Searchable; use Filament\Facades\Filament; use Filament\GlobalSearch\Contracts\GlobalSearchProvider; use Filament\GlobalSearch\GlobalSearchResult; use Filament\GlobalSearch\GlobalSearchResults; -use Elastic\ScoutDriverPlus\Searchable; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Laravel\Scout\Builder as ScoutBuilder; @@ -30,8 +30,8 @@ class GlobalSearchScoutProvider implements GlobalSearchProvider $builder = GlobalSearchResults::make(); foreach (Filament::getResources() as $resource) { - /** @var class-string $resource*/ - if (!$resource::canGloballySearch() || !in_array(Searchable::class, class_uses_recursive($resource::getModel()))) { + /** @var class-string $resource */ + if (! $resource::canGloballySearch() || ! in_array(Searchable::class, class_uses_recursive($resource::getModel()))) { continue; } @@ -59,7 +59,7 @@ class GlobalSearchScoutProvider implements GlobalSearchProvider }) ->filter(); - if (!$resourceResults->count()) { + if (! $resourceResults->count()) { continue; } @@ -75,7 +75,7 @@ class GlobalSearchScoutProvider implements GlobalSearchProvider * @param string $search * @return string */ - public function escapeReservedChars(string $search) : string + public function escapeReservedChars(string $search): string { return preg_replace( [ @@ -89,4 +89,4 @@ class GlobalSearchScoutProvider implements GlobalSearchProvider $search ); } -} \ No newline at end of file +} diff --git a/app/Filament/RelationManagers/Auth/PermissionRelationManager.php b/app/Filament/RelationManagers/Auth/PermissionRelationManager.php index 918e1c8ad..424c5462f 100644 --- a/app/Filament/RelationManagers/Auth/PermissionRelationManager.php +++ b/app/Filament/RelationManagers/Auth/PermissionRelationManager.php @@ -44,7 +44,7 @@ abstract class PermissionRelationManager extends BaseRelationManager ->modelLabel(PermissionResource::getLabel()) ->recordTitleAttribute(Permission::ATTRIBUTE_NAME) ->columns(PermissionResource::table($table)->getColumns()) - ->defaultSort(Permission::TABLE . '.' . Permission::ATTRIBUTE_ID, 'desc') + ->defaultSort(Permission::TABLE.'.'.Permission::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Auth/RoleRelationManager.php b/app/Filament/RelationManagers/Auth/RoleRelationManager.php index c7f553de7..50818998e 100644 --- a/app/Filament/RelationManagers/Auth/RoleRelationManager.php +++ b/app/Filament/RelationManagers/Auth/RoleRelationManager.php @@ -45,7 +45,7 @@ abstract class RoleRelationManager extends BaseRelationManager ->modelLabel(RoleResource::getLabel()) ->recordTitleAttribute(Role::ATTRIBUTE_NAME) ->columns(RoleResource::table($table)->getColumns()) - ->defaultSort(Role::TABLE . '.' . Role::ATTRIBUTE_ID, 'desc') + ->defaultSort(Role::TABLE.'.'.Role::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Auth/UserRelationManager.php b/app/Filament/RelationManagers/Auth/UserRelationManager.php index 67b11525f..4756da94f 100644 --- a/app/Filament/RelationManagers/Auth/UserRelationManager.php +++ b/app/Filament/RelationManagers/Auth/UserRelationManager.php @@ -44,7 +44,7 @@ abstract class UserRelationManager extends BaseRelationManager ->modelLabel(UserResource::getLabel()) ->recordTitleAttribute(User::ATTRIBUTE_NAME) ->columns(UserResource::table($table)->getColumns()) - ->defaultSort(User::TABLE . '.' . User::ATTRIBUTE_ID, 'desc') + ->defaultSort(User::TABLE.'.'.User::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/BaseRelationManager.php b/app/Filament/RelationManagers/BaseRelationManager.php index f1595b2f9..2d174b065 100644 --- a/app/Filament/RelationManagers/BaseRelationManager.php +++ b/app/Filament/RelationManagers/BaseRelationManager.php @@ -52,21 +52,27 @@ abstract class BaseRelationManager extends RelationManager ...$table->getColumns(), TextColumn::make(BasePivot::ATTRIBUTE_CREATED_AT) ->label(__('filament.fields.base.attached_at')) - ->hidden(fn ($livewire) => !($livewire->getRelationship() instanceof BelongsToMany)) + ->hidden(fn ($livewire) => ! ($livewire->getRelationship() instanceof BelongsToMany)) ->formatStateUsing(function (Model $record) { $pivot = current($record->getRelations()); $createdAtField = Arr::get($pivot->getAttributes(), BasePivot::ATTRIBUTE_CREATED_AT); - if (!$createdAtField) return '-'; + if (! $createdAtField) { + return '-'; + } + return new DateTime($createdAtField)->format('M j, Y H:i:s'); }), TextColumn::make(BasePivot::ATTRIBUTE_UPDATED_AT) ->label(__('filament.fields.base.updated_at')) - ->hidden(fn ($livewire) => !($livewire->getRelationship() instanceof BelongsToMany)) + ->hidden(fn ($livewire) => ! ($livewire->getRelationship() instanceof BelongsToMany)) ->formatStateUsing(function (Model $record) { $pivot = current($record->getRelations()); $updatedAtField = Arr::get($pivot->getAttributes(), BasePivot::ATTRIBUTE_UPDATED_AT); - if (!$updatedAtField) return '-'; + if (! $updatedAtField) { + return '-'; + } + return new DateTime($updatedAtField)->format('M j, Y H:i:s'); }), ]) diff --git a/app/Filament/RelationManagers/List/External/ExternalEntryRelationManager.php b/app/Filament/RelationManagers/List/External/ExternalEntryRelationManager.php index 0b42927d8..cf998003b 100644 --- a/app/Filament/RelationManagers/List/External/ExternalEntryRelationManager.php +++ b/app/Filament/RelationManagers/List/External/ExternalEntryRelationManager.php @@ -44,7 +44,7 @@ abstract class ExternalEntryRelationManager extends BaseRelationManager ->modelLabel(ExternalEntryResource::getLabel()) ->recordTitleAttribute(ExternalEntry::ATTRIBUTE_ID) ->columns(ExternalEntryResource::table($table)->getColumns()) - ->defaultSort(ExternalEntry::TABLE . '.' . ExternalEntry::ATTRIBUTE_ID, 'desc') + ->defaultSort(ExternalEntry::TABLE.'.'.ExternalEntry::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/List/ExternalProfileRelationManager.php b/app/Filament/RelationManagers/List/ExternalProfileRelationManager.php index 6f5b8152e..3527b02f4 100644 --- a/app/Filament/RelationManagers/List/ExternalProfileRelationManager.php +++ b/app/Filament/RelationManagers/List/ExternalProfileRelationManager.php @@ -44,7 +44,7 @@ abstract class ExternalProfileRelationManager extends BaseRelationManager ->modelLabel(ExternalProfileResource::getLabel()) ->recordTitleAttribute(ExternalProfile::ATTRIBUTE_NAME) ->columns(ExternalProfileResource::table($table)->getColumns()) - ->defaultSort(ExternalProfile::TABLE . '.' . ExternalProfile::ATTRIBUTE_ID, 'desc') + ->defaultSort(ExternalProfile::TABLE.'.'.ExternalProfile::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/List/Playlist/TrackRelationManager.php b/app/Filament/RelationManagers/List/Playlist/TrackRelationManager.php index 5c8cefdae..ec209ff3e 100644 --- a/app/Filament/RelationManagers/List/Playlist/TrackRelationManager.php +++ b/app/Filament/RelationManagers/List/Playlist/TrackRelationManager.php @@ -44,7 +44,7 @@ abstract class TrackRelationManager extends BaseRelationManager ->modelLabel(TrackResource::getLabel()) ->recordTitleAttribute(PlaylistTrack::ATTRIBUTE_HASHID) ->columns(TrackResource::table($table)->getColumns()) - ->defaultSort(PlaylistTrack::TABLE . '.' . PlaylistTrack::ATTRIBUTE_ID, 'desc') + ->defaultSort(PlaylistTrack::TABLE.'.'.PlaylistTrack::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/List/PlaylistRelationManager.php b/app/Filament/RelationManagers/List/PlaylistRelationManager.php index 32c1937cd..5883417ae 100644 --- a/app/Filament/RelationManagers/List/PlaylistRelationManager.php +++ b/app/Filament/RelationManagers/List/PlaylistRelationManager.php @@ -44,7 +44,7 @@ abstract class PlaylistRelationManager extends BaseRelationManager ->modelLabel(PlaylistResource::getLabel()) ->recordTitleAttribute(Playlist::ATTRIBUTE_NAME) ->columns(PlaylistResource::table($table)->getColumns()) - ->defaultSort(Playlist::TABLE . '.' . Playlist::ATTRIBUTE_ID, 'desc') + ->defaultSort(Playlist::TABLE.'.'.Playlist::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/User/ReportStepRelationManager.php b/app/Filament/RelationManagers/User/ReportStepRelationManager.php index 2b98d461b..d86621b75 100644 --- a/app/Filament/RelationManagers/User/ReportStepRelationManager.php +++ b/app/Filament/RelationManagers/User/ReportStepRelationManager.php @@ -44,7 +44,7 @@ abstract class ReportStepRelationManager extends BaseRelationManager ->modelLabel(ReportStepResource::getLabel()) ->recordTitleAttribute(ReportStepResource::getRecordTitleAttribute()) ->columns(ReportStepResource::table($table)->getColumns()) - ->defaultSort(ReportStep::TABLE . '.' . ReportStep::ATTRIBUTE_ID, 'desc') + ->defaultSort(ReportStep::TABLE.'.'.ReportStep::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/Anime/SynonymRelationManager.php b/app/Filament/RelationManagers/Wiki/Anime/SynonymRelationManager.php index 52880df98..024bffe89 100644 --- a/app/Filament/RelationManagers/Wiki/Anime/SynonymRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/Anime/SynonymRelationManager.php @@ -44,7 +44,7 @@ abstract class SynonymRelationManager extends BaseRelationManager ->modelLabel(SynonymResource::getLabel()) ->recordTitleAttribute(AnimeSynonym::ATTRIBUTE_TEXT) ->columns(SynonymResource::table($table)->getColumns()) - ->defaultSort(AnimeSynonym::TABLE . '.' . AnimeSynonym::ATTRIBUTE_ID, 'desc') + ->defaultSort(AnimeSynonym::TABLE.'.'.AnimeSynonym::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/Anime/Theme/EntryRelationManager.php b/app/Filament/RelationManagers/Wiki/Anime/Theme/EntryRelationManager.php index 1e11bc4b0..695996a72 100644 --- a/app/Filament/RelationManagers/Wiki/Anime/Theme/EntryRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/Anime/Theme/EntryRelationManager.php @@ -44,7 +44,7 @@ abstract class EntryRelationManager extends BaseRelationManager ->modelLabel(EntryResource::getLabel()) ->recordTitleAttribute(AnimeThemeEntry::ATTRIBUTE_VERSION) ->columns(EntryResource::table($table)->getColumns()) - ->defaultSort(AnimeThemeEntry::TABLE . '.' . AnimeThemeEntry::ATTRIBUTE_ID, 'desc') + ->defaultSort(AnimeThemeEntry::TABLE.'.'.AnimeThemeEntry::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/Anime/ThemeRelationManager.php b/app/Filament/RelationManagers/Wiki/Anime/ThemeRelationManager.php index fb1fd826b..c9318d782 100644 --- a/app/Filament/RelationManagers/Wiki/Anime/ThemeRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/Anime/ThemeRelationManager.php @@ -44,7 +44,7 @@ abstract class ThemeRelationManager extends BaseRelationManager ->modelLabel(ThemeResource::getLabel()) ->recordTitle(fn ($record) => $record->getName()) ->columns(ThemeResource::table($table)->getColumns()) - ->defaultSort(AnimeTheme::TABLE . '.' . AnimeTheme::ATTRIBUTE_ID, 'desc') + ->defaultSort(AnimeTheme::TABLE.'.'.AnimeTheme::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/AnimeRelationManager.php b/app/Filament/RelationManagers/Wiki/AnimeRelationManager.php index 208beb9df..037f9b35c 100644 --- a/app/Filament/RelationManagers/Wiki/AnimeRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/AnimeRelationManager.php @@ -44,7 +44,7 @@ abstract class AnimeRelationManager extends BaseRelationManager ->modelLabel(AnimeResource::getLabel()) ->recordTitleAttribute(Anime::ATTRIBUTE_NAME) ->columns(AnimeResource::table($table)->getColumns()) - ->defaultSort(Anime::TABLE . '.' . Anime::ATTRIBUTE_ID, 'desc') + ->defaultSort(Anime::TABLE.'.'.Anime::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/ArtistRelationManager.php b/app/Filament/RelationManagers/Wiki/ArtistRelationManager.php index dc667faf7..a77d9605c 100644 --- a/app/Filament/RelationManagers/Wiki/ArtistRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/ArtistRelationManager.php @@ -44,7 +44,7 @@ abstract class ArtistRelationManager extends BaseRelationManager ->modelLabel(ArtistResource::getLabel()) ->recordTitleAttribute(Artist::ATTRIBUTE_NAME) ->columns(ArtistResource::table($table)->getColumns()) - ->defaultSort(Artist::TABLE . '.' . Artist::ATTRIBUTE_ID, 'desc') + ->defaultSort(Artist::TABLE.'.'.Artist::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/ImageRelationManager.php b/app/Filament/RelationManagers/Wiki/ImageRelationManager.php index a491efe89..dffeecffe 100644 --- a/app/Filament/RelationManagers/Wiki/ImageRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/ImageRelationManager.php @@ -45,7 +45,7 @@ abstract class ImageRelationManager extends BaseRelationManager ->modelLabel(ImageResource::getLabel()) ->recordTitleAttribute(Image::ATTRIBUTE_PATH) ->columns(ImageResource::table($table)->getColumns()) - ->defaultSort(Image::TABLE . '.' . Image::ATTRIBUTE_ID, 'desc') + ->defaultSort(Image::TABLE.'.'.Image::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/ResourceRelationManager.php b/app/Filament/RelationManagers/Wiki/ResourceRelationManager.php index b94f647ec..f9a2c9580 100644 --- a/app/Filament/RelationManagers/Wiki/ResourceRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/ResourceRelationManager.php @@ -61,7 +61,7 @@ abstract class ResourceRelationManager extends BaseRelationManager ->modelLabel(ExternalResourceResource::getLabel()) ->recordTitleAttribute(ExternalResource::ATTRIBUTE_LINK) ->columns(ExternalResourceResource::table($table)->getColumns()) - ->defaultSort(ExternalResource::TABLE . '.' . ExternalResource::ATTRIBUTE_ID, 'desc') + ->defaultSort(ExternalResource::TABLE.'.'.ExternalResource::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/SeriesRelationManager.php b/app/Filament/RelationManagers/Wiki/SeriesRelationManager.php index 0aee03a27..aae763b15 100644 --- a/app/Filament/RelationManagers/Wiki/SeriesRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/SeriesRelationManager.php @@ -44,7 +44,7 @@ abstract class SeriesRelationManager extends BaseRelationManager ->modelLabel(SeriesResource::getLabel()) ->recordTitleAttribute(Series::ATTRIBUTE_NAME) ->columns(SeriesResource::table($table)->getColumns()) - ->defaultSort(Series::TABLE . '.' . Series::ATTRIBUTE_ID, 'desc') + ->defaultSort(Series::TABLE.'.'.Series::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/Song/PerformanceRelationManager.php b/app/Filament/RelationManagers/Wiki/Song/PerformanceRelationManager.php index cb5f69df7..4536ce61c 100644 --- a/app/Filament/RelationManagers/Wiki/Song/PerformanceRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/Song/PerformanceRelationManager.php @@ -44,7 +44,7 @@ abstract class PerformanceRelationManager extends BaseRelationManager ->modelLabel(PerformanceResource::getLabel()) ->recordTitleAttribute(Performance::ATTRIBUTE_ID) ->columns(PerformanceResource::table($table)->getColumns()) - ->defaultSort(Performance::TABLE . '.' . Performance::ATTRIBUTE_ID, 'desc') + ->defaultSort(Performance::TABLE.'.'.Performance::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/SongRelationManager.php b/app/Filament/RelationManagers/Wiki/SongRelationManager.php index 0e6a8aaf0..4898c030a 100644 --- a/app/Filament/RelationManagers/Wiki/SongRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/SongRelationManager.php @@ -44,7 +44,7 @@ abstract class SongRelationManager extends BaseRelationManager ->modelLabel(SongResource::getLabel()) ->recordTitleAttribute(Song::ATTRIBUTE_TITLE) ->columns(SongResource::table($table)->getColumns()) - ->defaultSort(Song::TABLE . '.' . Song::ATTRIBUTE_ID, 'desc') + ->defaultSort(Song::TABLE.'.'.Song::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/StudioRelationManager.php b/app/Filament/RelationManagers/Wiki/StudioRelationManager.php index 51167b686..15e99ded4 100644 --- a/app/Filament/RelationManagers/Wiki/StudioRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/StudioRelationManager.php @@ -44,7 +44,7 @@ abstract class StudioRelationManager extends BaseRelationManager ->modelLabel(StudioResource::getLabel()) ->recordTitleAttribute(Studio::ATTRIBUTE_NAME) ->columns(StudioResource::table($table)->getColumns()) - ->defaultSort(Studio::TABLE . '.' . Studio::ATTRIBUTE_ID, 'desc') + ->defaultSort(Studio::TABLE.'.'.Studio::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/Video/ScriptRelationManager.php b/app/Filament/RelationManagers/Wiki/Video/ScriptRelationManager.php index ef7ce1df1..608d4f037 100644 --- a/app/Filament/RelationManagers/Wiki/Video/ScriptRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/Video/ScriptRelationManager.php @@ -44,7 +44,7 @@ abstract class ScriptRelationManager extends BaseRelationManager ->modelLabel(ScriptResource::getLabel()) ->recordTitleAttribute(VideoScript::ATTRIBUTE_PATH) ->columns(ScriptResource::table($table)->getColumns()) - ->defaultSort(VideoScript::TABLE . '.' . VideoScript::ATTRIBUTE_ID, 'desc') + ->defaultSort(VideoScript::TABLE.'.'.VideoScript::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/RelationManagers/Wiki/VideoRelationManager.php b/app/Filament/RelationManagers/Wiki/VideoRelationManager.php index b0cb32827..e93942efb 100644 --- a/app/Filament/RelationManagers/Wiki/VideoRelationManager.php +++ b/app/Filament/RelationManagers/Wiki/VideoRelationManager.php @@ -44,7 +44,7 @@ abstract class VideoRelationManager extends BaseRelationManager ->modelLabel(VideoResource::getLabel()) ->recordTitleAttribute(Video::ATTRIBUTE_FILENAME) ->columns(VideoResource::table($table)->getColumns()) - ->defaultSort(Video::TABLE . '.' . Video::ATTRIBUTE_ID, 'desc') + ->defaultSort(Video::TABLE.'.'.Video::ATTRIBUTE_ID, 'desc') ); } diff --git a/app/Filament/Resources/Admin/ActionLog.php b/app/Filament/Resources/Admin/ActionLog.php index 4a0a97bb9..3b4093c8b 100644 --- a/app/Filament/Resources/Admin/ActionLog.php +++ b/app/Filament/Resources/Admin/ActionLog.php @@ -10,7 +10,6 @@ use App\Filament\Components\Columns\BelongsToColumn; use App\Filament\Components\Columns\TextColumn; use App\Filament\Components\Filters\DateFilter; use App\Filament\Components\Infolist\BelongsToEntry; -use App\Filament\Components\Infolist\KeyValueThreeEntry; use App\Filament\Components\Infolist\TextEntry; use App\Filament\Resources\Admin\ActionLog\Pages\ManageActionLogs; use App\Filament\Resources\Auth\User; @@ -23,7 +22,6 @@ use Filament\Forms\Components\KeyValue; use Filament\Forms\Components\Textarea; use Filament\Forms\Form; use Filament\Infolists\Components\KeyValueEntry; -use Filament\Infolists\Components\RepeatableEntry; use Filament\Infolists\Components\TextEntry\TextEntrySize; use Filament\Infolists\Infolist; use Filament\Tables\Filters\SelectFilter; @@ -179,7 +177,7 @@ class ActionLog extends BaseResource TextColumn::make(ActionLogModel::ATTRIBUTE_TARGET) ->label(__('filament.fields.action_log.target')) - ->formatStateUsing(fn ($state) => Str::headline(class_basename($state)) . ': ' . $state->getName()), + ->formatStateUsing(fn ($state) => Str::headline(class_basename($state)).': '.$state->getName()), TextColumn::make(ActionLogModel::ATTRIBUTE_STATUS) ->label(__('filament.fields.action_log.status')) @@ -216,7 +214,7 @@ class ActionLog extends BaseResource TextEntry::make(ActionLogModel::ATTRIBUTE_TARGET) ->label(__('filament.fields.action_log.target')) - ->formatStateUsing(fn ($state) => class_basename($state) . ': ' . $state->getName()), + ->formatStateUsing(fn ($state) => class_basename($state).': '.$state->getName()), TextEntry::make(ActionLogModel::ATTRIBUTE_STATUS) ->label(__('filament.fields.action_log.status')) @@ -357,6 +355,7 @@ class ActionLog extends BaseResource { /** @var UserModel $user */ $user = Filament::auth()->user(); + return $user->hasRole(Role::ADMIN->value); } diff --git a/app/Filament/Resources/Admin/ActionLog/Pages/ManageActionLogs.php b/app/Filament/Resources/Admin/ActionLog/Pages/ManageActionLogs.php index b72ac51ef..2f8b1e64d 100644 --- a/app/Filament/Resources/Admin/ActionLog/Pages/ManageActionLogs.php +++ b/app/Filament/Resources/Admin/ActionLog/Pages/ManageActionLogs.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Admin\ActionLog\Pages; -use App\Filament\Resources\Base\BaseManageResources; use App\Filament\Resources\Admin\ActionLog; +use App\Filament\Resources\Base\BaseManageResources; /** * Class ManageActionLogs. diff --git a/app/Filament/Resources/Admin/Announcement.php b/app/Filament/Resources/Admin/Announcement.php index be456a06f..700dfd55c 100644 --- a/app/Filament/Resources/Admin/Announcement.php +++ b/app/Filament/Resources/Admin/Announcement.php @@ -7,8 +7,8 @@ namespace App\Filament\Resources\Admin; use App\Filament\Components\Columns\TextColumn; use App\Filament\Components\Infolist\TextEntry; use App\Filament\Components\Infolist\TimestampSection; -use App\Filament\Resources\BaseResource; use App\Filament\Resources\Admin\Announcement\Pages\ManageAnnouncements; +use App\Filament\Resources\BaseResource; use App\Models\Admin\Announcement as AnnouncementModel; use Filament\Forms\Components\MarkdownEditor; use Filament\Forms\Form; diff --git a/app/Filament/Resources/Admin/Announcement/Pages/ManageAnnouncements.php b/app/Filament/Resources/Admin/Announcement/Pages/ManageAnnouncements.php index b27938226..b02ff60d2 100644 --- a/app/Filament/Resources/Admin/Announcement/Pages/ManageAnnouncements.php +++ b/app/Filament/Resources/Admin/Announcement/Pages/ManageAnnouncements.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Admin\Announcement\Pages; -use App\Filament\Resources\Base\BaseManageResources; use App\Filament\Resources\Admin\Announcement; +use App\Filament\Resources\Base\BaseManageResources; /** * Class ManageAnnouncements. diff --git a/app/Filament/Resources/Admin/Dump.php b/app/Filament/Resources/Admin/Dump.php index 89125f523..acfe5a1ee 100644 --- a/app/Filament/Resources/Admin/Dump.php +++ b/app/Filament/Resources/Admin/Dump.php @@ -7,18 +7,18 @@ namespace App\Filament\Resources\Admin; use App\Filament\Components\Columns\TextColumn; use App\Filament\Components\Infolist\TextEntry; use App\Filament\Components\Infolist\TimestampSection; -use App\Filament\Resources\BaseResource; use App\Filament\Resources\Admin\Dump\Pages\ManageDumps; +use App\Filament\Resources\BaseResource; use App\Filament\TableActions\Repositories\Storage\Admin\Dump\ReconcileDumpTableAction; use App\Filament\TableActions\Storage\Admin\DumpDocumentTableAction; use App\Filament\TableActions\Storage\Admin\DumpWikiTableAction; use App\Filament\TableActions\Storage\Admin\PruneDumpTableAction; use App\Models\Admin\Dump as DumpModel; -use Filament\Tables\Actions\ActionGroup; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; use Filament\Infolists\Components\Section; use Filament\Infolists\Infolist; +use Filament\Tables\Actions\ActionGroup; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Admin/Dump/Pages/ManageDumps.php b/app/Filament/Resources/Admin/Dump/Pages/ManageDumps.php index 1584874c6..6362ebd83 100644 --- a/app/Filament/Resources/Admin/Dump/Pages/ManageDumps.php +++ b/app/Filament/Resources/Admin/Dump/Pages/ManageDumps.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Admin\Dump\Pages; -use App\Filament\Resources\Base\BaseManageResources; use App\Filament\Resources\Admin\Dump; +use App\Filament\Resources\Base\BaseManageResources; /** * Class ManageDumps. diff --git a/app/Filament/Resources/Admin/Exception.php b/app/Filament/Resources/Admin/Exception.php index 289bc952f..fa20a98d4 100644 --- a/app/Filament/Resources/Admin/Exception.php +++ b/app/Filament/Resources/Admin/Exception.php @@ -79,7 +79,7 @@ class Exception extends ExceptionResource ]) ->actions([ ViewAction::make('view') - ->url(fn (ExceptionModel $record): string => ExceptionResource::getUrl('view', ['record' => $record])) + ->url(fn (ExceptionModel $record): string => ExceptionResource::getUrl('view', ['record' => $record])), ]) ->bulkActions([ BulkActionGroup::make([ @@ -98,6 +98,7 @@ class Exception extends ExceptionResource { /** @var User $user */ $user = Filament::auth()->user(); + return $user->hasRole(Role::ADMIN->value); } @@ -112,7 +113,7 @@ class Exception extends ExceptionResource { return [ 'index' => ListExceptions::route('/'), - 'view' => ViewException::route('/{record}') + 'view' => ViewException::route('/{record}'), ]; } } diff --git a/app/Filament/Resources/Admin/Feature.php b/app/Filament/Resources/Admin/Feature.php index 362208461..ee6ce677b 100644 --- a/app/Filament/Resources/Admin/Feature.php +++ b/app/Filament/Resources/Admin/Feature.php @@ -8,8 +8,8 @@ use App\Constants\FeatureConstants; use App\Filament\Components\Columns\TextColumn; use App\Filament\Components\Infolist\TextEntry; use App\Filament\Components\Infolist\TimestampSection; -use App\Filament\Resources\BaseResource; use App\Filament\Resources\Admin\Feature\Pages\ManageFeatures; +use App\Filament\Resources\BaseResource; use App\Models\Admin\Feature as FeatureModel; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; diff --git a/app/Filament/Resources/Admin/Feature/Pages/ManageFeatures.php b/app/Filament/Resources/Admin/Feature/Pages/ManageFeatures.php index 97e967ad5..b17106144 100644 --- a/app/Filament/Resources/Admin/Feature/Pages/ManageFeatures.php +++ b/app/Filament/Resources/Admin/Feature/Pages/ManageFeatures.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Admin\Feature\Pages; -use App\Filament\Resources\Base\BaseManageResources; use App\Filament\Resources\Admin\Feature; +use App\Filament\Resources\Base\BaseManageResources; /** * Class ManageFeatures. diff --git a/app/Filament/Resources/Admin/FeaturedTheme.php b/app/Filament/Resources/Admin/FeaturedTheme.php index ad75819cf..6aaf84369 100644 --- a/app/Filament/Resources/Admin/FeaturedTheme.php +++ b/app/Filament/Resources/Admin/FeaturedTheme.php @@ -4,7 +4,6 @@ declare(strict_types=1); namespace App\Filament\Resources\Admin; -use App\Enums\Http\Api\Filter\AllowedDateFormat; use App\Filament\Components\Columns\BelongsToColumn; use App\Filament\Components\Columns\TextColumn; use App\Filament\Components\Fields\BelongsTo; @@ -159,8 +158,8 @@ class FeaturedTheme extends BaseResource Rule::exists(AnimeThemeEntryVideo::class, AnimeThemeEntryVideo::ATTRIBUTE_ENTRY) ->where(AnimeThemeEntryVideo::ATTRIBUTE_VIDEO, $get(FeaturedThemeModel::RELATION_VIDEO)), ] - )]; - } + )]; + }, ]), Select::make(FeaturedThemeModel::ATTRIBUTE_VIDEO) @@ -176,8 +175,8 @@ class FeaturedTheme extends BaseResource Rule::exists(AnimeThemeEntryVideo::class, AnimeThemeEntryVideo::ATTRIBUTE_VIDEO) ->where(AnimeThemeEntryVideo::ATTRIBUTE_ENTRY, $get(FeaturedThemeModel::RELATION_ENTRY)), ] - )]; - } + )]; + }, ]) ->options(function (Get $get) { return Video::query() diff --git a/app/Filament/Resources/Admin/FeaturedTheme/Pages/ListFeaturedThemes.php b/app/Filament/Resources/Admin/FeaturedTheme/Pages/ListFeaturedThemes.php index 0d2cd6b64..e4f523930 100644 --- a/app/Filament/Resources/Admin/FeaturedTheme/Pages/ListFeaturedThemes.php +++ b/app/Filament/Resources/Admin/FeaturedTheme/Pages/ListFeaturedThemes.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Admin\FeaturedTheme\Pages; -use App\Filament\Resources\Base\BaseListResources; use App\Filament\Resources\Admin\FeaturedTheme; +use App\Filament\Resources\Base\BaseListResources; /** * Class ListFeaturedThemes. diff --git a/app/Filament/Resources/Admin/FeaturedTheme/Pages/ViewFeaturedTheme.php b/app/Filament/Resources/Admin/FeaturedTheme/Pages/ViewFeaturedTheme.php index 2ffe4e187..d5fbe0ad5 100644 --- a/app/Filament/Resources/Admin/FeaturedTheme/Pages/ViewFeaturedTheme.php +++ b/app/Filament/Resources/Admin/FeaturedTheme/Pages/ViewFeaturedTheme.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Admin\FeaturedTheme\Pages; -use App\Filament\Resources\Base\BaseViewResource; use App\Filament\Resources\Admin\FeaturedTheme; +use App\Filament\Resources\Base\BaseViewResource; /** * Class ViewFeaturedTheme. diff --git a/app/Filament/Resources/Auth/Permission/Pages/ListPermissions.php b/app/Filament/Resources/Auth/Permission/Pages/ListPermissions.php index 75c2e1b74..365313c42 100644 --- a/app/Filament/Resources/Auth/Permission/Pages/ListPermissions.php +++ b/app/Filament/Resources/Auth/Permission/Pages/ListPermissions.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Auth\Permission\Pages; -use App\Filament\Resources\Base\BaseListResources; use App\Filament\Resources\Auth\Permission; +use App\Filament\Resources\Base\BaseListResources; /** * Class ListPermissions. diff --git a/app/Filament/Resources/Auth/Permission/Pages/ViewPermission.php b/app/Filament/Resources/Auth/Permission/Pages/ViewPermission.php index 8739b6597..d466c06b3 100644 --- a/app/Filament/Resources/Auth/Permission/Pages/ViewPermission.php +++ b/app/Filament/Resources/Auth/Permission/Pages/ViewPermission.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Auth\Permission\Pages; -use App\Filament\Resources\Base\BaseViewResource; use App\Filament\Resources\Auth\Permission; +use App\Filament\Resources\Base\BaseViewResource; /** * Class ViewPermission. diff --git a/app/Filament/Resources/Auth/Role.php b/app/Filament/Resources/Auth/Role.php index ae15fbc96..075331667 100644 --- a/app/Filament/Resources/Auth/Role.php +++ b/app/Filament/Resources/Auth/Role.php @@ -11,11 +11,11 @@ use App\Filament\Components\Filters\CheckboxFilter; use App\Filament\Components\Filters\NumberFilter; use App\Filament\Components\Infolist\TextEntry; use App\Filament\Components\Infolist\TimestampSection; -use App\Filament\Resources\BaseResource; use App\Filament\Resources\Auth\Role\Pages\ListRoles; use App\Filament\Resources\Auth\Role\Pages\ViewRole; use App\Filament\Resources\Auth\Role\RelationManagers\PermissionRoleRelationManager; use App\Filament\Resources\Auth\Role\RelationManagers\UserRoleRelationManager; +use App\Filament\Resources\BaseResource; use App\Models\Auth\Role as RoleModel; use Filament\Forms\Components\Checkbox; use Filament\Forms\Components\ColorPicker; diff --git a/app/Filament/Resources/Auth/Role/Pages/ListRoles.php b/app/Filament/Resources/Auth/Role/Pages/ListRoles.php index 26c6c6f2a..ab18f0717 100644 --- a/app/Filament/Resources/Auth/Role/Pages/ListRoles.php +++ b/app/Filament/Resources/Auth/Role/Pages/ListRoles.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Auth\Role\Pages; -use App\Filament\Resources\Base\BaseListResources; use App\Filament\Resources\Auth\Role; +use App\Filament\Resources\Base\BaseListResources; /** * Class ListRoles. diff --git a/app/Filament/Resources/Auth/Role/Pages/ViewRole.php b/app/Filament/Resources/Auth/Role/Pages/ViewRole.php index 9b68c194e..d3b55dcbe 100644 --- a/app/Filament/Resources/Auth/Role/Pages/ViewRole.php +++ b/app/Filament/Resources/Auth/Role/Pages/ViewRole.php @@ -6,8 +6,8 @@ namespace App\Filament\Resources\Auth\Role\Pages; use App\Filament\HeaderActions\Models\Auth\Role\GivePermissionHeaderAction; use App\Filament\HeaderActions\Models\Auth\Role\RevokePermissionHeaderAction; -use App\Filament\Resources\Base\BaseViewResource; use App\Filament\Resources\Auth\Role; +use App\Filament\Resources\Base\BaseViewResource; use Filament\Actions\ActionGroup; /** diff --git a/app/Filament/Resources/Auth/Role/RelationManagers/PermissionRoleRelationManager.php b/app/Filament/Resources/Auth/Role/RelationManagers/PermissionRoleRelationManager.php index d233f41bb..9aed8a123 100644 --- a/app/Filament/Resources/Auth/Role/RelationManagers/PermissionRoleRelationManager.php +++ b/app/Filament/Resources/Auth/Role/RelationManagers/PermissionRoleRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Auth\Role\RelationManagers; use App\Filament\RelationManagers\Auth\PermissionRelationManager; -use App\Models\Auth\Role; use App\Models\Auth\Permission; +use App\Models\Auth\Role; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Auth/User.php b/app/Filament/Resources/Auth/User.php index 2743aa05c..75da645e3 100644 --- a/app/Filament/Resources/Auth/User.php +++ b/app/Filament/Resources/Auth/User.php @@ -11,12 +11,12 @@ use App\Filament\Actions\Models\Auth\User\RevokeRoleAction; use App\Filament\Components\Columns\TextColumn; use App\Filament\Components\Infolist\TextEntry; use App\Filament\Components\Infolist\TimestampSection; -use App\Filament\Resources\BaseResource; use App\Filament\Resources\Auth\User\Pages\ListUsers; use App\Filament\Resources\Auth\User\Pages\ViewUser; use App\Filament\Resources\Auth\User\RelationManagers\PermissionUserRelationManager; use App\Filament\Resources\Auth\User\RelationManagers\PlaylistUserRelationManager; use App\Filament\Resources\Auth\User\RelationManagers\RoleUserRelationManager; +use App\Filament\Resources\BaseResource; use App\Models\Auth\User as UserModel; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; diff --git a/app/Filament/Resources/Auth/User/Pages/ListUsers.php b/app/Filament/Resources/Auth/User/Pages/ListUsers.php index d0fa07540..5b854a904 100644 --- a/app/Filament/Resources/Auth/User/Pages/ListUsers.php +++ b/app/Filament/Resources/Auth/User/Pages/ListUsers.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Auth\User\Pages; -use App\Filament\Resources\Base\BaseListResources; use App\Filament\Resources\Auth\User; +use App\Filament\Resources\Base\BaseListResources; /** * Class ListUsers. diff --git a/app/Filament/Resources/Auth/User/Pages/ViewUser.php b/app/Filament/Resources/Auth/User/Pages/ViewUser.php index 9ac8e1af7..22c7054e7 100644 --- a/app/Filament/Resources/Auth/User/Pages/ViewUser.php +++ b/app/Filament/Resources/Auth/User/Pages/ViewUser.php @@ -8,8 +8,8 @@ use App\Filament\HeaderActions\Models\Auth\User\GivePermissionHeaderAction; use App\Filament\HeaderActions\Models\Auth\User\GiveRoleHeaderAction; use App\Filament\HeaderActions\Models\Auth\User\RevokePermissionHeaderAction; use App\Filament\HeaderActions\Models\Auth\User\RevokeRoleHeaderAction; -use App\Filament\Resources\Base\BaseViewResource; use App\Filament\Resources\Auth\User; +use App\Filament\Resources\Base\BaseViewResource; use Filament\Actions\ActionGroup; /** diff --git a/app/Filament/Resources/Auth/User/RelationManagers/PermissionUserRelationManager.php b/app/Filament/Resources/Auth/User/RelationManagers/PermissionUserRelationManager.php index 3e85b66a5..3d2e535fa 100644 --- a/app/Filament/Resources/Auth/User/RelationManagers/PermissionUserRelationManager.php +++ b/app/Filament/Resources/Auth/User/RelationManagers/PermissionUserRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Auth\User\RelationManagers; use App\Filament\RelationManagers\Auth\PermissionRelationManager; -use App\Models\Auth\User; use App\Models\Auth\Permission; +use App\Models\Auth\User; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Auth/User/RelationManagers/RoleUserRelationManager.php b/app/Filament/Resources/Auth/User/RelationManagers/RoleUserRelationManager.php index 90d13b9e4..999ec27ca 100644 --- a/app/Filament/Resources/Auth/User/RelationManagers/RoleUserRelationManager.php +++ b/app/Filament/Resources/Auth/User/RelationManagers/RoleUserRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Auth\User\RelationManagers; use App\Filament\RelationManagers\Auth\RoleRelationManager; -use App\Models\Auth\User; use App\Models\Auth\Role; +use App\Models\Auth\User; use Filament\Tables\Actions\EditAction; use Filament\Tables\Table; diff --git a/app/Filament/Resources/Base/BaseListResources.php b/app/Filament/Resources/Base/BaseListResources.php index 0177b784d..f43f6b8ec 100644 --- a/app/Filament/Resources/Base/BaseListResources.php +++ b/app/Filament/Resources/Base/BaseListResources.php @@ -48,7 +48,7 @@ abstract class BaseListResources extends ListRecords $query ->whereIn($model->getKeyName(), $keys) - ->orderByRaw("FIELD({$this->getResource()::getRecordRouteKeyName()}, " . $keys->implode(',') . ')'); + ->orderByRaw("FIELD({$this->getResource()::getRecordRouteKeyName()}, ".$keys->implode(',').')'); } return $query; @@ -60,7 +60,7 @@ abstract class BaseListResources extends ListRecords * @param string $search * @return string */ - public function escapeReservedChars(string $search) : string + public function escapeReservedChars(string $search): string { return preg_replace( [ diff --git a/app/Filament/Resources/BaseResource.php b/app/Filament/Resources/BaseResource.php index 2ed136a79..0418fcb2d 100644 --- a/app/Filament/Resources/BaseResource.php +++ b/app/Filament/Resources/BaseResource.php @@ -92,7 +92,7 @@ abstract class BaseResource extends Resource ->paginated([10, 25, 50, 100, 'all']) ->defaultPaginationPageOption(25) ->extremePaginationLinks() - ->deferLoading(!app()->runningUnitTests()); + ->deferLoading(! app()->runningUnitTests()); } /** @@ -217,7 +217,7 @@ abstract class BaseResource extends Resource */ public static function getSlug(): string { - return 'resources/' . static::getRecordSlug(); + return 'resources/'.static::getRecordSlug(); } /** diff --git a/app/Filament/Resources/Discord/DiscordThread.php b/app/Filament/Resources/Discord/DiscordThread.php index 062aa11d8..fcaee1b3b 100644 --- a/app/Filament/Resources/Discord/DiscordThread.php +++ b/app/Filament/Resources/Discord/DiscordThread.php @@ -112,7 +112,7 @@ class DiscordThread extends BaseResource return 'discord-thread'; } - /** + /** * Get the eloquent query for the resource. * * @return Builder @@ -292,4 +292,4 @@ class DiscordThread extends BaseResource 'view' => ViewDiscordThread::route('/{record:thread_id}'), ]; } -} \ No newline at end of file +} diff --git a/app/Filament/Resources/Document/Page.php b/app/Filament/Resources/Document/Page.php index 83ca85990..820b77ecb 100644 --- a/app/Filament/Resources/Document/Page.php +++ b/app/Filament/Resources/Document/Page.php @@ -228,7 +228,7 @@ class Page extends BaseResource public static function getRelations(): array { return [ - RelationGroup::make(static::getLabel(),[ + RelationGroup::make(static::getLabel(), [ ...parent::getBaseRelations(), ]), ]; diff --git a/app/Filament/Resources/List/External/RelationManagers/ExternalEntryExternalProfileRelationManager.php b/app/Filament/Resources/List/External/RelationManagers/ExternalEntryExternalProfileRelationManager.php index 9da47d606..852a8f693 100644 --- a/app/Filament/Resources/List/External/RelationManagers/ExternalEntryExternalProfileRelationManager.php +++ b/app/Filament/Resources/List/External/RelationManagers/ExternalEntryExternalProfileRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\List\External\RelationManagers; use App\Filament\RelationManagers\List\External\ExternalEntryRelationManager; -use App\Models\List\ExternalProfile; use App\Models\List\External\ExternalEntry; +use App\Models\List\ExternalProfile; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/List/Playlist/Track.php b/app/Filament/Resources/List/Playlist/Track.php index 58e5b2204..e74108f9b 100644 --- a/app/Filament/Resources/List/Playlist/Track.php +++ b/app/Filament/Resources/List/Playlist/Track.php @@ -19,8 +19,8 @@ use App\Filament\Resources\List\Playlist\Track\Pages\ListTracks; use App\Filament\Resources\List\Playlist\Track\Pages\ViewTrack; use App\Filament\Resources\Wiki\Anime\Theme\Entry; use App\Filament\Resources\Wiki\Video as VideoResource; -use App\Models\List\Playlist\PlaylistTrack as TrackModel; use App\Models\List\Playlist\PlaylistTrack; +use App\Models\List\Playlist\PlaylistTrack as TrackModel; use App\Models\Wiki\Anime\Theme\AnimeThemeEntry; use App\Models\Wiki\Video as VideoModel; use App\Pivots\Wiki\AnimeThemeEntryVideo; @@ -158,14 +158,14 @@ class Track extends BaseResource fn (Get $get) => function () use ($get) { return [ Rule::when( - !empty($get(TrackModel::RELATION_ENTRY)) && !empty($get(TrackModel::RELATION_VIDEO)), + ! empty($get(TrackModel::RELATION_ENTRY)) && ! empty($get(TrackModel::RELATION_VIDEO)), [ Rule::exists(AnimeThemeEntryVideo::class, AnimeThemeEntryVideo::ATTRIBUTE_ENTRY) ->where(AnimeThemeEntryVideo::ATTRIBUTE_VIDEO, $get(TrackModel::RELATION_VIDEO)), ] - ) + ), ]; - } + }, ]), Select::make(TrackModel::ATTRIBUTE_VIDEO) @@ -175,20 +175,20 @@ class Track extends BaseResource fn (Get $get) => function () use ($get) { return [ Rule::when( - !empty($get(TrackModel::RELATION_ENTRY)) && !empty($get(TrackModel::RELATION_VIDEO)), + ! empty($get(TrackModel::RELATION_ENTRY)) && ! empty($get(TrackModel::RELATION_VIDEO)), [ Rule::exists(AnimeThemeEntryVideo::class, AnimeThemeEntryVideo::ATTRIBUTE_VIDEO) ->where(AnimeThemeEntryVideo::ATTRIBUTE_ENTRY, $get(TrackModel::RELATION_ENTRY)), ] - ) + ), ]; - } + }, ]) ->options(function (Get $get) { return VideoModel::query() ->whereHas(VideoModel::RELATION_ANIMETHEMEENTRIES, function ($query) use ($get) { /** @phpstan-ignore-next-line */ - $query->where(AnimeThemeEntry::TABLE . '.' . AnimeThemeEntry::ATTRIBUTE_ID, $get(TrackModel::ATTRIBUTE_ENTRY)); + $query->where(AnimeThemeEntry::TABLE.'.'.AnimeThemeEntry::ATTRIBUTE_ID, $get(TrackModel::ATTRIBUTE_ENTRY)); }) ->get() ->mapWithKeys(fn (VideoModel $video) => [$video->getKey() => $video->getName()]) diff --git a/app/Filament/Resources/List/Playlist/Track/Pages/ViewTrack.php b/app/Filament/Resources/List/Playlist/Track/Pages/ViewTrack.php index 8bb030697..49a146d2b 100644 --- a/app/Filament/Resources/List/Playlist/Track/Pages/ViewTrack.php +++ b/app/Filament/Resources/List/Playlist/Track/Pages/ViewTrack.php @@ -30,7 +30,7 @@ class ViewTrack extends BaseViewResource AssignHashidsHeaderAction::make('assign-hashids') ->setConnection('playlists') - ->authorize('update', PlaylistTrack::class) + ->authorize('update', PlaylistTrack::class), ]; } } diff --git a/app/Filament/Resources/User/Report.php b/app/Filament/Resources/User/Report.php index ac9fead7e..4c7c01827 100644 --- a/app/Filament/Resources/User/Report.php +++ b/app/Filament/Resources/User/Report.php @@ -10,11 +10,11 @@ use App\Filament\Components\Columns\TextColumn; use App\Filament\Components\Infolist\BelongsToEntry; use App\Filament\Components\Infolist\TextEntry; use App\Filament\Components\Infolist\TimestampSection; +use App\Filament\Resources\Auth\User as UserResource; use App\Filament\Resources\BaseResource; use App\Filament\Resources\User\Report\Pages\ListReports; use App\Filament\Resources\User\Report\Pages\ViewReport; use App\Filament\Resources\User\Report\RelationManagers\StepReportRelationManager; -use App\Filament\Resources\Auth\User as UserResource; use App\Models\User\Report as ReportModel; use Filament\Forms\Form; use Filament\Infolists\Components\Section; diff --git a/app/Filament/Resources/User/Report/Pages/ListReports.php b/app/Filament/Resources/User/Report/Pages/ListReports.php index 6796d96ee..b7156543f 100644 --- a/app/Filament/Resources/User/Report/Pages/ListReports.php +++ b/app/Filament/Resources/User/Report/Pages/ListReports.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\User\Report\Pages; -use App\Filament\Resources\User\Report; use App\Filament\Resources\Base\BaseListResources; +use App\Filament\Resources\User\Report; /** * Class ListReports. diff --git a/app/Filament/Resources/User/Report/ReportStep.php b/app/Filament/Resources/User/Report/ReportStep.php index e8101bbb2..a844e3c15 100644 --- a/app/Filament/Resources/User/Report/ReportStep.php +++ b/app/Filament/Resources/User/Report/ReportStep.php @@ -13,8 +13,8 @@ use App\Filament\Components\Infolist\BelongsToEntry; use App\Filament\Components\Infolist\KeyValueThreeEntry; use App\Filament\Components\Infolist\TextEntry; use App\Filament\Components\Infolist\TimestampSection; -use App\Filament\Resources\User\Report as ReportResource; use App\Filament\Resources\BaseResource; +use App\Filament\Resources\User\Report as ReportResource; use App\Filament\Resources\User\Report\ReportStep\Pages\ListReportSteps; use App\Filament\Resources\User\Report\ReportStep\Pages\ViewReportStep; use App\Models\User\Report\ReportStep as ReportStepModel; @@ -217,7 +217,7 @@ class ReportStep extends BaseResource ->valueLabel(__('filament.fields.report_step.fields.values')) ->hidden(fn (?array $state, ReportStepModel $record) => is_null($state) || $record->action === ReportActionType::UPDATE) ->columnSpanFull(), - ]) + ]) ->columns(3), TimestampSection::make(), @@ -236,7 +236,7 @@ class ReportStep extends BaseResource $name = $record->actionable instanceof Nameable ? $record->actionable->getName() : $record->actionable_type; if ($state === ReportActionType::CREATE) { - return $record->action->localize() . ' ' . $name; + return $record->action->localize().' '.$name; } $actionableUrl = Filament::getUrl($record->actionable); @@ -249,10 +249,10 @@ class ReportStep extends BaseResource $targetLink = "{$targetName}"; - return $state->localize() . ' ' . $actionableLink . ' to ' . $targetLink . ' via ' . class_basename($record->pivot_class); + return $state->localize().' '.$actionableLink.' to '.$targetLink.' via '.class_basename($record->pivot_class); } - return $record->action->localize() . ' ' . $actionableLink; + return $record->action->localize().' '.$actionableLink; } /** diff --git a/app/Filament/Resources/User/Report/ReportStep/Pages/ListReportSteps.php b/app/Filament/Resources/User/Report/ReportStep/Pages/ListReportSteps.php index 9a2fbb6ab..6fe5ed0c2 100644 --- a/app/Filament/Resources/User/Report/ReportStep/Pages/ListReportSteps.php +++ b/app/Filament/Resources/User/Report/ReportStep/Pages/ListReportSteps.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\User\Report\ReportStep\Pages; -use App\Filament\Resources\User\Report\ReportStep; use App\Filament\Resources\Base\BaseListResources; +use App\Filament\Resources\User\Report\ReportStep; /** * Class ListReportSteps. diff --git a/app/Filament/Resources/User/Report/ReportStep/Pages/ViewReportStep.php b/app/Filament/Resources/User/Report/ReportStep/Pages/ViewReportStep.php index 5e34003e7..f595bda3f 100644 --- a/app/Filament/Resources/User/Report/ReportStep/Pages/ViewReportStep.php +++ b/app/Filament/Resources/User/Report/ReportStep/Pages/ViewReportStep.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Filament\Resources\User\Report\ReportStep\Pages; -use App\Filament\Resources\User\Report\ReportStep; use App\Filament\Resources\Base\BaseViewResource; +use App\Filament\Resources\User\Report\ReportStep; /** * Class ViewReportStep. diff --git a/app/Filament/Resources/Wiki/Anime/Synonym.php b/app/Filament/Resources/Wiki/Anime/Synonym.php index 9ab91948b..3522eae20 100644 --- a/app/Filament/Resources/Wiki/Anime/Synonym.php +++ b/app/Filament/Resources/Wiki/Anime/Synonym.php @@ -18,8 +18,8 @@ use App\Filament\Resources\Wiki\Anime as AnimeResource; use App\Filament\Resources\Wiki\Anime\RelationManagers\SynonymAnimeRelationManager; use App\Filament\Resources\Wiki\Anime\Synonym\Pages\ListSynonyms; use App\Filament\Resources\Wiki\Anime\Synonym\Pages\ViewSynonym; -use App\Models\Wiki\Anime\AnimeSynonym as SynonymModel; use App\Models\Wiki\Anime\AnimeSynonym; +use App\Models\Wiki\Anime\AnimeSynonym as SynonymModel; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; use Filament\Infolists\Components\Section; @@ -228,7 +228,7 @@ class Synonym extends BaseResource public static function getRelations(): array { return [ - RelationGroup::make(static::getLabel(),[ + RelationGroup::make(static::getLabel(), [ ...parent::getBaseRelations(), ]), ]; diff --git a/app/Filament/Resources/Wiki/Anime/Theme.php b/app/Filament/Resources/Wiki/Anime/Theme.php index 03245cf22..dde03e7fc 100644 --- a/app/Filament/Resources/Wiki/Anime/Theme.php +++ b/app/Filament/Resources/Wiki/Anime/Theme.php @@ -27,8 +27,8 @@ use App\Filament\Resources\Wiki\Song as SongResource; use App\Filament\Resources\Wiki\Song\Performance as PerformanceResource; use App\Filament\Resources\Wiki\Song\RelationManagers\PerformanceSongRelationManager; use App\Filament\Resources\Wiki\Song\RelationManagers\ThemeSongRelationManager; -use App\Models\Wiki\Anime\AnimeTheme as ThemeModel; use App\Models\Wiki\Anime\AnimeTheme; +use App\Models\Wiki\Anime\AnimeTheme as ThemeModel; use App\Models\Wiki\Artist; use App\Models\Wiki\Group; use App\Models\Wiki\Song; @@ -115,7 +115,7 @@ class Theme extends BaseResource /** * Get the title for the resource. * - * @param Model|null $record + * @param Model|null $record * @return string|null * * @noinspection PhpMissingParentCallCommonInspection @@ -168,7 +168,7 @@ class Theme extends BaseResource AnimeTheme::RELATION_PERFORMANCES_ARTISTS => function (MorphTo $morphTo) { $morphTo->morphWith([ Artist::class => [], - Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER] + Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER], ]); }, ]); @@ -252,7 +252,7 @@ class Theme extends BaseResource ->relationship() ->schema(Entry::form($form)->getComponents()), ]), - ]) + ]), ]) ->columns(1); } @@ -286,7 +286,7 @@ class Theme extends BaseResource BelongsToColumn::make(ThemeModel::RELATION_GROUP, GroupResource::class), BelongsToColumn::make(ThemeModel::RELATION_SONG, SongResource::class) - ->hiddenOn(ThemeSongRelationManager::class) + ->hiddenOn(ThemeSongRelationManager::class), ]) ->searchable(); } @@ -352,7 +352,7 @@ class Theme extends BaseResource $slug = Str::of(''); $type = $get(ThemeModel::ATTRIBUTE_TYPE); - if (!empty($type) || $type !== null) { + if (! empty($type) || $type !== null) { $type = ThemeType::tryFrom(intval($type)); $slug = $slug->append($type->name); } @@ -365,8 +365,8 @@ class Theme extends BaseResource if ($slug->isNotEmpty()) { $group = $get(ThemeModel::ATTRIBUTE_GROUP); - if (!empty($group)) { - $slug = $slug->append('-' . Group::find(intval($group))->slug); + if (! empty($group)) { + $slug = $slug->append('-'.Group::find(intval($group))->slug); } } @@ -383,7 +383,7 @@ class Theme extends BaseResource public static function getRelations(): array { return [ - RelationGroup::make(static::getLabel(),[ + RelationGroup::make(static::getLabel(), [ EntryThemeRelationManager::class, ...parent::getBaseRelations(), diff --git a/app/Filament/Resources/Wiki/Anime/Theme/Entry.php b/app/Filament/Resources/Wiki/Anime/Theme/Entry.php index 21e27c6a2..d4370c3ac 100644 --- a/app/Filament/Resources/Wiki/Anime/Theme/Entry.php +++ b/app/Filament/Resources/Wiki/Anime/Theme/Entry.php @@ -23,8 +23,8 @@ use App\Filament\Resources\Wiki\Anime\Theme\Entry\Pages\ViewEntry; use App\Filament\Resources\Wiki\Anime\Theme\Entry\RelationManagers\VideoEntryRelationManager; use App\Filament\Resources\Wiki\Anime\Theme\RelationManagers\EntryThemeRelationManager; use App\Models\Wiki\Anime\AnimeTheme as ThemeModel; -use App\Models\Wiki\Anime\Theme\AnimeThemeEntry as EntryModel; use App\Models\Wiki\Anime\Theme\AnimeThemeEntry; +use App\Models\Wiki\Anime\Theme\AnimeThemeEntry as EntryModel; use Filament\Forms\Components\Checkbox; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; @@ -102,7 +102,7 @@ class Entry extends BaseResource /** * Get the title for the resource. * - * @param Model|null $record + * @param Model|null $record * @return string|null * * @noinspection PhpMissingParentCallCommonInspection @@ -165,7 +165,7 @@ class Entry extends BaseResource { return $form ->schema([ - BelongsTo::make(EntryModel::RELATION_THEME . '.' . ThemeModel::ATTRIBUTE_ANIME) + BelongsTo::make(EntryModel::RELATION_THEME.'.'.ThemeModel::ATTRIBUTE_ANIME) ->resource(AnimeResource::class, EntryModel::RELATION_ANIME_SHALLOW) ->live(true) ->required() @@ -179,7 +179,7 @@ class Entry extends BaseResource ->visibleOn([ListEntries::class, ViewEntry::class]) ->options(function (Get $get) { return ThemeModel::query() - ->where(ThemeModel::ATTRIBUTE_ANIME, $get(EntryModel::RELATION_THEME . '.' . ThemeModel::ATTRIBUTE_ANIME)) + ->where(ThemeModel::ATTRIBUTE_ANIME, $get(EntryModel::RELATION_THEME.'.'.ThemeModel::ATTRIBUTE_ANIME)) ->get() ->mapWithKeys(fn (ThemeModel $theme) => [$theme->getKey() => $theme->getName()]) ->toArray(); diff --git a/app/Filament/Resources/Wiki/Anime/Theme/RelationManagers/EntryThemeRelationManager.php b/app/Filament/Resources/Wiki/Anime/Theme/RelationManagers/EntryThemeRelationManager.php index bd3e2984d..be503362a 100644 --- a/app/Filament/Resources/Wiki/Anime/Theme/RelationManagers/EntryThemeRelationManager.php +++ b/app/Filament/Resources/Wiki/Anime/Theme/RelationManagers/EntryThemeRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Anime\Theme\RelationManagers; use App\Filament\RelationManagers\Wiki\Anime\Theme\EntryRelationManager; -use App\Models\Wiki\Anime\Theme\AnimeThemeEntry; use App\Models\Wiki\Anime\AnimeTheme; +use App\Models\Wiki\Anime\Theme\AnimeThemeEntry; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Artist.php b/app/Filament/Resources/Wiki/Artist.php index 9e265a9e6..56a94e20c 100644 --- a/app/Filament/Resources/Wiki/Artist.php +++ b/app/Filament/Resources/Wiki/Artist.php @@ -231,11 +231,11 @@ class Artist extends BaseResource ->hidden(fn ($livewire) => $livewire instanceof ViewTheme) ->columnSpanFull(), - TextEntry::make('artistsong' . '.' . ArtistSong::ATTRIBUTE_AS) + TextEntry::make('artistsong'.'.'.ArtistSong::ATTRIBUTE_AS) ->label(__('filament.fields.artist.songs.as.name')) ->visible(fn (TextEntry $component) => $component->getLivewire() instanceof ViewTheme), - TextEntry::make('artistsong' . '.' . ArtistSong::ATTRIBUTE_ALIAS) + TextEntry::make('artistsong'.'.'.ArtistSong::ATTRIBUTE_ALIAS) ->label(__('filament.fields.artist.songs.alias.name')) ->visible(fn (TextEntry $component) => $component->getLivewire() instanceof ViewTheme), ]) @@ -293,7 +293,7 @@ class Artist extends BaseResource ActionGroup::make([ AttachArtistResourceAction::make('attach-artist-resource'), - ]) + ]), ]; } diff --git a/app/Filament/Resources/Wiki/Artist/Pages/ViewArtist.php b/app/Filament/Resources/Wiki/Artist/Pages/ViewArtist.php index 80a06c76f..50e739bda 100644 --- a/app/Filament/Resources/Wiki/Artist/Pages/ViewArtist.php +++ b/app/Filament/Resources/Wiki/Artist/Pages/ViewArtist.php @@ -30,7 +30,7 @@ class ViewArtist extends BaseViewResource ActionGroup::make([ AttachArtistResourceHeaderAction::make('attach-artist-resource'), - ]) + ]), ]; } } diff --git a/app/Filament/Resources/Wiki/Artist/RelationManagers/GroupPerformanceArtistRelationManager.php b/app/Filament/Resources/Wiki/Artist/RelationManagers/GroupPerformanceArtistRelationManager.php index 743c19c61..025097cdb 100644 --- a/app/Filament/Resources/Wiki/Artist/RelationManagers/GroupPerformanceArtistRelationManager.php +++ b/app/Filament/Resources/Wiki/Artist/RelationManagers/GroupPerformanceArtistRelationManager.php @@ -33,8 +33,8 @@ class GroupPerformanceArtistRelationManager extends PerformanceRelationManager $table ->inverseRelationship(Performance::RELATION_SONG) ) - ->heading(__('filament.resources.label.group_performances')) - ->modelLabel(__('filament.resources.singularLabel.group_performance')); + ->heading(__('filament.resources.label.group_performances')) + ->modelLabel(__('filament.resources.singularLabel.group_performance')); } /** diff --git a/app/Filament/Resources/Wiki/ExternalResource/RelationManagers/SongResourceRelationManager.php b/app/Filament/Resources/Wiki/ExternalResource/RelationManagers/SongResourceRelationManager.php index b8338e6bb..a068f648d 100644 --- a/app/Filament/Resources/Wiki/ExternalResource/RelationManagers/SongResourceRelationManager.php +++ b/app/Filament/Resources/Wiki/ExternalResource/RelationManagers/SongResourceRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\ExternalResource\RelationManagers; use App\Filament\RelationManagers\Wiki\SongRelationManager; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/ExternalResource/RelationManagers/StudioResourceRelationManager.php b/app/Filament/Resources/Wiki/ExternalResource/RelationManagers/StudioResourceRelationManager.php index 30658e096..f20417325 100644 --- a/app/Filament/Resources/Wiki/ExternalResource/RelationManagers/StudioResourceRelationManager.php +++ b/app/Filament/Resources/Wiki/ExternalResource/RelationManagers/StudioResourceRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\ExternalResource\RelationManagers; use App\Filament\RelationManagers\Wiki\StudioRelationManager; -use App\Models\Wiki\Studio; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Studio; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Group/RelationManagers/ThemeGroupRelationManager.php b/app/Filament/Resources/Wiki/Group/RelationManagers/ThemeGroupRelationManager.php index 0ba02e980..5549ec584 100644 --- a/app/Filament/Resources/Wiki/Group/RelationManagers/ThemeGroupRelationManager.php +++ b/app/Filament/Resources/Wiki/Group/RelationManagers/ThemeGroupRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Group\RelationManagers; use App\Filament\RelationManagers\Wiki\Anime\ThemeRelationManager; -use App\Models\Wiki\Group; use App\Models\Wiki\Anime\AnimeTheme as ThemeModel; +use App\Models\Wiki\Group; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Image.php b/app/Filament/Resources/Wiki/Image.php index 13480e2e9..9634430fd 100644 --- a/app/Filament/Resources/Wiki/Image.php +++ b/app/Filament/Resources/Wiki/Image.php @@ -144,17 +144,17 @@ class Image extends BaseResource ->columns([ Stack::make([ TextColumn::make(ImageModel::ATTRIBUTE_ID) - ->label(__('filament.fields.base.id')), + ->label(__('filament.fields.base.id')), - TextColumn::make(ImageModel::ATTRIBUTE_FACET) - ->label(__('filament.fields.image.facet.name')) - ->formatStateUsing(fn (ImageFacet $state) => $state->localize()), + TextColumn::make(ImageModel::ATTRIBUTE_FACET) + ->label(__('filament.fields.image.facet.name')) + ->formatStateUsing(fn (ImageFacet $state) => $state->localize()), - ImageColumn::make(ImageModel::ATTRIBUTE_PATH) - ->label(__('filament.fields.image.image.name')) - ->disk(Config::get('image.disk')) - ->width(100) - ->height(150), + ImageColumn::make(ImageModel::ATTRIBUTE_PATH) + ->label(__('filament.fields.image.image.name')) + ->disk(Config::get('image.disk')) + ->width(100) + ->height(150), ]), ]) ->contentGrid([ @@ -258,10 +258,10 @@ class Image extends BaseResource } /** - * Get the table actions available for the resource. - * - * @return array - */ + * Get the table actions available for the resource. + * + * @return array + */ public static function getTableActions(): array { return [ diff --git a/app/Filament/Resources/Wiki/Image/RelationManagers/AnimeImageRelationManager.php b/app/Filament/Resources/Wiki/Image/RelationManagers/AnimeImageRelationManager.php index 95567764f..e991fed78 100644 --- a/app/Filament/Resources/Wiki/Image/RelationManagers/AnimeImageRelationManager.php +++ b/app/Filament/Resources/Wiki/Image/RelationManagers/AnimeImageRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Image\RelationManagers; use App\Filament\RelationManagers\Wiki\AnimeRelationManager; -use App\Models\Wiki\Image; use App\Models\Wiki\Anime; +use App\Models\Wiki\Image; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Image/RelationManagers/ArtistImageRelationManager.php b/app/Filament/Resources/Wiki/Image/RelationManagers/ArtistImageRelationManager.php index b0885bce9..30cdad627 100644 --- a/app/Filament/Resources/Wiki/Image/RelationManagers/ArtistImageRelationManager.php +++ b/app/Filament/Resources/Wiki/Image/RelationManagers/ArtistImageRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Image\RelationManagers; use App\Filament\RelationManagers\Wiki\ArtistRelationManager; -use App\Models\Wiki\Image; use App\Models\Wiki\Artist; +use App\Models\Wiki\Image; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Image/RelationManagers/PlaylistImageRelationManager.php b/app/Filament/Resources/Wiki/Image/RelationManagers/PlaylistImageRelationManager.php index 062a5f422..fa5fc6c7d 100644 --- a/app/Filament/Resources/Wiki/Image/RelationManagers/PlaylistImageRelationManager.php +++ b/app/Filament/Resources/Wiki/Image/RelationManagers/PlaylistImageRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Image\RelationManagers; use App\Filament\RelationManagers\List\PlaylistRelationManager; -use App\Models\Wiki\Image; use App\Models\List\Playlist; +use App\Models\Wiki\Image; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Series/RelationManagers/AnimeSeriesRelationManager.php b/app/Filament/Resources/Wiki/Series/RelationManagers/AnimeSeriesRelationManager.php index 82f3fb129..71c3cffdd 100644 --- a/app/Filament/Resources/Wiki/Series/RelationManagers/AnimeSeriesRelationManager.php +++ b/app/Filament/Resources/Wiki/Series/RelationManagers/AnimeSeriesRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Series\RelationManagers; use App\Filament\RelationManagers\Wiki\AnimeRelationManager; -use App\Models\Wiki\Series; use App\Models\Wiki\Anime; +use App\Models\Wiki\Series; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Song.php b/app/Filament/Resources/Wiki/Song.php index b46f2e0c4..9bf0b64de 100644 --- a/app/Filament/Resources/Wiki/Song.php +++ b/app/Filament/Resources/Wiki/Song.php @@ -243,7 +243,7 @@ class Song extends BaseResource ActionGroup::make([ AttachSongResourceAction::make('attach-song-resource'), - ]) + ]), ]; } diff --git a/app/Filament/Resources/Wiki/Song/Membership.php b/app/Filament/Resources/Wiki/Song/Membership.php index e7d149dc9..89edfddb9 100644 --- a/app/Filament/Resources/Wiki/Song/Membership.php +++ b/app/Filament/Resources/Wiki/Song/Membership.php @@ -14,7 +14,6 @@ use App\Filament\Resources\BaseResource; use App\Filament\Resources\Wiki\Artist as ArtistResource; use App\Filament\Resources\Wiki\Song\Membership\Pages\ListMemberships; use App\Filament\Resources\Wiki\Song\Membership\Pages\ViewMembership; -use App\Models\Wiki\Artist; use App\Models\Wiki\Song\Membership as MembershipModel; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; diff --git a/app/Filament/Resources/Wiki/Song/Pages/ViewSong.php b/app/Filament/Resources/Wiki/Song/Pages/ViewSong.php index 1e5f4564d..2edfde177 100644 --- a/app/Filament/Resources/Wiki/Song/Pages/ViewSong.php +++ b/app/Filament/Resources/Wiki/Song/Pages/ViewSong.php @@ -30,7 +30,7 @@ class ViewSong extends BaseViewResource ActionGroup::make([ AttachSongResourceHeaderAction::make('attach-song-resource'), - ]) + ]), ]; } } diff --git a/app/Filament/Resources/Wiki/Song/Performance.php b/app/Filament/Resources/Wiki/Song/Performance.php index 48da219cb..4cc446cd8 100644 --- a/app/Filament/Resources/Wiki/Song/Performance.php +++ b/app/Filament/Resources/Wiki/Song/Performance.php @@ -135,7 +135,7 @@ class Performance extends BaseResource PerformanceModel::RELATION_ARTIST => function (MorphTo $morphTo) { $morphTo->morphWith([ Artist::class => [], - Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER] + Membership::class => [Membership::RELATION_ARTIST, Membership::RELATION_MEMBER], ]); }, PerformanceModel::RELATION_SONG, @@ -183,7 +183,7 @@ class Performance extends BaseResource ->hiddenOn([PerformanceSongRelationManager::class]) ->searchable( query: fn (Builder $query, string $search) => $query->whereRelation(PerformanceModel::RELATION_SONG, SongModel::ATTRIBUTE_TITLE, ComparisonOperator::LIKE->value, "%{$search}%"), - isIndividual:true + isIndividual: true ), TextColumn::make('member') @@ -252,19 +252,19 @@ class Performance extends BaseResource BelongsToEntry::make(PerformanceModel::RELATION_ARTIST, ArtistResource::class) ->hidden(fn (PerformanceModel $record) => $record->artist instanceof Membership), - BelongsToEntry::make(PerformanceModel::RELATION_ARTIST . '.' . Membership::RELATION_ARTIST, ArtistResource::class) + BelongsToEntry::make(PerformanceModel::RELATION_ARTIST.'.'.Membership::RELATION_ARTIST, ArtistResource::class) ->label(__('filament.fields.performance.artist')) ->hidden(fn ($state) => is_null($state)), - BelongsToEntry::make(PerformanceModel::RELATION_ARTIST . '.' . Membership::RELATION_MEMBER, ArtistResource::class, true) + BelongsToEntry::make(PerformanceModel::RELATION_ARTIST.'.'.Membership::RELATION_MEMBER, ArtistResource::class, true) ->label(__('filament.fields.membership.member')) ->hidden(fn ($state) => is_null($state)), - TextEntry::make(PerformanceModel::RELATION_ARTIST . '.' . Membership::ATTRIBUTE_ALIAS) + TextEntry::make(PerformanceModel::RELATION_ARTIST.'.'.Membership::ATTRIBUTE_ALIAS) ->label(__('filament.fields.membership.alias.name')) ->visible(fn (PerformanceModel $record) => $record->artist instanceof Membership), - TextEntry::make(PerformanceModel::RELATION_ARTIST . '.' . Membership::ATTRIBUTE_AS) + TextEntry::make(PerformanceModel::RELATION_ARTIST.'.'.Membership::ATTRIBUTE_AS) ->label(__('filament.fields.membership.as.name')) ->visible(fn (PerformanceModel $record) => $record->artist instanceof Membership), @@ -387,6 +387,7 @@ class Performance extends BaseResource $artistId = $get(Artist::ATTRIBUTE_ID); if ($artistId === null) { $set('memberships', []); + return; } @@ -438,7 +439,7 @@ class Performance extends BaseResource ->saveRelationshipsUsing(function (Get $get, ?array $state) { $song = SongModel::find($get(PerformanceModel::ATTRIBUTE_SONG)); PerformanceSongRelationManager::saveArtists($song, $state); - }) + }), ]; } diff --git a/app/Filament/Resources/Wiki/Song/Performance/Pages/ListPerformances.php b/app/Filament/Resources/Wiki/Song/Performance/Pages/ListPerformances.php index e881b6421..a9e5ac6b0 100644 --- a/app/Filament/Resources/Wiki/Song/Performance/Pages/ListPerformances.php +++ b/app/Filament/Resources/Wiki/Song/Performance/Pages/ListPerformances.php @@ -4,7 +4,6 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Song\Performance\Pages; -use App\Filament\HeaderActions\Base\CreateHeaderAction; use App\Filament\Resources\Base\BaseListResources; use App\Filament\Resources\Wiki\Song\Performance; use App\Filament\Resources\Wiki\Song\RelationManagers\PerformanceSongRelationManager; @@ -38,6 +37,6 @@ class ListPerformances extends BaseListResources $performances = Arr::get($data, Song::RELATION_PERFORMANCES); PerformanceSongRelationManager::saveArtists($song, $performances); }), - ];; + ]; } } diff --git a/app/Filament/Resources/Wiki/Song/RelationManagers/PerformanceSongRelationManager.php b/app/Filament/Resources/Wiki/Song/RelationManagers/PerformanceSongRelationManager.php index 72ecb579e..160dddbb6 100644 --- a/app/Filament/Resources/Wiki/Song/RelationManagers/PerformanceSongRelationManager.php +++ b/app/Filament/Resources/Wiki/Song/RelationManagers/PerformanceSongRelationManager.php @@ -104,7 +104,7 @@ class PerformanceSongRelationManager extends PerformanceRelationManager */ public static function formatArtists(?Song $song = null): array { - if (!($song instanceof Song)) { + if (! ($song instanceof Song)) { return []; } @@ -157,7 +157,7 @@ class PerformanceSongRelationManager extends PerformanceRelationManager */ public static function saveArtists(?Song $song = null, ?array $data = []): void { - if (!($song instanceof Song) || empty($data)) { + if (! ($song instanceof Song) || empty($data)) { return; } diff --git a/app/Filament/Resources/Wiki/Song/RelationManagers/ResourceSongRelationManager.php b/app/Filament/Resources/Wiki/Song/RelationManagers/ResourceSongRelationManager.php index 85e2eb4c4..b5f2e0b54 100644 --- a/app/Filament/Resources/Wiki/Song/RelationManagers/ResourceSongRelationManager.php +++ b/app/Filament/Resources/Wiki/Song/RelationManagers/ResourceSongRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Song\RelationManagers; use App\Filament\RelationManagers\Wiki\ResourceRelationManager; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Studio.php b/app/Filament/Resources/Wiki/Studio.php index f0bfcbe55..3b5697f2a 100644 --- a/app/Filament/Resources/Wiki/Studio.php +++ b/app/Filament/Resources/Wiki/Studio.php @@ -240,7 +240,7 @@ class Studio extends BaseResource BackfillStudioAction::make('backfill-studio'), AttachStudioResourceAction::make('attach-studio-resource'), - ]) + ]), ]; } diff --git a/app/Filament/Resources/Wiki/Studio/Pages/ViewStudio.php b/app/Filament/Resources/Wiki/Studio/Pages/ViewStudio.php index 40ab6fd9e..804f8457d 100644 --- a/app/Filament/Resources/Wiki/Studio/Pages/ViewStudio.php +++ b/app/Filament/Resources/Wiki/Studio/Pages/ViewStudio.php @@ -33,7 +33,7 @@ class ViewStudio extends BaseViewResource BackfillStudioHeaderAction::make('backfill-studio'), AttachStudioResourceHeaderAction::make('attach-studio-resource'), - ]) + ]), ]; } } diff --git a/app/Filament/Resources/Wiki/Studio/RelationManagers/AnimeStudioRelationManager.php b/app/Filament/Resources/Wiki/Studio/RelationManagers/AnimeStudioRelationManager.php index bc8ef8cdd..c8295ba79 100644 --- a/app/Filament/Resources/Wiki/Studio/RelationManagers/AnimeStudioRelationManager.php +++ b/app/Filament/Resources/Wiki/Studio/RelationManagers/AnimeStudioRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Studio\RelationManagers; use App\Filament\RelationManagers\Wiki\AnimeRelationManager; -use App\Models\Wiki\Studio; use App\Models\Wiki\Anime; +use App\Models\Wiki\Studio; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Studio/RelationManagers/ImageStudioRelationManager.php b/app/Filament/Resources/Wiki/Studio/RelationManagers/ImageStudioRelationManager.php index 5a0f6026c..577a46db7 100644 --- a/app/Filament/Resources/Wiki/Studio/RelationManagers/ImageStudioRelationManager.php +++ b/app/Filament/Resources/Wiki/Studio/RelationManagers/ImageStudioRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Studio\RelationManagers; use App\Filament\RelationManagers\Wiki\ImageRelationManager; -use App\Models\Wiki\Studio; use App\Models\Wiki\Image; +use App\Models\Wiki\Studio; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Studio/RelationManagers/ResourceStudioRelationManager.php b/app/Filament/Resources/Wiki/Studio/RelationManagers/ResourceStudioRelationManager.php index 0540dc455..afab6e66d 100644 --- a/app/Filament/Resources/Wiki/Studio/RelationManagers/ResourceStudioRelationManager.php +++ b/app/Filament/Resources/Wiki/Studio/RelationManagers/ResourceStudioRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Studio\RelationManagers; use App\Filament\RelationManagers\Wiki\ResourceRelationManager; -use App\Models\Wiki\Studio; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Studio; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Video.php b/app/Filament/Resources/Wiki/Video.php index 9cdaba4e8..f01e76ac0 100644 --- a/app/Filament/Resources/Wiki/Video.php +++ b/app/Filament/Resources/Wiki/Video.php @@ -393,7 +393,7 @@ class Video extends BaseResource { return [ ...parent::getBulkActions([ - DeleteVideoBulkAction::make('delete-video') + DeleteVideoBulkAction::make('delete-video'), ]), VideoDiscordNotificationBulkAction::make('discord-notification'), diff --git a/app/Filament/Resources/Wiki/Video/RelationManagers/EntryVideoRelationManager.php b/app/Filament/Resources/Wiki/Video/RelationManagers/EntryVideoRelationManager.php index 0d5d704d4..e6f0e70a3 100644 --- a/app/Filament/Resources/Wiki/Video/RelationManagers/EntryVideoRelationManager.php +++ b/app/Filament/Resources/Wiki/Video/RelationManagers/EntryVideoRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Video\RelationManagers; use App\Filament\RelationManagers\Wiki\Anime\Theme\EntryRelationManager; -use App\Models\Wiki\Video; use App\Models\Wiki\Anime\Theme\AnimeThemeEntry; +use App\Models\Wiki\Video; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Video/RelationManagers/TrackVideoRelationManager.php b/app/Filament/Resources/Wiki/Video/RelationManagers/TrackVideoRelationManager.php index 84a215385..731109cfb 100644 --- a/app/Filament/Resources/Wiki/Video/RelationManagers/TrackVideoRelationManager.php +++ b/app/Filament/Resources/Wiki/Video/RelationManagers/TrackVideoRelationManager.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\Filament\Resources\Wiki\Video\RelationManagers; use App\Filament\RelationManagers\List\Playlist\TrackRelationManager; -use App\Models\Wiki\Video; use App\Models\List\Playlist\PlaylistTrack; +use App\Models\Wiki\Video; use Filament\Tables\Table; /** diff --git a/app/Filament/Resources/Wiki/Video/Script.php b/app/Filament/Resources/Wiki/Video/Script.php index 3a238bdf3..6901b7b73 100644 --- a/app/Filament/Resources/Wiki/Video/Script.php +++ b/app/Filament/Resources/Wiki/Video/Script.php @@ -17,7 +17,6 @@ use App\Filament\TableActions\Storage\Wiki\Video\Script\UploadScriptTableAction; use App\Models\Wiki\Video\VideoScript as ScriptModel; use Filament\Forms\Components\TextInput; use Filament\Forms\Form; -use Filament\Infolists\Components\Section; use Filament\Infolists\Infolist; use Filament\Resources\RelationManagers\RelationGroup; use Filament\Tables\Actions\ActionGroup; diff --git a/app/Filament/TableActions/Models/Discord/DiscordEditMessageTableAction.php b/app/Filament/TableActions/Models/Discord/DiscordEditMessageTableAction.php index 819768e04..461f9ff37 100644 --- a/app/Filament/TableActions/Models/Discord/DiscordEditMessageTableAction.php +++ b/app/Filament/TableActions/Models/Discord/DiscordEditMessageTableAction.php @@ -27,10 +27,10 @@ use Illuminate\Support\Facades\Auth; class DiscordEditMessageTableAction extends BaseTableAction { /** - * Initial setup for the action. - * - * @return void - */ + * Initial setup for the action. + * + * @return void + */ protected function setUp(): void { parent::setUp(); @@ -76,10 +76,11 @@ class DiscordEditMessageTableAction extends BaseTableAction Action::make('load') ->label(__('filament.table_actions.discord_thread.message.url.action')) ->action(function (Set $set, string $state, TextInput $component) { - if (!preg_match($component->getRegexPattern(), $state)) { + if (! preg_match($component->getRegexPattern(), $state)) { $component ->hint(__('filament.table_actions.discord_thread.message.url.validation')) ->hintColor('danger'); + return; } diff --git a/app/Filament/TableActions/Models/Discord/DiscordSendMessageTableAction.php b/app/Filament/TableActions/Models/Discord/DiscordSendMessageTableAction.php index 864f0db38..fa41512c5 100644 --- a/app/Filament/TableActions/Models/Discord/DiscordSendMessageTableAction.php +++ b/app/Filament/TableActions/Models/Discord/DiscordSendMessageTableAction.php @@ -11,7 +11,7 @@ use App\Discord\DiscordMessage; use App\Filament\TableActions\BaseTableAction; use App\Models\Discord\DiscordThread; use Filament\Forms\Components\Checkbox; -use Filament\Forms\Components\ColorPicker;; +use Filament\Forms\Components\ColorPicker; use Filament\Forms\Components\Repeater; use Filament\Forms\Components\Textarea; use Filament\Forms\Components\TextInput; @@ -24,10 +24,10 @@ use Illuminate\Support\Facades\Auth; class DiscordSendMessageTableAction extends BaseTableAction { /** - * Initial setup for the action. - * - * @return void - */ + * Initial setup for the action. + * + * @return void + */ protected function setUp(): void { parent::setUp(); diff --git a/app/Filament/TableActions/Models/Wiki/Image/UploadImageTableAction.php b/app/Filament/TableActions/Models/Wiki/Image/UploadImageTableAction.php index eeb8bfbe3..f5fc9d905 100644 --- a/app/Filament/TableActions/Models/Wiki/Image/UploadImageTableAction.php +++ b/app/Filament/TableActions/Models/Wiki/Image/UploadImageTableAction.php @@ -109,4 +109,4 @@ class UploadImageTableAction extends BaseTableAction return $this; } -} \ No newline at end of file +} diff --git a/app/Filament/TableActions/Repositories/ReconcileTableAction.php b/app/Filament/TableActions/Repositories/ReconcileTableAction.php index 33228772f..007355a07 100644 --- a/app/Filament/TableActions/Repositories/ReconcileTableAction.php +++ b/app/Filament/TableActions/Repositories/ReconcileTableAction.php @@ -25,8 +25,8 @@ abstract class ReconcileTableAction extends BaseTableAction */ public function handle(array $fields): void { - $result = $this->reconcileRepositories($fields); + $result = $this->reconcileRepositories($fields); - $result->toLog(); + $result->toLog(); } } diff --git a/app/Filament/TableActions/Storage/StorageTableAction.php b/app/Filament/TableActions/Storage/StorageTableAction.php index f4356237a..768272cb9 100644 --- a/app/Filament/TableActions/Storage/StorageTableAction.php +++ b/app/Filament/TableActions/Storage/StorageTableAction.php @@ -30,9 +30,7 @@ abstract class StorageTableAction extends BaseTableAction * @param array $fields * @return void */ - protected function afterUploaded(BaseModel $model, array $fields): void - { - } + protected function afterUploaded(BaseModel $model, array $fields): void {} /** * Perform the action on the table. @@ -54,6 +52,7 @@ abstract class StorageTableAction extends BaseTableAction if ($actionResult->hasFailed()) { $this->failedLog($actionResult->getMessage()); + return; } diff --git a/app/Filament/TableActions/Storage/Wiki/Video/UploadVideoTableAction.php b/app/Filament/TableActions/Storage/Wiki/Video/UploadVideoTableAction.php index 17fbfc1e6..43e78a8c5 100644 --- a/app/Filament/TableActions/Storage/Wiki/Video/UploadVideoTableAction.php +++ b/app/Filament/TableActions/Storage/Wiki/Video/UploadVideoTableAction.php @@ -8,7 +8,6 @@ use App\Actions\Storage\Wiki\Video\UploadVideoAction as UploadVideo; use App\Constants\Config\VideoConstants; use App\Enums\Actions\Models\Wiki\Video\ShouldBackfillAudio; use App\Enums\Actions\Models\Wiki\Video\ShouldSendNotification; -use App\Enums\Auth\Role; use App\Enums\Models\Wiki\VideoOverlap; use App\Enums\Models\Wiki\VideoSource; use App\Filament\Actions\Models\Wiki\Video\BackfillAudioAction; @@ -184,7 +183,7 @@ class UploadVideoTableAction extends UploadTableAction ...VideoDiscordNotificationBulkAction::make()->getForm($form)->getComponents(), ]), - ]) + ]), ]); } @@ -219,7 +218,7 @@ class UploadVideoTableAction extends UploadTableAction ->append('/') ->append($anime->season->localize()) ->__toString() - : floor($year % 100 / 10) . '0s'; + : floor($year % 100 / 10).'0s'; } if ($path === null) { diff --git a/app/Filament/Tabs/Anime/AnimeImageTab.php b/app/Filament/Tabs/Anime/AnimeImageTab.php index dd5b683ae..c7352e7b7 100644 --- a/app/Filament/Tabs/Anime/AnimeImageTab.php +++ b/app/Filament/Tabs/Anime/AnimeImageTab.php @@ -58,4 +58,4 @@ abstract class AnimeImageTab extends BaseTab $imageQuery->where(Image::ATTRIBUTE_FACET, static::facet()->value); })->count(); } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Image/AnimeLargeCoverTab.php b/app/Filament/Tabs/Anime/Image/AnimeLargeCoverTab.php index ec04d2ee2..b5a8fbbaa 100644 --- a/app/Filament/Tabs/Anime/Image/AnimeLargeCoverTab.php +++ b/app/Filament/Tabs/Anime/Image/AnimeLargeCoverTab.php @@ -31,4 +31,4 @@ class AnimeLargeCoverTab extends AnimeImageTab { return ImageFacet::LARGE_COVER; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Image/AnimeSmallCoverTab.php b/app/Filament/Tabs/Anime/Image/AnimeSmallCoverTab.php index 98b574749..4a37852b8 100644 --- a/app/Filament/Tabs/Anime/Image/AnimeSmallCoverTab.php +++ b/app/Filament/Tabs/Anime/Image/AnimeSmallCoverTab.php @@ -31,4 +31,4 @@ class AnimeSmallCoverTab extends AnimeImageTab { return ImageFacet::SMALL_COVER; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Resource/AnimeAnilistResourceTab.php b/app/Filament/Tabs/Anime/Resource/AnimeAnilistResourceTab.php index 6a39b68a2..7b8b57998 100644 --- a/app/Filament/Tabs/Anime/Resource/AnimeAnilistResourceTab.php +++ b/app/Filament/Tabs/Anime/Resource/AnimeAnilistResourceTab.php @@ -31,4 +31,4 @@ class AnimeAnilistResourceTab extends AnimeResourceTab { return ResourceSite::ANILIST; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Resource/AnimeAnnResourceTab.php b/app/Filament/Tabs/Anime/Resource/AnimeAnnResourceTab.php index 6587700c4..6105e75c0 100644 --- a/app/Filament/Tabs/Anime/Resource/AnimeAnnResourceTab.php +++ b/app/Filament/Tabs/Anime/Resource/AnimeAnnResourceTab.php @@ -31,4 +31,4 @@ class AnimeAnnResourceTab extends AnimeResourceTab { return ResourceSite::ANN; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Resource/AnimeKitsuResourceTab.php b/app/Filament/Tabs/Anime/Resource/AnimeKitsuResourceTab.php index efe9f4cd9..e107e9782 100644 --- a/app/Filament/Tabs/Anime/Resource/AnimeKitsuResourceTab.php +++ b/app/Filament/Tabs/Anime/Resource/AnimeKitsuResourceTab.php @@ -31,4 +31,4 @@ class AnimeKitsuResourceTab extends AnimeResourceTab { return ResourceSite::KITSU; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Resource/AnimeMalResourceTab.php b/app/Filament/Tabs/Anime/Resource/AnimeMalResourceTab.php index d039211b6..1d47cb183 100644 --- a/app/Filament/Tabs/Anime/Resource/AnimeMalResourceTab.php +++ b/app/Filament/Tabs/Anime/Resource/AnimeMalResourceTab.php @@ -31,4 +31,4 @@ class AnimeMalResourceTab extends AnimeResourceTab { return ResourceSite::MAL; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Resource/AnimeOfficialSiteResourceTab.php b/app/Filament/Tabs/Anime/Resource/AnimeOfficialSiteResourceTab.php index e917416e3..01027fecc 100644 --- a/app/Filament/Tabs/Anime/Resource/AnimeOfficialSiteResourceTab.php +++ b/app/Filament/Tabs/Anime/Resource/AnimeOfficialSiteResourceTab.php @@ -31,4 +31,4 @@ class AnimeOfficialSiteResourceTab extends AnimeResourceTab { return ResourceSite::OFFICIAL_SITE; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Resource/AnimePlanetResourceTab.php b/app/Filament/Tabs/Anime/Resource/AnimePlanetResourceTab.php index d7565bb3b..c936582c1 100644 --- a/app/Filament/Tabs/Anime/Resource/AnimePlanetResourceTab.php +++ b/app/Filament/Tabs/Anime/Resource/AnimePlanetResourceTab.php @@ -31,4 +31,4 @@ class AnimePlanetResourceTab extends AnimeResourceTab { return ResourceSite::ANIME_PLANET; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Resource/AnimeXResourceTab.php b/app/Filament/Tabs/Anime/Resource/AnimeXResourceTab.php index 6263e92a1..4752cf38a 100644 --- a/app/Filament/Tabs/Anime/Resource/AnimeXResourceTab.php +++ b/app/Filament/Tabs/Anime/Resource/AnimeXResourceTab.php @@ -31,4 +31,4 @@ class AnimeXResourceTab extends AnimeResourceTab { return ResourceSite::X; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Anime/Resource/AnimeYoutubeResourceTab.php b/app/Filament/Tabs/Anime/Resource/AnimeYoutubeResourceTab.php index 67f60b0d9..d35c559a9 100644 --- a/app/Filament/Tabs/Anime/Resource/AnimeYoutubeResourceTab.php +++ b/app/Filament/Tabs/Anime/Resource/AnimeYoutubeResourceTab.php @@ -31,4 +31,4 @@ class AnimeYoutubeResourceTab extends AnimeResourceTab { return ResourceSite::YOUTUBE; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Artist/Resource/ArtistAnilistResourceTab.php b/app/Filament/Tabs/Artist/Resource/ArtistAnilistResourceTab.php index 8a8769c49..eef0ed8d5 100644 --- a/app/Filament/Tabs/Artist/Resource/ArtistAnilistResourceTab.php +++ b/app/Filament/Tabs/Artist/Resource/ArtistAnilistResourceTab.php @@ -31,4 +31,4 @@ class ArtistAnilistResourceTab extends ArtistResourceTab { return ResourceSite::ANILIST; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Artist/Resource/ArtistAnimePlanetResourceTab.php b/app/Filament/Tabs/Artist/Resource/ArtistAnimePlanetResourceTab.php index 7711eb546..45cf4dc69 100644 --- a/app/Filament/Tabs/Artist/Resource/ArtistAnimePlanetResourceTab.php +++ b/app/Filament/Tabs/Artist/Resource/ArtistAnimePlanetResourceTab.php @@ -31,4 +31,4 @@ class ArtistAnimePlanetResourceTab extends ArtistResourceTab { return ResourceSite::ANIME_PLANET; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Artist/Resource/ArtistAnnResourceTab.php b/app/Filament/Tabs/Artist/Resource/ArtistAnnResourceTab.php index 8a3997687..6667878b6 100644 --- a/app/Filament/Tabs/Artist/Resource/ArtistAnnResourceTab.php +++ b/app/Filament/Tabs/Artist/Resource/ArtistAnnResourceTab.php @@ -31,4 +31,4 @@ class ArtistAnnResourceTab extends ArtistResourceTab { return ResourceSite::ANN; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Artist/Resource/ArtistMalResourceTab.php b/app/Filament/Tabs/Artist/Resource/ArtistMalResourceTab.php index a9a9ec93a..f80893fee 100644 --- a/app/Filament/Tabs/Artist/Resource/ArtistMalResourceTab.php +++ b/app/Filament/Tabs/Artist/Resource/ArtistMalResourceTab.php @@ -31,4 +31,4 @@ class ArtistMalResourceTab extends ArtistResourceTab { return ResourceSite::MAL; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Artist/Resource/ArtistOfficialSiteResourceTab.php b/app/Filament/Tabs/Artist/Resource/ArtistOfficialSiteResourceTab.php index 1a9e71ad7..1c941ed8e 100644 --- a/app/Filament/Tabs/Artist/Resource/ArtistOfficialSiteResourceTab.php +++ b/app/Filament/Tabs/Artist/Resource/ArtistOfficialSiteResourceTab.php @@ -31,4 +31,4 @@ class ArtistOfficialSiteResourceTab extends ArtistResourceTab { return ResourceSite::OFFICIAL_SITE; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Artist/Resource/ArtistSpotifyResourceTab.php b/app/Filament/Tabs/Artist/Resource/ArtistSpotifyResourceTab.php index 1095fb87c..08c63d889 100644 --- a/app/Filament/Tabs/Artist/Resource/ArtistSpotifyResourceTab.php +++ b/app/Filament/Tabs/Artist/Resource/ArtistSpotifyResourceTab.php @@ -31,4 +31,4 @@ class ArtistSpotifyResourceTab extends ArtistResourceTab { return ResourceSite::SPOTIFY; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Artist/Resource/ArtistXResourceTab.php b/app/Filament/Tabs/Artist/Resource/ArtistXResourceTab.php index 740fec3db..089a48396 100644 --- a/app/Filament/Tabs/Artist/Resource/ArtistXResourceTab.php +++ b/app/Filament/Tabs/Artist/Resource/ArtistXResourceTab.php @@ -31,4 +31,4 @@ class ArtistXResourceTab extends ArtistResourceTab { return ResourceSite::X; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Artist/Resource/ArtistYoutubeResourceTab.php b/app/Filament/Tabs/Artist/Resource/ArtistYoutubeResourceTab.php index 8706d9a13..244afbc4f 100644 --- a/app/Filament/Tabs/Artist/Resource/ArtistYoutubeResourceTab.php +++ b/app/Filament/Tabs/Artist/Resource/ArtistYoutubeResourceTab.php @@ -31,4 +31,4 @@ class ArtistYoutubeResourceTab extends ArtistResourceTab { return ResourceSite::YOUTUBE; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/BaseTab.php b/app/Filament/Tabs/BaseTab.php index 24c53f712..5fcf6aec7 100644 --- a/app/Filament/Tabs/BaseTab.php +++ b/app/Filament/Tabs/BaseTab.php @@ -18,7 +18,7 @@ abstract class BaseTab extends Tab * * @return string */ - abstract static public function getKey(): string; + abstract public static function getKey(): string; /** * Get the displayable name of the tab. diff --git a/app/Filament/Tabs/Song/SongResourceTab.php b/app/Filament/Tabs/Song/SongResourceTab.php index 7021dda30..32b4cf475 100644 --- a/app/Filament/Tabs/Song/SongResourceTab.php +++ b/app/Filament/Tabs/Song/SongResourceTab.php @@ -6,8 +6,8 @@ namespace App\Filament\Tabs\Song; use App\Enums\Models\Wiki\ResourceSite; use App\Filament\Tabs\BaseTab; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use Illuminate\Database\Eloquent\Builder; /** diff --git a/app/Filament/Tabs/Studio/Resource/StudioAnidbResourceTab.php b/app/Filament/Tabs/Studio/Resource/StudioAnidbResourceTab.php index 56bafcaf9..a020db144 100644 --- a/app/Filament/Tabs/Studio/Resource/StudioAnidbResourceTab.php +++ b/app/Filament/Tabs/Studio/Resource/StudioAnidbResourceTab.php @@ -31,4 +31,4 @@ class StudioAnidbResourceTab extends StudioResourceTab { return ResourceSite::ANIDB; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Studio/Resource/StudioAnilistResourceTab.php b/app/Filament/Tabs/Studio/Resource/StudioAnilistResourceTab.php index 7eff19735..493c3465f 100644 --- a/app/Filament/Tabs/Studio/Resource/StudioAnilistResourceTab.php +++ b/app/Filament/Tabs/Studio/Resource/StudioAnilistResourceTab.php @@ -31,4 +31,4 @@ class StudioAnilistResourceTab extends StudioResourceTab { return ResourceSite::ANILIST; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Studio/Resource/StudioAnimePlanetResourceTab.php b/app/Filament/Tabs/Studio/Resource/StudioAnimePlanetResourceTab.php index e924372b4..8fb98e2ca 100644 --- a/app/Filament/Tabs/Studio/Resource/StudioAnimePlanetResourceTab.php +++ b/app/Filament/Tabs/Studio/Resource/StudioAnimePlanetResourceTab.php @@ -31,4 +31,4 @@ class StudioAnimePlanetResourceTab extends StudioResourceTab { return ResourceSite::ANIME_PLANET; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Studio/Resource/StudioAnnResourceTab.php b/app/Filament/Tabs/Studio/Resource/StudioAnnResourceTab.php index c73ded846..f4f6ec9da 100644 --- a/app/Filament/Tabs/Studio/Resource/StudioAnnResourceTab.php +++ b/app/Filament/Tabs/Studio/Resource/StudioAnnResourceTab.php @@ -31,4 +31,4 @@ class StudioAnnResourceTab extends StudioResourceTab { return ResourceSite::ANN; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Studio/Resource/StudioMalResourceTab.php b/app/Filament/Tabs/Studio/Resource/StudioMalResourceTab.php index 639f7d171..a4f1a7277 100644 --- a/app/Filament/Tabs/Studio/Resource/StudioMalResourceTab.php +++ b/app/Filament/Tabs/Studio/Resource/StudioMalResourceTab.php @@ -31,4 +31,4 @@ class StudioMalResourceTab extends StudioResourceTab { return ResourceSite::MAL; } -} \ No newline at end of file +} diff --git a/app/Filament/Tabs/Studio/StudioImageTab.php b/app/Filament/Tabs/Studio/StudioImageTab.php index 6ce54679f..3751a1630 100644 --- a/app/Filament/Tabs/Studio/StudioImageTab.php +++ b/app/Filament/Tabs/Studio/StudioImageTab.php @@ -6,8 +6,8 @@ namespace App\Filament\Tabs\Studio; use App\Enums\Models\Wiki\ImageFacet; use App\Filament\Tabs\BaseTab; -use App\Models\Wiki\Studio; use App\Models\Wiki\Image; +use App\Models\Wiki\Studio; use Illuminate\Database\Eloquent\Builder; /** diff --git a/app/Filament/Tabs/Studio/StudioResourceTab.php b/app/Filament/Tabs/Studio/StudioResourceTab.php index 7d60e4742..0e87aff57 100644 --- a/app/Filament/Tabs/Studio/StudioResourceTab.php +++ b/app/Filament/Tabs/Studio/StudioResourceTab.php @@ -6,8 +6,8 @@ namespace App\Filament\Tabs\Studio; use App\Enums\Models\Wiki\ResourceSite; use App\Filament\Tabs\BaseTab; -use App\Models\Wiki\Studio; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Studio; use Illuminate\Database\Eloquent\Builder; /** diff --git a/app/Filament/Widgets/Auth/UserChart.php b/app/Filament/Widgets/Auth/UserChart.php index 34f24454e..5bd52ddab 100644 --- a/app/Filament/Widgets/Auth/UserChart.php +++ b/app/Filament/Widgets/Auth/UserChart.php @@ -32,7 +32,7 @@ class UserChart extends BaseChartWidget /** * Chart options (series, labels, types, size, animations...) - * https://apexcharts.com/docs/options + * https://apexcharts.com/docs/options. * * @return array */ diff --git a/app/Filament/Widgets/BaseChartWidget.php b/app/Filament/Widgets/BaseChartWidget.php index 609740660..d2a5aabe8 100644 --- a/app/Filament/Widgets/BaseChartWidget.php +++ b/app/Filament/Widgets/BaseChartWidget.php @@ -60,4 +60,4 @@ class BaseChartWidget extends ApexChartWidget return $dates[$month].'/'.$year; } -} \ No newline at end of file +} diff --git a/app/Filament/Widgets/BaseStatsWidget.php b/app/Filament/Widgets/BaseStatsWidget.php index dfa218f35..a2051ebf3 100644 --- a/app/Filament/Widgets/BaseStatsWidget.php +++ b/app/Filament/Widgets/BaseStatsWidget.php @@ -12,4 +12,4 @@ use Filament\Widgets\StatsOverviewWidget; class BaseStatsWidget extends StatsOverviewWidget { protected static bool $isLazy = false; -} \ No newline at end of file +} diff --git a/app/Filament/Widgets/List/ExternalProfileChart.php b/app/Filament/Widgets/List/ExternalProfileChart.php index 05d8eb442..5c11b5437 100644 --- a/app/Filament/Widgets/List/ExternalProfileChart.php +++ b/app/Filament/Widgets/List/ExternalProfileChart.php @@ -32,7 +32,7 @@ class ExternalProfileChart extends BaseChartWidget /** * Chart options (series, labels, types, size, animations...) - * https://apexcharts.com/docs/options + * https://apexcharts.com/docs/options. * * @return array */ diff --git a/app/Filament/Widgets/List/PlaylistChart.php b/app/Filament/Widgets/List/PlaylistChart.php index c57dd23e8..ba8a15063 100644 --- a/app/Filament/Widgets/List/PlaylistChart.php +++ b/app/Filament/Widgets/List/PlaylistChart.php @@ -32,7 +32,7 @@ class PlaylistChart extends BaseChartWidget /** * Chart options (series, labels, types, size, animations...) - * https://apexcharts.com/docs/options + * https://apexcharts.com/docs/options. * * @return array */ diff --git a/app/Filament/Widgets/List/PlaylistTrackChart.php b/app/Filament/Widgets/List/PlaylistTrackChart.php index 9f66b3372..07b6c4225 100644 --- a/app/Filament/Widgets/List/PlaylistTrackChart.php +++ b/app/Filament/Widgets/List/PlaylistTrackChart.php @@ -32,7 +32,7 @@ class PlaylistTrackChart extends BaseChartWidget /** * Chart options (series, labels, types, size, animations...) - * https://apexcharts.com/docs/options + * https://apexcharts.com/docs/options. * * @return array */ diff --git a/app/Filament/Widgets/Wiki/Anime/AnimeChart.php b/app/Filament/Widgets/Wiki/Anime/AnimeChart.php index 0967fbce5..5ae24b634 100644 --- a/app/Filament/Widgets/Wiki/Anime/AnimeChart.php +++ b/app/Filament/Widgets/Wiki/Anime/AnimeChart.php @@ -32,7 +32,7 @@ class AnimeChart extends BaseChartWidget /** * Chart options (series, labels, types, size, animations...) - * https://apexcharts.com/docs/options + * https://apexcharts.com/docs/options. * * @return array */ diff --git a/app/Filament/Widgets/Wiki/Artist/ArtistChart.php b/app/Filament/Widgets/Wiki/Artist/ArtistChart.php index 0d7baec2d..a99445478 100644 --- a/app/Filament/Widgets/Wiki/Artist/ArtistChart.php +++ b/app/Filament/Widgets/Wiki/Artist/ArtistChart.php @@ -32,7 +32,7 @@ class ArtistChart extends BaseChartWidget /** * Chart options (series, labels, types, size, animations...) - * https://apexcharts.com/docs/options + * https://apexcharts.com/docs/options. * * @return array */ diff --git a/app/Filament/Widgets/Wiki/Series/SeriesChart.php b/app/Filament/Widgets/Wiki/Series/SeriesChart.php index 022465312..34d78a661 100644 --- a/app/Filament/Widgets/Wiki/Series/SeriesChart.php +++ b/app/Filament/Widgets/Wiki/Series/SeriesChart.php @@ -32,7 +32,7 @@ class SeriesChart extends BaseChartWidget /** * Chart options (series, labels, types, size, animations...) - * https://apexcharts.com/docs/options + * https://apexcharts.com/docs/options. * * @return array */ diff --git a/app/Filament/Widgets/Wiki/Video/VideoChart.php b/app/Filament/Widgets/Wiki/Video/VideoChart.php index c30e442c5..2df62e32a 100644 --- a/app/Filament/Widgets/Wiki/Video/VideoChart.php +++ b/app/Filament/Widgets/Wiki/Video/VideoChart.php @@ -32,7 +32,7 @@ class VideoChart extends BaseChartWidget /** * Chart options (series, labels, types, size, animations...) - * https://apexcharts.com/docs/options + * https://apexcharts.com/docs/options. * * @return array */ diff --git a/app/GraphQL/Definition/Directives/Filters/FilterDirective.php b/app/GraphQL/Definition/Directives/Filters/FilterDirective.php index 097ad0b75..92ff21650 100644 --- a/app/GraphQL/Definition/Directives/Filters/FilterDirective.php +++ b/app/GraphQL/Definition/Directives/Filters/FilterDirective.php @@ -19,8 +19,7 @@ abstract class FilterDirective public function __construct( protected Field $field, protected Type $type, - ) { - } + ) {} /** * Create the argument for the directive. diff --git a/app/GraphQL/Definition/Fields/Base/CountAggregateField.php b/app/GraphQL/Definition/Fields/Base/CountAggregateField.php index 2a9d45a65..b462ee1ac 100644 --- a/app/GraphQL/Definition/Fields/Base/CountAggregateField.php +++ b/app/GraphQL/Definition/Fields/Base/CountAggregateField.php @@ -7,7 +7,6 @@ namespace App\GraphQL\Definition\Fields\Base; use App\GraphQL\Definition\Fields\Field; use App\GraphQL\Resolvers\CountAggregateResolver; use GraphQL\Type\Definition\Type; -use Illuminate\Support\Facades\Log; /** * Class CountAggregateField. diff --git a/app/GraphQL/Definition/Fields/Field.php b/app/GraphQL/Definition/Fields/Field.php index 117dacf3a..b0496fb7a 100644 --- a/app/GraphQL/Definition/Fields/Field.php +++ b/app/GraphQL/Definition/Fields/Field.php @@ -30,8 +30,7 @@ abstract class Field protected string $column, protected ?string $name = null, protected bool $nullable = true, - ) { - } + ) {} /** * Get the name of the field. @@ -70,7 +69,7 @@ abstract class Field */ public function getType(): Type { - if (!$this->nullable) { + if (! $this->nullable) { return Type::nonNull($this->type()); } @@ -110,7 +109,7 @@ abstract class Field * * @return string */ - public function toString(): String + public function toString(): string { $string = Str::of($this->getName()); diff --git a/app/GraphQL/Definition/Fields/JsonField.php b/app/GraphQL/Definition/Fields/JsonField.php index b3b5d68da..b5d50e506 100644 --- a/app/GraphQL/Definition/Fields/JsonField.php +++ b/app/GraphQL/Definition/Fields/JsonField.php @@ -4,11 +4,7 @@ declare(strict_types=1); namespace App\GraphQL\Definition\Fields; -use GraphQL\Type\Definition\Type; - /** * Class JsonField. */ -abstract class JsonField extends Field -{ -} +abstract class JsonField extends Field {} diff --git a/app/GraphQL/Definition/Queries/BaseQuery.php b/app/GraphQL/Definition/Queries/BaseQuery.php index ec6b39b29..93457b7b5 100644 --- a/app/GraphQL/Definition/Queries/BaseQuery.php +++ b/app/GraphQL/Definition/Queries/BaseQuery.php @@ -27,8 +27,7 @@ abstract class BaseQuery protected bool $nullable = false, protected bool $isList = true, protected bool $paginated = true, - ) { - } + ) {} /** * Mount the query and return its string representation. @@ -90,7 +89,7 @@ abstract class BaseQuery */ public function getType(): Type { - if (!$this->nullable) { + if (! $this->nullable) { if ($this->isList) { return Type::listOf(Type::nonNull($this->baseType())); } diff --git a/app/GraphQL/Definition/Queries/EloquentQuery.php b/app/GraphQL/Definition/Queries/EloquentQuery.php index 4e8964b7b..dbee4e4d1 100644 --- a/app/GraphQL/Definition/Queries/EloquentQuery.php +++ b/app/GraphQL/Definition/Queries/EloquentQuery.php @@ -62,7 +62,7 @@ abstract class EloquentQuery extends BaseQuery return $baseType->model(); } - throw new Exception("The base return type must be an instance of EloquentType, " . get_class($baseType) . " given."); + throw new Exception('The base return type must be an instance of EloquentType, '.get_class($baseType).' given.'); } /** diff --git a/app/GraphQL/Definition/Queries/Wiki/Anime/AnimeYearQuery.php b/app/GraphQL/Definition/Queries/Wiki/Anime/AnimeYearQuery.php index f3a2fb3b3..feb485de0 100644 --- a/app/GraphQL/Definition/Queries/Wiki/Anime/AnimeYearQuery.php +++ b/app/GraphQL/Definition/Queries/Wiki/Anime/AnimeYearQuery.php @@ -47,7 +47,7 @@ class AnimeYearQuery extends BaseQuery 'field' => [ 'resolver' => AnimeYear::class.'@year', - ] + ], ]; } diff --git a/app/GraphQL/Definition/Relations/BelongsToManyRelation.php b/app/GraphQL/Definition/Relations/BelongsToManyRelation.php index 13346dc14..84c2aa668 100644 --- a/app/GraphQL/Definition/Relations/BelongsToManyRelation.php +++ b/app/GraphQL/Definition/Relations/BelongsToManyRelation.php @@ -19,7 +19,7 @@ class BelongsToManyRelation extends Relation */ protected function type(): Type { - if (!$this->nullable) { + if (! $this->nullable) { return Type::nonNull(Type::listOf($this->type)); } diff --git a/app/GraphQL/Definition/Relations/BelongsToRelation.php b/app/GraphQL/Definition/Relations/BelongsToRelation.php index 8bafde9ed..2b91ce593 100644 --- a/app/GraphQL/Definition/Relations/BelongsToRelation.php +++ b/app/GraphQL/Definition/Relations/BelongsToRelation.php @@ -19,7 +19,7 @@ class BelongsToRelation extends Relation */ protected function type(): Type { - if (!$this->nullable) { + if (! $this->nullable) { return Type::nonNull($this->type); } diff --git a/app/GraphQL/Definition/Relations/HasManyRelation.php b/app/GraphQL/Definition/Relations/HasManyRelation.php index 2b682493f..a12bf40de 100644 --- a/app/GraphQL/Definition/Relations/HasManyRelation.php +++ b/app/GraphQL/Definition/Relations/HasManyRelation.php @@ -19,7 +19,7 @@ class HasManyRelation extends Relation */ protected function type(): Type { - if (!$this->nullable) { + if (! $this->nullable) { return Type::nonNull(Type::listOf($this->type)); } diff --git a/app/GraphQL/Definition/Relations/HasOneRelation.php b/app/GraphQL/Definition/Relations/HasOneRelation.php index ebce0ca5f..ae93c3efc 100644 --- a/app/GraphQL/Definition/Relations/HasOneRelation.php +++ b/app/GraphQL/Definition/Relations/HasOneRelation.php @@ -19,7 +19,7 @@ class HasOneRelation extends Relation */ protected function type(): Type { - if (!$this->nullable) { + if (! $this->nullable) { return Type::nonNull($this->type); } diff --git a/app/GraphQL/Definition/Relations/MorphManyRelation.php b/app/GraphQL/Definition/Relations/MorphManyRelation.php index 03bd6d45f..a53bb8a77 100644 --- a/app/GraphQL/Definition/Relations/MorphManyRelation.php +++ b/app/GraphQL/Definition/Relations/MorphManyRelation.php @@ -19,7 +19,7 @@ class MorphManyRelation extends Relation */ protected function type(): Type { - if (!$this->nullable) { + if (! $this->nullable) { return Type::nonNull(Type::listOf($this->type)); } diff --git a/app/GraphQL/Definition/Relations/MorphToRelation.php b/app/GraphQL/Definition/Relations/MorphToRelation.php index f81d345b7..37368f895 100644 --- a/app/GraphQL/Definition/Relations/MorphToRelation.php +++ b/app/GraphQL/Definition/Relations/MorphToRelation.php @@ -19,7 +19,7 @@ class MorphToRelation extends Relation */ protected function type(): Type { - if (!$this->nullable) { + if (! $this->nullable) { return Type::nonNull($this->type); } diff --git a/app/GraphQL/Definition/Relations/Relation.php b/app/GraphQL/Definition/Relations/Relation.php index e2c43180a..e7e5ad7a1 100644 --- a/app/GraphQL/Definition/Relations/Relation.php +++ b/app/GraphQL/Definition/Relations/Relation.php @@ -29,8 +29,7 @@ abstract class Relation protected ?string $field = null, protected ?bool $nullable = true, protected ?string $edgeType = null, - ) { - } + ) {} /** * Get the field as a string representation. diff --git a/app/GraphQL/Definition/Types/Admin/AnnouncementType.php b/app/GraphQL/Definition/Types/Admin/AnnouncementType.php index d61cba537..08ab98cfb 100644 --- a/app/GraphQL/Definition/Types/Admin/AnnouncementType.php +++ b/app/GraphQL/Definition/Types/Admin/AnnouncementType.php @@ -26,7 +26,7 @@ class AnnouncementType extends EloquentType implements HasFields */ public function getDescription(): string { - return "Represents a site-wide message to be broadcasted on the homepage."; + return 'Represents a site-wide message to be broadcasted on the homepage.'; } /** diff --git a/app/GraphQL/Definition/Types/Admin/FeaturedThemeType.php b/app/GraphQL/Definition/Types/Admin/FeaturedThemeType.php index 9c0854786..f4735d5df 100644 --- a/app/GraphQL/Definition/Types/Admin/FeaturedThemeType.php +++ b/app/GraphQL/Definition/Types/Admin/FeaturedThemeType.php @@ -33,7 +33,7 @@ class FeaturedThemeType extends EloquentType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents a video to be featured on the homepage of the site for a specified amount of time."; + return 'Represents a video to be featured on the homepage of the site for a specified amount of time.'; } /** diff --git a/app/GraphQL/Definition/Types/Auth/PermissionType.php b/app/GraphQL/Definition/Types/Auth/PermissionType.php index 4d1af2b59..14ba5ccc4 100644 --- a/app/GraphQL/Definition/Types/Auth/PermissionType.php +++ b/app/GraphQL/Definition/Types/Auth/PermissionType.php @@ -26,7 +26,7 @@ class PermissionType extends EloquentType implements HasFields */ public function getDescription(): string { - return "Represents an assignable label for users and roles that authorizes a particular action in AnimeThemes."; + return 'Represents an assignable label for users and roles that authorizes a particular action in AnimeThemes.'; } /** diff --git a/app/GraphQL/Definition/Types/Auth/RoleType.php b/app/GraphQL/Definition/Types/Auth/RoleType.php index 7e8a7af2e..f0e0a823b 100644 --- a/app/GraphQL/Definition/Types/Auth/RoleType.php +++ b/app/GraphQL/Definition/Types/Auth/RoleType.php @@ -32,7 +32,7 @@ class RoleType extends EloquentType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents an assignable label for users that provides a configured group of permissions."; + return 'Represents an assignable label for users that provides a configured group of permissions.'; } /** diff --git a/app/GraphQL/Definition/Types/Auth/User/MeType.php b/app/GraphQL/Definition/Types/Auth/User/MeType.php index 8fe02b1e7..c122576c1 100644 --- a/app/GraphQL/Definition/Types/Auth/User/MeType.php +++ b/app/GraphQL/Definition/Types/Auth/User/MeType.php @@ -38,7 +38,7 @@ class MeType extends EloquentType implements HasDirectives, HasFields, HasRelati */ public function getDescription(): string { - return "Represents the currently authenticated user."; + return 'Represents the currently authenticated user.'; } /** diff --git a/app/GraphQL/Definition/Types/Auth/UserType.php b/app/GraphQL/Definition/Types/Auth/UserType.php index 2288686a7..e6a1be985 100644 --- a/app/GraphQL/Definition/Types/Auth/UserType.php +++ b/app/GraphQL/Definition/Types/Auth/UserType.php @@ -29,7 +29,7 @@ class UserType extends EloquentType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents an AnimeThemes account."; + return 'Represents an AnimeThemes account.'; } /** diff --git a/app/GraphQL/Definition/Types/BaseType.php b/app/GraphQL/Definition/Types/BaseType.php index 4a465a2ae..9602e55b7 100644 --- a/app/GraphQL/Definition/Types/BaseType.php +++ b/app/GraphQL/Definition/Types/BaseType.php @@ -32,7 +32,7 @@ abstract class BaseType extends ObjectType 'description' => $field->description(), 'type' => $field->getType(), 'resolve' => fn ($root) => $field->resolve($root), - ] + ], ]) ->toArray(); } diff --git a/app/GraphQL/Definition/Types/List/ExternalProfileType.php b/app/GraphQL/Definition/Types/List/ExternalProfileType.php index d1727359b..cc89360e9 100644 --- a/app/GraphQL/Definition/Types/List/ExternalProfileType.php +++ b/app/GraphQL/Definition/Types/List/ExternalProfileType.php @@ -35,7 +35,7 @@ class ExternalProfileType extends EloquentType implements HasFields, HasRelation */ public function getDescription(): string { - return "Represents a user profile on the external site like MAL."; + return 'Represents a user profile on the external site like MAL.'; } /** diff --git a/app/GraphQL/Definition/Types/List/PlaylistType.php b/app/GraphQL/Definition/Types/List/PlaylistType.php index 57e6d4bc8..e7bd59582 100644 --- a/app/GraphQL/Definition/Types/List/PlaylistType.php +++ b/app/GraphQL/Definition/Types/List/PlaylistType.php @@ -56,7 +56,7 @@ class PlaylistType extends EloquentType implements HasFields, HasRelations new BelongsToRelation(new PlaylistTrackType(), Playlist::RELATION_LAST), new BelongsToRelation(new UserType(), Playlist::RELATION_USER), new HasManyRelation(new PlaylistTrackType(), Playlist::RELATION_TRACKS), - new BelongsToManyRelation(new ImageType(), Playlist::RELATION_IMAGES, edgeType: 'PlaylistImageEdge') + new BelongsToManyRelation(new ImageType(), Playlist::RELATION_IMAGES, edgeType: 'PlaylistImageEdge'), ]; } diff --git a/app/GraphQL/Definition/Types/Pivot/List/PlaylistImageType.php b/app/GraphQL/Definition/Types/Pivot/List/PlaylistImageType.php index cdbd37809..1dbde1c80 100644 --- a/app/GraphQL/Definition/Types/Pivot/List/PlaylistImageType.php +++ b/app/GraphQL/Definition/Types/Pivot/List/PlaylistImageType.php @@ -28,7 +28,7 @@ class PlaylistImageType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between a playlist and an image."; + return 'Represents the association between a playlist and an image.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeImageType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeImageType.php index 81ffe649b..aeefb0e10 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeImageType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeImageType.php @@ -28,7 +28,7 @@ class AnimeImageType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between an anime and an image."; + return 'Represents the association between an anime and an image.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeResourceType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeResourceType.php index f7bdda3fd..7c0871b20 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeResourceType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeResourceType.php @@ -29,7 +29,7 @@ class AnimeResourceType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between an anime and an external resource."; + return 'Represents the association between an anime and an external resource.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeSeriesType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeSeriesType.php index 326c7f932..af9c7581b 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeSeriesType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeSeriesType.php @@ -28,7 +28,7 @@ class AnimeSeriesType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between an anime and a series."; + return 'Represents the association between an anime and a series.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeStudioType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeStudioType.php index 6ddc24722..bbd70a1ad 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeStudioType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeStudioType.php @@ -28,7 +28,7 @@ class AnimeStudioType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between an anime and a studio."; + return 'Represents the association between an anime and a studio.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeThemeEntryVideoType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeThemeEntryVideoType.php index 083507a5d..8193d379a 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeThemeEntryVideoType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/AnimeThemeEntryVideoType.php @@ -28,7 +28,7 @@ class AnimeThemeEntryVideoType extends BaseType implements HasFields, HasRelatio */ public function getDescription(): string { - return "Represents the association between an anime theme entry and a video."; + return 'Represents the association between an anime theme entry and a video.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistImageType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistImageType.php index de12bb619..50768ca2c 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistImageType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistImageType.php @@ -29,7 +29,7 @@ class ArtistImageType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between an artist and an image."; + return 'Represents the association between an artist and an image.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistMemberType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistMemberType.php index 738eff77e..e02cf9b2f 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistMemberType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistMemberType.php @@ -30,7 +30,7 @@ class ArtistMemberType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association of an artist and a group/unit."; + return 'Represents the association of an artist and a group/unit.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistResourceType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistResourceType.php index 1d2eb691e..a6e3ca793 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistResourceType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/ArtistResourceType.php @@ -29,7 +29,7 @@ class ArtistResourceType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between an artist and an external resource."; + return 'Represents the association between an artist and an external resource.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/SongResourceType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/SongResourceType.php index db0e458d9..120f3df55 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/SongResourceType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/SongResourceType.php @@ -29,7 +29,7 @@ class SongResourceType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between an song and an external resource."; + return 'Represents the association between an song and an external resource.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/StudioImageType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/StudioImageType.php index faf197038..040e1a970 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/StudioImageType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/StudioImageType.php @@ -28,7 +28,7 @@ class StudioImageType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between a studio and an image."; + return 'Represents the association between a studio and an image.'; } /** diff --git a/app/GraphQL/Definition/Types/Pivot/Wiki/StudioResourceType.php b/app/GraphQL/Definition/Types/Pivot/Wiki/StudioResourceType.php index 983b2e612..e3eb1a2c2 100644 --- a/app/GraphQL/Definition/Types/Pivot/Wiki/StudioResourceType.php +++ b/app/GraphQL/Definition/Types/Pivot/Wiki/StudioResourceType.php @@ -29,7 +29,7 @@ class StudioResourceType extends PivotType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents the association between a studio and an external resource."; + return 'Represents the association between a studio and an external resource.'; } /** diff --git a/app/GraphQL/Definition/Types/SearchType.php b/app/GraphQL/Definition/Types/SearchType.php index 3f3aa7de7..7bdb0a978 100644 --- a/app/GraphQL/Definition/Types/SearchType.php +++ b/app/GraphQL/Definition/Types/SearchType.php @@ -13,7 +13,6 @@ use App\GraphQL\Definition\Fields\Search\SearchSeriesField; use App\GraphQL\Definition\Fields\Search\SearchSongsField; use App\GraphQL\Definition\Fields\Search\SearchStudiosField; use App\GraphQL\Definition\Fields\Search\SearchVideosField; -use App\GraphQL\Definition\Types\BaseType; /** * Class SearchType. @@ -27,7 +26,7 @@ class SearchType extends BaseType implements HasFields */ public function getDescription(): string { - return "Returns a listing of resources that match a given search term."; + return 'Returns a listing of resources that match a given search term.'; } /** diff --git a/app/GraphQL/Definition/Types/User/LikeType.php b/app/GraphQL/Definition/Types/User/LikeType.php index a865dc53f..0141e2806 100644 --- a/app/GraphQL/Definition/Types/User/LikeType.php +++ b/app/GraphQL/Definition/Types/User/LikeType.php @@ -25,7 +25,7 @@ class LikeType extends EloquentType implements HasRelations */ public function getDescription(): string { - return "Represents a like of a user."; + return 'Represents a like of a user.'; } /** diff --git a/app/GraphQL/Definition/Types/User/Notification/NotificationDataType.php b/app/GraphQL/Definition/Types/User/Notification/NotificationDataType.php index 94713db64..c9dd73534 100644 --- a/app/GraphQL/Definition/Types/User/Notification/NotificationDataType.php +++ b/app/GraphQL/Definition/Types/User/Notification/NotificationDataType.php @@ -23,7 +23,7 @@ class NotificationDataType extends BaseType implements HasFields */ public function getDescription(): string { - return "Represents the JSON data of the notification"; + return 'Represents the JSON data of the notification'; } /** diff --git a/app/GraphQL/Definition/Types/User/NotificationType.php b/app/GraphQL/Definition/Types/User/NotificationType.php index 3390743ba..a1d566bab 100644 --- a/app/GraphQL/Definition/Types/User/NotificationType.php +++ b/app/GraphQL/Definition/Types/User/NotificationType.php @@ -27,7 +27,7 @@ class NotificationType extends EloquentType implements HasFields, HasRelations */ public function getDescription(): string { - return "Represents a notification that is sent to the user."; + return 'Represents a notification that is sent to the user.'; } /** diff --git a/app/GraphQL/Definition/Types/Wiki/Anime/AnimeYearType.php b/app/GraphQL/Definition/Types/Wiki/Anime/AnimeYearType.php index dd8f1268b..509663a5c 100644 --- a/app/GraphQL/Definition/Types/Wiki/Anime/AnimeYearType.php +++ b/app/GraphQL/Definition/Types/Wiki/Anime/AnimeYearType.php @@ -24,7 +24,7 @@ class AnimeYearType extends BaseType implements HasFields */ public function getDescription(): string { - return "The anime year response type, grouped by season."; + return 'The anime year response type, grouped by season.'; } /** diff --git a/app/GraphQL/Definition/Unions/BaseUnion.php b/app/GraphQL/Definition/Unions/BaseUnion.php index 1e07a4727..3b06a1e51 100644 --- a/app/GraphQL/Definition/Unions/BaseUnion.php +++ b/app/GraphQL/Definition/Unions/BaseUnion.php @@ -5,8 +5,8 @@ declare(strict_types=1); namespace App\GraphQL\Definition\Unions; use App\GraphQL\Definition\Types\BaseType; -use GraphQL\Type\Definition\UnionType; use GraphQL\Type\Definition\Type; +use GraphQL\Type\Definition\UnionType; use Illuminate\Support\Arr; use Illuminate\Support\Str; diff --git a/app/GraphQL/Directives/EnumFieldDirective.php b/app/GraphQL/Directives/EnumFieldDirective.php index 37f2f55d9..0b44b6132 100644 --- a/app/GraphQL/Directives/EnumFieldDirective.php +++ b/app/GraphQL/Directives/EnumFieldDirective.php @@ -40,15 +40,15 @@ class EnumFieldDirective extends BaseDirective implements FieldMiddleware { $fieldValue->wrapResolver( fn (callable $resolver) => function ($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo) use ($resolver) { + /** @phpstan-ignore-next-line */ + $enum = $resolver($root, $args, $context, $resolveInfo); - /** @phpstan-ignore-next-line */ - $enum = $resolver($root, $args, $context, $resolveInfo); + if ($this->directiveArgValue('localize')) { + return $enum?->localize(); + } - if ($this->directiveArgValue('localize')) { - return $enum?->localize(); + return $enum?->name; } - - return $enum?->name; - }); + ); } } diff --git a/app/GraphQL/Directives/FeatureEnabledDirective.php b/app/GraphQL/Directives/FeatureEnabledDirective.php index 02faa546a..946c45f6c 100644 --- a/app/GraphQL/Directives/FeatureEnabledDirective.php +++ b/app/GraphQL/Directives/FeatureEnabledDirective.php @@ -33,7 +33,7 @@ class FeatureEnabledDirective extends BaseDirective implements FieldMiddleware * * @param FieldValue $fieldValue * @return void - */ + */ public function handleField(FieldValue $fieldValue): void { $feature = $this->directiveArgValue('class'); diff --git a/app/GraphQL/Directives/MiddlewareDirective.php b/app/GraphQL/Directives/MiddlewareDirective.php index 4cb72f392..d4adb82f3 100644 --- a/app/GraphQL/Directives/MiddlewareDirective.php +++ b/app/GraphQL/Directives/MiddlewareDirective.php @@ -33,7 +33,7 @@ class MiddlewareDirective extends BaseDirective implements FieldMiddleware, Type * * @param FieldValue $fieldValue * @return void - */ + */ public function handleField(FieldValue $fieldValue): void { $class = $this->directiveArgValue('class'); diff --git a/app/GraphQL/Mutations/List/ExternalProfileMutator.php b/app/GraphQL/Mutations/List/ExternalProfileMutator.php index 56ecf1952..091c128e7 100644 --- a/app/GraphQL/Mutations/List/ExternalProfileMutator.php +++ b/app/GraphQL/Mutations/List/ExternalProfileMutator.php @@ -27,16 +27,16 @@ class ExternalProfileMutator /** @var ExternalProfile $profile */ $profile = Arr::pull($args, self::ROUTE_SLUG); - if (!$profile->canBeSynced()) { + if (! $profile->canBeSynced()) { return new JsonResponse([ - 'error' => 'This external profile cannot be synced at the moment.' + 'error' => 'This external profile cannot be synced at the moment.', ], 403); } $profile->startSyncJob(); return new JsonResponse([ - 'message' => 'Job dispatched.' + 'message' => 'Job dispatched.', ], 201); } } diff --git a/app/GraphQL/Mutations/List/PlaylistMutator.php b/app/GraphQL/Mutations/List/PlaylistMutator.php index 919d88e64..fd06eafae 100644 --- a/app/GraphQL/Mutations/List/PlaylistMutator.php +++ b/app/GraphQL/Mutations/List/PlaylistMutator.php @@ -32,7 +32,7 @@ class PlaylistMutator { $parameters = [ ...$args, - Playlist::ATTRIBUTE_USER => Auth::id() + Playlist::ATTRIBUTE_USER => Auth::id(), ]; $action = new StoreAction(); diff --git a/app/GraphQL/Mutations/User/LikeMutator.php b/app/GraphQL/Mutations/User/LikeMutator.php index 3821edbb3..1a082c10f 100644 --- a/app/GraphQL/Mutations/User/LikeMutator.php +++ b/app/GraphQL/Mutations/User/LikeMutator.php @@ -34,11 +34,13 @@ class LikeMutator if ($playlist instanceof Playlist) { $playlist->like(); + return $playlist; } if ($video instanceof Video) { $video->like(); + return $video; } @@ -61,11 +63,13 @@ class LikeMutator if ($playlist instanceof Playlist) { $playlist->unlike(); + return $playlist; } if ($video instanceof Video) { $video->unlike(); + return $video; } diff --git a/app/GraphQL/Policies/Admin/AnnouncementPolicy.php b/app/GraphQL/Policies/Admin/AnnouncementPolicy.php index b0dd4ddd7..08f537833 100644 --- a/app/GraphQL/Policies/Admin/AnnouncementPolicy.php +++ b/app/GraphQL/Policies/Admin/AnnouncementPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class AnnouncementPolicy. */ -class AnnouncementPolicy extends BasePolicy -{ -} +class AnnouncementPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Admin/DumpPolicy.php b/app/GraphQL/Policies/Admin/DumpPolicy.php index 58570f2d5..f7b0547ea 100644 --- a/app/GraphQL/Policies/Admin/DumpPolicy.php +++ b/app/GraphQL/Policies/Admin/DumpPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class DumpPolicy. */ -class DumpPolicy extends BasePolicy -{ -} +class DumpPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/BasePolicy.php b/app/GraphQL/Policies/BasePolicy.php index 3285aee21..c55c0b815 100644 --- a/app/GraphQL/Policies/BasePolicy.php +++ b/app/GraphQL/Policies/BasePolicy.php @@ -107,7 +107,7 @@ abstract class BasePolicy ? $model->trashed() : false; - return !$trashed && $user->can(CrudPermission::UPDATE->format(static::getModel())); + return ! $trashed && $user->can(CrudPermission::UPDATE->format(static::getModel())); } /** @@ -127,7 +127,7 @@ abstract class BasePolicy ? $model->trashed() : false; - return !$trashed && $user->can(CrudPermission::DELETE->format(static::getModel())); + return ! $trashed && $user->can(CrudPermission::DELETE->format(static::getModel())); } /** diff --git a/app/GraphQL/Policies/Discord/DiscordThreadPolicy.php b/app/GraphQL/Policies/Discord/DiscordThreadPolicy.php index 3c3572a5b..d1d427d39 100644 --- a/app/GraphQL/Policies/Discord/DiscordThreadPolicy.php +++ b/app/GraphQL/Policies/Discord/DiscordThreadPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class DiscordThreadPolicy. */ -class DiscordThreadPolicy extends BasePolicy -{ -} +class DiscordThreadPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Document/PagePolicy.php b/app/GraphQL/Policies/Document/PagePolicy.php index efadc8e02..25ce889dc 100644 --- a/app/GraphQL/Policies/Document/PagePolicy.php +++ b/app/GraphQL/Policies/Document/PagePolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class PagePolicy. */ -class PagePolicy extends BasePolicy -{ -} +class PagePolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/List/External/ExternalEntryPolicy.php b/app/GraphQL/Policies/List/External/ExternalEntryPolicy.php index d1c6479cf..fdfe3380c 100644 --- a/app/GraphQL/Policies/List/External/ExternalEntryPolicy.php +++ b/app/GraphQL/Policies/List/External/ExternalEntryPolicy.php @@ -30,11 +30,11 @@ class ExternalEntryPolicy extends BasePolicy $profile = Arr::get($injected, 'profile'); if ($user !== null) { - return ($profile?->user()->is($user) || ExternalProfileVisibility::PRIVATE !== $profile?->visibility) + return ($profile?->user()->is($user) || $profile?->visibility !== ExternalProfileVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(ExternalEntry::class)); } - return ExternalProfileVisibility::PRIVATE !== $profile?->visibility; + return $profile?->visibility !== ExternalProfileVisibility::PRIVATE; } /** @@ -51,11 +51,11 @@ class ExternalEntryPolicy extends BasePolicy $profile = Arr::get($injected, 'profile'); if ($user !== null) { - return ($profile?->user()->is($user) || ExternalProfileVisibility::PRIVATE !== $profile?->visibility) + return ($profile?->user()->is($user) || $profile?->visibility !== ExternalProfileVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(ExternalEntry::class)); } - return ExternalProfileVisibility::PRIVATE !== $profile?->visibility; + return $profile?->visibility !== ExternalProfileVisibility::PRIVATE; } /** diff --git a/app/GraphQL/Policies/List/ExternalProfilePolicy.php b/app/GraphQL/Policies/List/ExternalProfilePolicy.php index 5b4942ff5..6240666b8 100644 --- a/app/GraphQL/Policies/List/ExternalProfilePolicy.php +++ b/app/GraphQL/Policies/List/ExternalProfilePolicy.php @@ -31,11 +31,11 @@ class ExternalProfilePolicy extends BasePolicy $profile = Arr::get($injected, $keyName); if ($user !== null) { - return ($profile->user()->is($user) || ExternalProfileVisibility::PRIVATE !== $profile->visibility) + return ($profile->user()->is($user) || $profile->visibility !== ExternalProfileVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(ExternalProfile::class)); } - return ExternalProfileVisibility::PRIVATE !== $profile->visibility; + return $profile->visibility !== ExternalProfileVisibility::PRIVATE; } /** @@ -59,7 +59,7 @@ class ExternalProfilePolicy extends BasePolicy * * @param User $user * @param array $injected - * @param string|null $keyName + * @param string|null $keyName * @return bool */ public function delete(User $user, array $injected, ?string $keyName = ExternalProfileMutator::ROUTE_SLUG): bool @@ -75,7 +75,7 @@ class ExternalProfilePolicy extends BasePolicy * * @param User $user * @param array $injected - * @param string|null $keyName + * @param string|null $keyName * @return bool */ public function restore(User $user, array $injected, ?string $keyName = ExternalProfileMutator::ROUTE_SLUG): bool diff --git a/app/GraphQL/Policies/List/Playlist/PlaylistTrackPolicy.php b/app/GraphQL/Policies/List/Playlist/PlaylistTrackPolicy.php index e114ad8f9..e040a6acc 100644 --- a/app/GraphQL/Policies/List/Playlist/PlaylistTrackPolicy.php +++ b/app/GraphQL/Policies/List/Playlist/PlaylistTrackPolicy.php @@ -31,11 +31,11 @@ class PlaylistTrackPolicy extends BasePolicy $playlist = Arr::get($injected, 'playlist'); if ($user !== null) { - return ($playlist?->user()->is($user) || PlaylistVisibility::PRIVATE !== $playlist?->visibility) + return ($playlist?->user()->is($user) || $playlist?->visibility !== PlaylistVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(PlaylistTrack::class)); } - return PlaylistVisibility::PRIVATE !== $playlist?->visibility; + return $playlist?->visibility !== PlaylistVisibility::PRIVATE; } /** @@ -52,11 +52,11 @@ class PlaylistTrackPolicy extends BasePolicy $playlist = Arr::get($injected, 'playlist'); if ($user !== null) { - return ($playlist?->user()->is($user) || PlaylistVisibility::PRIVATE !== $playlist?->visibility) + return ($playlist?->user()->is($user) || $playlist?->visibility !== PlaylistVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(PlaylistTrack::class)); } - return PlaylistVisibility::PRIVATE !== $playlist?->visibility; + return $playlist?->visibility !== PlaylistVisibility::PRIVATE; } /** diff --git a/app/GraphQL/Policies/List/PlaylistPolicy.php b/app/GraphQL/Policies/List/PlaylistPolicy.php index b6567f0e1..57d280bf7 100644 --- a/app/GraphQL/Policies/List/PlaylistPolicy.php +++ b/app/GraphQL/Policies/List/PlaylistPolicy.php @@ -31,11 +31,11 @@ class PlaylistPolicy extends BasePolicy $playlist = Arr::get($injected, $keyName); if ($user !== null) { - return ($playlist->user()->is($user) || PlaylistVisibility::PRIVATE !== $playlist->visibility) + return ($playlist->user()->is($user) || $playlist->visibility !== PlaylistVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(Playlist::class)); } - return PlaylistVisibility::PRIVATE !== $playlist->visibility; + return $playlist->visibility !== PlaylistVisibility::PRIVATE; } /** diff --git a/app/GraphQL/Policies/Wiki/Anime/AnimeSynonymPolicy.php b/app/GraphQL/Policies/Wiki/Anime/AnimeSynonymPolicy.php index 1abca5958..4601a2b48 100644 --- a/app/GraphQL/Policies/Wiki/Anime/AnimeSynonymPolicy.php +++ b/app/GraphQL/Policies/Wiki/Anime/AnimeSynonymPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class AnimeSynonymPolicy. */ -class AnimeSynonymPolicy extends BasePolicy -{ -} +class AnimeSynonymPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/Anime/AnimeThemePolicy.php b/app/GraphQL/Policies/Wiki/Anime/AnimeThemePolicy.php index 758301380..3d0199793 100644 --- a/app/GraphQL/Policies/Wiki/Anime/AnimeThemePolicy.php +++ b/app/GraphQL/Policies/Wiki/Anime/AnimeThemePolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class AnimeThemePolicy. */ -class AnimeThemePolicy extends BasePolicy -{ -} +class AnimeThemePolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/Anime/Theme/AnimeThemeEntryPolicy.php b/app/GraphQL/Policies/Wiki/Anime/Theme/AnimeThemeEntryPolicy.php index 114b7c9ce..2dfb1f402 100644 --- a/app/GraphQL/Policies/Wiki/Anime/Theme/AnimeThemeEntryPolicy.php +++ b/app/GraphQL/Policies/Wiki/Anime/Theme/AnimeThemeEntryPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class AnimeThemeEntryPolicy. */ -class AnimeThemeEntryPolicy extends BasePolicy -{ -} +class AnimeThemeEntryPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/AnimePolicy.php b/app/GraphQL/Policies/Wiki/AnimePolicy.php index 5fe005e55..24b43a14f 100644 --- a/app/GraphQL/Policies/Wiki/AnimePolicy.php +++ b/app/GraphQL/Policies/Wiki/AnimePolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class AnimePolicy. */ -class AnimePolicy extends BasePolicy -{ -} +class AnimePolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/ArtistPolicy.php b/app/GraphQL/Policies/Wiki/ArtistPolicy.php index 7a762e2bc..b13fafd75 100644 --- a/app/GraphQL/Policies/Wiki/ArtistPolicy.php +++ b/app/GraphQL/Policies/Wiki/ArtistPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class ArtistPolicy. */ -class ArtistPolicy extends BasePolicy -{ -} +class ArtistPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/AudioPolicy.php b/app/GraphQL/Policies/Wiki/AudioPolicy.php index a14e5d82d..7920284b1 100644 --- a/app/GraphQL/Policies/Wiki/AudioPolicy.php +++ b/app/GraphQL/Policies/Wiki/AudioPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class AudioPolicy. */ -class AudioPolicy extends BasePolicy -{ -} +class AudioPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/ExternalResourcePolicy.php b/app/GraphQL/Policies/Wiki/ExternalResourcePolicy.php index 8c936c8cb..2700151cd 100644 --- a/app/GraphQL/Policies/Wiki/ExternalResourcePolicy.php +++ b/app/GraphQL/Policies/Wiki/ExternalResourcePolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class ExternalResourcePolicy. */ -class ExternalResourcePolicy extends BasePolicy -{ -} +class ExternalResourcePolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/GroupPolicy.php b/app/GraphQL/Policies/Wiki/GroupPolicy.php index c332ace29..7655482cd 100644 --- a/app/GraphQL/Policies/Wiki/GroupPolicy.php +++ b/app/GraphQL/Policies/Wiki/GroupPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class GroupPolicy. */ -class GroupPolicy extends BasePolicy -{ -} +class GroupPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/ImagePolicy.php b/app/GraphQL/Policies/Wiki/ImagePolicy.php index 16104315b..92e2a9871 100644 --- a/app/GraphQL/Policies/Wiki/ImagePolicy.php +++ b/app/GraphQL/Policies/Wiki/ImagePolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class ImagePolicy. */ -class ImagePolicy extends BasePolicy -{ -} +class ImagePolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/SeriesPolicy.php b/app/GraphQL/Policies/Wiki/SeriesPolicy.php index e930703fd..072b74fd0 100644 --- a/app/GraphQL/Policies/Wiki/SeriesPolicy.php +++ b/app/GraphQL/Policies/Wiki/SeriesPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class SeriesPolicy. */ -class SeriesPolicy extends BasePolicy -{ -} +class SeriesPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/Song/MembershipPolicy.php b/app/GraphQL/Policies/Wiki/Song/MembershipPolicy.php index 1d5b9abcc..ca845c246 100644 --- a/app/GraphQL/Policies/Wiki/Song/MembershipPolicy.php +++ b/app/GraphQL/Policies/Wiki/Song/MembershipPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class MembershipPolicy. */ -class MembershipPolicy extends BasePolicy -{ -} +class MembershipPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/Song/PerformancePolicy.php b/app/GraphQL/Policies/Wiki/Song/PerformancePolicy.php index 0f44df533..33e958b35 100644 --- a/app/GraphQL/Policies/Wiki/Song/PerformancePolicy.php +++ b/app/GraphQL/Policies/Wiki/Song/PerformancePolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class PerformancePolicy. */ -class PerformancePolicy extends BasePolicy -{ -} +class PerformancePolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/SongPolicy.php b/app/GraphQL/Policies/Wiki/SongPolicy.php index 6ea8436b4..a7d2dcba6 100644 --- a/app/GraphQL/Policies/Wiki/SongPolicy.php +++ b/app/GraphQL/Policies/Wiki/SongPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class SongPolicy. */ -class SongPolicy extends BasePolicy -{ -} +class SongPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/StudioPolicy.php b/app/GraphQL/Policies/Wiki/StudioPolicy.php index 3e8c222ed..1129b8786 100644 --- a/app/GraphQL/Policies/Wiki/StudioPolicy.php +++ b/app/GraphQL/Policies/Wiki/StudioPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class StudioPolicy. */ -class StudioPolicy extends BasePolicy -{ -} +class StudioPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/Video/VideoScriptPolicy.php b/app/GraphQL/Policies/Wiki/Video/VideoScriptPolicy.php index 4db36d185..75a52580a 100644 --- a/app/GraphQL/Policies/Wiki/Video/VideoScriptPolicy.php +++ b/app/GraphQL/Policies/Wiki/Video/VideoScriptPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class VideoScriptPolicy. */ -class VideoScriptPolicy extends BasePolicy -{ -} +class VideoScriptPolicy extends BasePolicy {} diff --git a/app/GraphQL/Policies/Wiki/VideoPolicy.php b/app/GraphQL/Policies/Wiki/VideoPolicy.php index f2116b12d..6f18f7d4e 100644 --- a/app/GraphQL/Policies/Wiki/VideoPolicy.php +++ b/app/GraphQL/Policies/Wiki/VideoPolicy.php @@ -9,6 +9,4 @@ use App\GraphQL\Policies\BasePolicy; /** * Class VideoPolicy. */ -class VideoPolicy extends BasePolicy -{ -} +class VideoPolicy extends BasePolicy {} diff --git a/app/GraphQL/Queries/AnimeYear.php b/app/GraphQL/Queries/AnimeYear.php index f71150e31..b0ffaded1 100644 --- a/app/GraphQL/Queries/AnimeYear.php +++ b/app/GraphQL/Queries/AnimeYear.php @@ -18,10 +18,10 @@ class AnimeYear /** * Return a value for the field. * - * @param null $root Always null, since this field has no parent. - * @param array $args The field arguments passed by the client. - * @param GraphQLContext $context Shared between all fields. - * @param ResolveInfo $resolveInfo Metadata for advanced query resolution. + * @param null $root Always null, since this field has no parent. + * @param array $args The field arguments passed by the client. + * @param GraphQLContext $context Shared between all fields. + * @param ResolveInfo $resolveInfo Metadata for advanced query resolution. * @return mixed The result of resolving the field, matching what was promised in the schema. */ public function years(null $root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): mixed @@ -35,10 +35,10 @@ class AnimeYear /** * Return a value for the field. * - * @param null $root Always null, since this field has no parent. - * @param array $args The field arguments passed by the client. - * @param GraphQLContext $context Shared between all fields. - * @param ResolveInfo $resolveInfo Metadata for advanced query resolution. + * @param null $root Always null, since this field has no parent. + * @param array $args The field arguments passed by the client. + * @param GraphQLContext $context Shared between all fields. + * @param ResolveInfo $resolveInfo Metadata for advanced query resolution. * @return mixed The result of resolving the field, matching what was promised in the schema. */ public function year(null $root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): mixed diff --git a/app/GraphQL/Queries/Search.php b/app/GraphQL/Queries/Search.php index 37c8673b0..624da18c2 100644 --- a/app/GraphQL/Queries/Search.php +++ b/app/GraphQL/Queries/Search.php @@ -24,10 +24,10 @@ class Search /** * Return a value for the field. * - * @param null $root Always null, since this field has no parent. - * @param array $args The field arguments passed by the client. - * @param GraphQLContext $context Shared between all fields. - * @param ResolveInfo $resolveInfo Metadata for advanced query resolution. + * @param null $root Always null, since this field has no parent. + * @param array $args The field arguments passed by the client. + * @param GraphQLContext $context Shared between all fields. + * @param ResolveInfo $resolveInfo Metadata for advanced query resolution. * @return mixed The result of resolving the field, matching what was promised in the schema. */ public function __invoke(null $root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): mixed diff --git a/app/GraphQL/Resolvers/CountAggregateResolver.php b/app/GraphQL/Resolvers/CountAggregateResolver.php index a1dbb2f8c..3bfd56a3a 100644 --- a/app/GraphQL/Resolvers/CountAggregateResolver.php +++ b/app/GraphQL/Resolvers/CountAggregateResolver.php @@ -56,8 +56,8 @@ class CountAggregateResolver } } - if (is_null($relation) || !method_exists($aggregatable, $relation)) { - throw new InvalidArgumentException("Relation {$relation} does not exist on model " . get_class($aggregatable)); + if (is_null($relation) || ! method_exists($aggregatable, $relation)) { + throw new InvalidArgumentException("Relation {$relation} does not exist on model ".get_class($aggregatable)); } /** @var Model|null $aggregate */ diff --git a/app/GraphQL/Types/EnumType.php b/app/GraphQL/Types/EnumType.php index 6a6b089c9..3942d0019 100644 --- a/app/GraphQL/Types/EnumType.php +++ b/app/GraphQL/Types/EnumType.php @@ -16,7 +16,7 @@ use ReflectionClassConstant; use UnitEnum; /** - * Class EnumType + * Class EnumType. */ class EnumType extends BaseEnumType { @@ -81,7 +81,7 @@ class EnumType extends BaseEnumType return end($parts); } - /** + /** * @param ReflectionClassConstant|ReflectionClass $reflection * @return string|null * diff --git a/app/Http/Api/Criteria/Field/Criteria.php b/app/Http/Api/Criteria/Field/Criteria.php index 89c8949be..807b02109 100644 --- a/app/Http/Api/Criteria/Field/Criteria.php +++ b/app/Http/Api/Criteria/Field/Criteria.php @@ -17,9 +17,7 @@ readonly class Criteria * @param string $type * @param Collection $fields */ - public function __construct(protected string $type, protected Collection $fields) - { - } + public function __construct(protected string $type, protected Collection $fields) {} /** * Get the type that this sparse fieldsets mapping belongs to. diff --git a/app/Http/Api/Criteria/Filter/Criteria.php b/app/Http/Api/Criteria/Filter/Criteria.php index 43fcaaf82..68cd4ae5a 100644 --- a/app/Http/Api/Criteria/Filter/Criteria.php +++ b/app/Http/Api/Criteria/Filter/Criteria.php @@ -34,8 +34,7 @@ abstract class Criteria protected readonly Predicate $predicate, protected readonly BinaryLogicalOperator $operator, protected readonly Scope $scope - ) { - } + ) {} /** * Get the scope of the criteria. diff --git a/app/Http/Api/Criteria/Filter/Expression.php b/app/Http/Api/Criteria/Filter/Expression.php index 31f299fdd..68660b47a 100644 --- a/app/Http/Api/Criteria/Filter/Expression.php +++ b/app/Http/Api/Criteria/Filter/Expression.php @@ -14,9 +14,7 @@ readonly class Expression * * @param mixed $value */ - public function __construct(protected mixed $value) - { - } + public function __construct(protected mixed $value) {} /** * Get expression value. diff --git a/app/Http/Api/Criteria/Filter/Predicate.php b/app/Http/Api/Criteria/Filter/Predicate.php index b5fb2f520..0d879388a 100644 --- a/app/Http/Api/Criteria/Filter/Predicate.php +++ b/app/Http/Api/Criteria/Filter/Predicate.php @@ -22,8 +22,7 @@ readonly class Predicate protected string $column, protected ?ComparisonOperator $operator, protected Expression $expression - ) { - } + ) {} /** * Get the predicate column. diff --git a/app/Http/Api/Criteria/Include/Criteria.php b/app/Http/Api/Criteria/Include/Criteria.php index e7927ea7f..8e9fb0f48 100644 --- a/app/Http/Api/Criteria/Include/Criteria.php +++ b/app/Http/Api/Criteria/Include/Criteria.php @@ -16,9 +16,7 @@ class Criteria * * @param Collection $paths */ - public function __construct(protected readonly Collection $paths) - { - } + public function __construct(protected readonly Collection $paths) {} /** * Get include paths. diff --git a/app/Http/Api/Criteria/Paging/Criteria.php b/app/Http/Api/Criteria/Paging/Criteria.php index c1624e6b5..96796670b 100644 --- a/app/Http/Api/Criteria/Paging/Criteria.php +++ b/app/Http/Api/Criteria/Paging/Criteria.php @@ -23,9 +23,7 @@ abstract class Criteria * * @param int $resultSize */ - public function __construct(protected readonly int $resultSize) - { - } + public function __construct(protected readonly int $resultSize) {} /** * Get the validated result size. diff --git a/app/Http/Api/Criteria/Search/Criteria.php b/app/Http/Api/Criteria/Search/Criteria.php index 6e2d3fdb4..6f0c82e05 100644 --- a/app/Http/Api/Criteria/Search/Criteria.php +++ b/app/Http/Api/Criteria/Search/Criteria.php @@ -14,9 +14,7 @@ readonly class Criteria * * @param string $term */ - public function __construct(protected string $term) - { - } + public function __construct(protected string $term) {} /** * Get the search term. diff --git a/app/Http/Api/Criteria/Sort/Criteria.php b/app/Http/Api/Criteria/Sort/Criteria.php index aa9e35418..800f8b755 100644 --- a/app/Http/Api/Criteria/Sort/Criteria.php +++ b/app/Http/Api/Criteria/Sort/Criteria.php @@ -19,9 +19,7 @@ abstract class Criteria * @param Scope $scope * @param string $field */ - public function __construct(protected readonly Scope $scope, protected readonly string $field) - { - } + public function __construct(protected readonly Scope $scope, protected readonly string $field) {} /** * Get the scope of the criteria. diff --git a/app/Http/Api/Field/Field.php b/app/Http/Api/Field/Field.php index 8e23a568f..a8cef5fbb 100644 --- a/app/Http/Api/Field/Field.php +++ b/app/Http/Api/Field/Field.php @@ -23,8 +23,7 @@ abstract class Field implements FieldInterface protected readonly Schema $schema, protected readonly string $key, protected readonly ?string $column = null - ) { - } + ) {} /** * Get the schema. diff --git a/app/Http/Api/Field/List/ExternalProfile/ExternalEntry/ExternalEntryScoreField.php b/app/Http/Api/Field/List/ExternalProfile/ExternalEntry/ExternalEntryScoreField.php index 5a2ebb18a..27f7eca13 100644 --- a/app/Http/Api/Field/List/ExternalProfile/ExternalEntry/ExternalEntryScoreField.php +++ b/app/Http/Api/Field/List/ExternalProfile/ExternalEntry/ExternalEntryScoreField.php @@ -9,7 +9,6 @@ use App\Contracts\Http\Api\Field\UpdatableField; use App\Http\Api\Field\FloatField; use App\Http\Api\Schema\Schema; use App\Models\List\External\ExternalEntry; -use App\Rules\ModerationRule; use Illuminate\Http\Request; /** @@ -56,4 +55,4 @@ class ExternalEntryScoreField extends FloatField implements CreatableField, Upda 'decimal:0,2', ]; } -} \ No newline at end of file +} diff --git a/app/Http/Api/Field/List/ExternalProfile/ExternalProfileIdField.php b/app/Http/Api/Field/List/ExternalProfile/ExternalProfileIdField.php index ecb6d1289..a2c4c1024 100644 --- a/app/Http/Api/Field/List/ExternalProfile/ExternalProfileIdField.php +++ b/app/Http/Api/Field/List/ExternalProfile/ExternalProfileIdField.php @@ -47,4 +47,4 @@ class ExternalProfileIdField extends Field implements SelectableField return true; } -} \ No newline at end of file +} diff --git a/app/Http/Api/Field/List/ExternalProfile/ExternalProfileNameField.php b/app/Http/Api/Field/List/ExternalProfile/ExternalProfileNameField.php index 0eabeec05..36d8e2e1a 100644 --- a/app/Http/Api/Field/List/ExternalProfile/ExternalProfileNameField.php +++ b/app/Http/Api/Field/List/ExternalProfile/ExternalProfileNameField.php @@ -41,4 +41,4 @@ class ExternalProfileNameField extends StringField implements CreatableField new ModerationRule(), ]; } -} \ No newline at end of file +} diff --git a/app/Http/Api/Field/List/ExternalProfile/ExternalProfileSiteField.php b/app/Http/Api/Field/List/ExternalProfile/ExternalProfileSiteField.php index e239775c4..09a9fd869 100644 --- a/app/Http/Api/Field/List/ExternalProfile/ExternalProfileSiteField.php +++ b/app/Http/Api/Field/List/ExternalProfile/ExternalProfileSiteField.php @@ -40,4 +40,4 @@ class ExternalProfileSiteField extends EnumField implements CreatableField new Enum(ExternalProfileSite::class), ]; } -} \ No newline at end of file +} diff --git a/app/Http/Api/Field/List/Playlist/PlaylistViewCountField.php b/app/Http/Api/Field/List/Playlist/PlaylistViewCountField.php index e0f31ed95..3d011412b 100644 --- a/app/Http/Api/Field/List/Playlist/PlaylistViewCountField.php +++ b/app/Http/Api/Field/List/Playlist/PlaylistViewCountField.php @@ -11,8 +11,8 @@ use App\Http\Api\Filter\Filter; use App\Http\Api\Filter\IntFilter; use App\Http\Api\Schema\Schema; use App\Http\Api\Sort\Sort; -use App\Models\List\Playlist; use App\Models\Aggregate\ViewAggregate; +use App\Models\List\Playlist; use Illuminate\Database\Eloquent\Model; /** diff --git a/app/Http/Api/Field/Wiki/Anime/Theme/ThemeGroupIdField.php b/app/Http/Api/Field/Wiki/Anime/Theme/ThemeGroupIdField.php index d5bbb18a0..19135c016 100644 --- a/app/Http/Api/Field/Wiki/Anime/Theme/ThemeGroupIdField.php +++ b/app/Http/Api/Field/Wiki/Anime/Theme/ThemeGroupIdField.php @@ -18,7 +18,7 @@ use Illuminate\Validation\Rule; /** * Class ThemeGroupIdField. */ -class ThemeGroupIdField extends Field implements CreatableField, UpdatableField, SelectableField +class ThemeGroupIdField extends Field implements CreatableField, SelectableField, UpdatableField { /** * Create a new field instance. diff --git a/app/Http/Api/Filter/Filter.php b/app/Http/Api/Filter/Filter.php index 358aa53c2..0a86f8203 100644 --- a/app/Http/Api/Filter/Filter.php +++ b/app/Http/Api/Filter/Filter.php @@ -30,8 +30,7 @@ abstract class Filter protected readonly ?string $column = null, protected readonly QualifyColumn $qualifyColumn = QualifyColumn::YES, protected readonly Clause $clause = Clause::WHERE - ) { - } + ) {} /** * Get filter key value. @@ -60,7 +59,7 @@ abstract class Filter */ public function shouldQualifyColumn(): bool { - return QualifyColumn::YES === $this->qualifyColumn; + return $this->qualifyColumn === QualifyColumn::YES; } /** diff --git a/app/Http/Api/Include/AllowedInclude.php b/app/Http/Api/Include/AllowedInclude.php index abbc6d236..f73909048 100644 --- a/app/Http/Api/Include/AllowedInclude.php +++ b/app/Http/Api/Include/AllowedInclude.php @@ -18,9 +18,7 @@ readonly class AllowedInclude * @param SchemaInterface $schema * @param string $path */ - final public function __construct(protected SchemaInterface $schema, protected string $path) - { - } + final public function __construct(protected SchemaInterface $schema, protected string $path) {} /** * Get the schema. diff --git a/app/Http/Api/Schema/EloquentSchema.php b/app/Http/Api/Schema/EloquentSchema.php index 5281087e1..6031c5a1c 100644 --- a/app/Http/Api/Schema/EloquentSchema.php +++ b/app/Http/Api/Schema/EloquentSchema.php @@ -124,7 +124,7 @@ abstract class EloquentSchema extends Schema $model = $this->model(); foreach (explode('.', $path) as $path) { - if (!method_exists($model, $path)) { + if (! method_exists($model, $path)) { $classBasename = get_class($model); throw new RuntimeException("Relation '$path' does not exist on model '$classBasename'."); } diff --git a/app/Http/Api/Schema/List/External/ExternalEntrySchema.php b/app/Http/Api/Schema/List/External/ExternalEntrySchema.php index 65c4e961c..abaa48652 100644 --- a/app/Http/Api/Schema/List/External/ExternalEntrySchema.php +++ b/app/Http/Api/Schema/List/External/ExternalEntrySchema.php @@ -10,9 +10,9 @@ use App\Http\Api\Field\Base\UpdatedAtField; use App\Http\Api\Field\Field; use App\Http\Api\Field\List\ExternalProfile\ExternalEntry\ExternalEntryAnimeIdField; use App\Http\Api\Field\List\ExternalProfile\ExternalEntry\ExternalEntryExternalProfileIdField; -use App\Http\Api\Field\List\ExternalProfile\ExternalEntry\ExternalEntryWatchStatusField; use App\Http\Api\Field\List\ExternalProfile\ExternalEntry\ExternalEntryIsFavoriteField; use App\Http\Api\Field\List\ExternalProfile\ExternalEntry\ExternalEntryScoreField; +use App\Http\Api\Field\List\ExternalProfile\ExternalEntry\ExternalEntryWatchStatusField; use App\Http\Api\Include\AllowedInclude; use App\Http\Api\Schema\Auth\UserSchema; use App\Http\Api\Schema\EloquentSchema; diff --git a/app/Http/Api/Schema/List/ExternalProfileSchema.php b/app/Http/Api/Schema/List/ExternalProfileSchema.php index 2238d8dfe..55595801e 100644 --- a/app/Http/Api/Schema/List/ExternalProfileSchema.php +++ b/app/Http/Api/Schema/List/ExternalProfileSchema.php @@ -8,9 +8,9 @@ use App\Contracts\Http\Api\Schema\SearchableSchema; use App\Http\Api\Field\Base\IdField; use App\Http\Api\Field\Field; use App\Http\Api\Field\List\ExternalProfile\ExternalProfileNameField; -use App\Http\Api\Field\List\ExternalProfile\ExternalProfileVisibilityField; use App\Http\Api\Field\List\ExternalProfile\ExternalProfileSiteField; use App\Http\Api\Field\List\ExternalProfile\ExternalProfileUserIdField; +use App\Http\Api\Field\List\ExternalProfile\ExternalProfileVisibilityField; use App\Http\Api\Include\AllowedInclude; use App\Http\Api\Schema\Auth\UserSchema; use App\Http\Api\Schema\EloquentSchema; @@ -50,10 +50,10 @@ class ExternalProfileSchema extends EloquentSchema implements SearchableSchema new AllowedInclude(new ExternalEntrySchema(), ExternalProfile::RELATION_EXTERNAL_ENTRIES), new AllowedInclude(new UserSchema(), ExternalProfile::RELATION_USER), - new AllowedInclude(new GroupSchema(), "externalentries.anime.animethemes.group"), - new AllowedInclude(new VideoSchema(), "externalentries.anime.animethemes.animethemeentries.videos"), - new AllowedInclude(new SongSchema(), "externalentries.anime.animethemes.song"), - new AllowedInclude(new ImageSchema(), "externalentries.anime.images"), + new AllowedInclude(new GroupSchema(), 'externalentries.anime.animethemes.group'), + new AllowedInclude(new VideoSchema(), 'externalentries.anime.animethemes.animethemeentries.videos'), + new AllowedInclude(new SongSchema(), 'externalentries.anime.animethemes.song'), + new AllowedInclude(new ImageSchema(), 'externalentries.anime.images'), ]); } diff --git a/app/Http/Api/Schema/Pivot/Wiki/SongResourceSchema.php b/app/Http/Api/Schema/Pivot/Wiki/SongResourceSchema.php index 4ddf163c5..ceb566533 100644 --- a/app/Http/Api/Schema/Pivot/Wiki/SongResourceSchema.php +++ b/app/Http/Api/Schema/Pivot/Wiki/SongResourceSchema.php @@ -7,9 +7,9 @@ namespace App\Http\Api\Schema\Pivot\Wiki; use App\Http\Api\Field\Base\CreatedAtField; use App\Http\Api\Field\Base\UpdatedAtField; use App\Http\Api\Field\Field; -use App\Http\Api\Field\Pivot\Wiki\SongResource\SongResourceSongIdField; use App\Http\Api\Field\Pivot\Wiki\SongResource\SongResourceAsField; use App\Http\Api\Field\Pivot\Wiki\SongResource\SongResourceResourceIdField; +use App\Http\Api\Field\Pivot\Wiki\SongResource\SongResourceSongIdField; use App\Http\Api\Include\AllowedInclude; use App\Http\Api\Schema\EloquentSchema; use App\Http\Api\Schema\Wiki\ExternalResourceSchema; diff --git a/app/Http/Api/Schema/User/NotificationSchema.php b/app/Http/Api/Schema/User/NotificationSchema.php index aa7a0988c..86628bd30 100644 --- a/app/Http/Api/Schema/User/NotificationSchema.php +++ b/app/Http/Api/Schema/User/NotificationSchema.php @@ -4,15 +4,15 @@ declare(strict_types=1); namespace App\Http\Api\Schema\User; +use App\Http\Api\Field\Base\CreatedAtField; +use App\Http\Api\Field\Base\UpdatedAtField; +use App\Http\Api\Field\Base\UuidField; +use App\Http\Api\Field\Field; use App\Http\Api\Field\User\Notification\NotificationDataField; use App\Http\Api\Field\User\Notification\NotificationNotifiableIdField; use App\Http\Api\Field\User\Notification\NotificationNotifiableTypeField; use App\Http\Api\Field\User\Notification\NotificationReadAtField; use App\Http\Api\Field\User\Notification\NotificationTypeField; -use App\Http\Api\Field\Base\CreatedAtField; -use App\Http\Api\Field\Base\UpdatedAtField; -use App\Http\Api\Field\Base\UuidField; -use App\Http\Api\Field\Field; use App\Http\Api\Include\AllowedInclude; use App\Http\Api\Schema\EloquentSchema; use App\Http\Resources\User\Resource\NotificationResource; diff --git a/app/Http/Api/Schema/Wiki/ExternalResourceSchema.php b/app/Http/Api/Schema/Wiki/ExternalResourceSchema.php index bc056796e..a03a9155f 100644 --- a/app/Http/Api/Schema/Wiki/ExternalResourceSchema.php +++ b/app/Http/Api/Schema/Wiki/ExternalResourceSchema.php @@ -39,7 +39,7 @@ class ExternalResourceSchema extends EloquentSchema implements InteractsWithPivo new AllowedInclude(new AnimeResourceSchema(), AnimeResourceResource::$wrap), new AllowedInclude(new ArtistResourceSchema(), ArtistResourceResource::$wrap), new AllowedInclude(new StudioResourceSchema(), StudioResourceResource::$wrap), - new AllowedInclude(new SongResourceSchema(), SongResourceResource::$wrap) + new AllowedInclude(new SongResourceSchema(), SongResourceResource::$wrap), ]; } diff --git a/app/Http/Api/Schema/Wiki/GroupSchema.php b/app/Http/Api/Schema/Wiki/GroupSchema.php index 7651cc34a..0e7d6aa8c 100644 --- a/app/Http/Api/Schema/Wiki/GroupSchema.php +++ b/app/Http/Api/Schema/Wiki/GroupSchema.php @@ -9,12 +9,9 @@ use App\Http\Api\Field\Base\IdField; use App\Http\Api\Field\Field; use App\Http\Api\Field\Wiki\Group\GroupNameField; use App\Http\Api\Field\Wiki\Group\GroupSlugField; -use App\Http\Api\Field\Wiki\Group\GroupVideoFilenameField; use App\Http\Api\Include\AllowedInclude; use App\Http\Api\Schema\EloquentSchema; use App\Http\Api\Schema\Wiki\Anime\ThemeSchema; -use App\Http\Api\Schema\Wiki\AnimeSchema; -use App\Http\Api\Schema\Wiki\VideoSchema; use App\Http\Resources\Wiki\Resource\GroupResource; use App\Models\Wiki\Group; diff --git a/app/Http/Api/Schema/Wiki/SongSchema.php b/app/Http/Api/Schema/Wiki/SongSchema.php index cbbbbff42..0eb886cd4 100644 --- a/app/Http/Api/Schema/Wiki/SongSchema.php +++ b/app/Http/Api/Schema/Wiki/SongSchema.php @@ -34,7 +34,7 @@ class SongSchema extends EloquentSchema implements InteractsWithPivots, Searchab { return [ new AllowedInclude(new ArtistSongSchema(), ArtistSongResource::$wrap), - new AllowedInclude(new SongResourceSchema(), SongResourceResource::$wrap) + new AllowedInclude(new SongResourceSchema(), SongResourceResource::$wrap), ]; } diff --git a/app/Http/Api/Scope/RelationScope.php b/app/Http/Api/Scope/RelationScope.php index 90ee5cace..9b086428d 100644 --- a/app/Http/Api/Scope/RelationScope.php +++ b/app/Http/Api/Scope/RelationScope.php @@ -16,9 +16,7 @@ class RelationScope extends Scope * * @param string $relation */ - public function __construct(protected readonly string $relation) - { - } + public function __construct(protected readonly string $relation) {} /** * Get the relation of the scope. diff --git a/app/Http/Api/Scope/ScopeParser.php b/app/Http/Api/Scope/ScopeParser.php index 4dca9c0bb..f40abc6cc 100644 --- a/app/Http/Api/Scope/ScopeParser.php +++ b/app/Http/Api/Scope/ScopeParser.php @@ -26,9 +26,9 @@ class ScopeParser if (Str::contains($scope, '.')) { return new RelationScope( Str::of($scope) - ->explode('.') - ->map(fn (string $scopePart) => Str::singular($scopePart)) - ->join('.') + ->explode('.') + ->map(fn (string $scopePart) => Str::singular($scopePart)) + ->join('.') ); } diff --git a/app/Http/Api/Scope/TypeScope.php b/app/Http/Api/Scope/TypeScope.php index 9dafe32e1..4ad9e102d 100644 --- a/app/Http/Api/Scope/TypeScope.php +++ b/app/Http/Api/Scope/TypeScope.php @@ -14,9 +14,7 @@ class TypeScope extends Scope * * @param string $type */ - public function __construct(protected readonly string $type) - { - } + public function __construct(protected readonly string $type) {} /** * Get the type of the scope. diff --git a/app/Http/Api/Sort/Sort.php b/app/Http/Api/Sort/Sort.php index cef04c342..7001821d7 100644 --- a/app/Http/Api/Sort/Sort.php +++ b/app/Http/Api/Sort/Sort.php @@ -23,8 +23,7 @@ class Sort protected readonly string $key, protected readonly ?string $column = null, protected readonly QualifyColumn $qualifyColumn = QualifyColumn::YES - ) { - } + ) {} /** * Get sort key value. @@ -53,7 +52,7 @@ class Sort */ public function shouldQualifyColumn(): bool { - return QualifyColumn::YES === $this->qualifyColumn; + return $this->qualifyColumn === QualifyColumn::YES; } /** diff --git a/app/Http/Controllers/Api/Auth/User/Me/List/MyNotificationController.php b/app/Http/Controllers/Api/Auth/User/Me/List/MyNotificationController.php index 23d48e904..c1408fcc6 100644 --- a/app/Http/Controllers/Api/Auth/User/Me/List/MyNotificationController.php +++ b/app/Http/Controllers/Api/Auth/User/Me/List/MyNotificationController.php @@ -6,8 +6,8 @@ namespace App\Http\Controllers\Api\Auth\User\Me\List; use App\Actions\Http\Api\IndexAction; use App\Http\Api\Query\Query; -use App\Http\Api\Schema\User\NotificationSchema; use App\Http\Api\Schema\Schema; +use App\Http\Api\Schema\User\NotificationSchema; use App\Http\Controllers\Api\BaseController; use App\Http\Middleware\Auth\Authenticate; use App\Http\Requests\Api\IndexRequest; diff --git a/app/Http/Controllers/Api/List/External/ExternalEntryController.php b/app/Http/Controllers/Api/List/External/ExternalEntryController.php index a57559cde..545d3440a 100644 --- a/app/Http/Controllers/Api/List/External/ExternalEntryController.php +++ b/app/Http/Controllers/Api/List/External/ExternalEntryController.php @@ -67,4 +67,4 @@ class ExternalEntryController extends BaseController return new ExternalEntryResource($show, $query); } -} \ No newline at end of file +} diff --git a/app/Http/Controllers/Api/List/ExternalProfileController.php b/app/Http/Controllers/Api/List/ExternalProfileController.php index a1cd6f34b..7f2d5b989 100644 --- a/app/Http/Controllers/Api/List/ExternalProfileController.php +++ b/app/Http/Controllers/Api/List/ExternalProfileController.php @@ -170,4 +170,4 @@ class ExternalProfileController extends BaseController 'message' => $message, ]); } -} \ No newline at end of file +} diff --git a/app/Http/Controllers/Api/Pivot/Wiki/SongResourceController.php b/app/Http/Controllers/Api/Pivot/Wiki/SongResourceController.php index dde21f92b..d57bc686a 100644 --- a/app/Http/Controllers/Api/Pivot/Wiki/SongResourceController.php +++ b/app/Http/Controllers/Api/Pivot/Wiki/SongResourceController.php @@ -17,8 +17,8 @@ use App\Http\Requests\Api\StoreRequest; use App\Http\Requests\Api\UpdateRequest; use App\Http\Resources\Pivot\Wiki\Collection\SongResourceCollection; use App\Http\Resources\Pivot\Wiki\Resource\SongResourceResource; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; use Illuminate\Http\JsonResponse; diff --git a/app/Http/Controllers/List/External/ExternalTokenAuthController.php b/app/Http/Controllers/List/External/ExternalTokenAuthController.php index db80baa75..89718731d 100644 --- a/app/Http/Controllers/List/External/ExternalTokenAuthController.php +++ b/app/Http/Controllers/List/External/ExternalTokenAuthController.php @@ -9,9 +9,9 @@ use App\Features\AllowExternalProfileManagement; use App\Http\Controllers\Controller; use App\Http\Middleware\Api\EnabledOnlyOnLocalhost; use App\Models\List\ExternalProfile; -use Illuminate\Http\Request; use Illuminate\Http\JsonResponse; use Illuminate\Http\RedirectResponse; +use Illuminate\Http\Request; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Str; @@ -39,7 +39,7 @@ class ExternalTokenAuthController extends Controller /** * This will redirect the user to the appropriate auth service. * - * @param Request $request + * @param Request $request * @return RedirectResponse|JsonResponse */ public function index(Request $request): RedirectResponse|JsonResponse diff --git a/app/Http/Controllers/List/External/ExternalTokenCallbackController.php b/app/Http/Controllers/List/External/ExternalTokenCallbackController.php index 9da89c2d6..17132797b 100644 --- a/app/Http/Controllers/List/External/ExternalTokenCallbackController.php +++ b/app/Http/Controllers/List/External/ExternalTokenCallbackController.php @@ -39,7 +39,7 @@ class ExternalTokenCallbackController extends Controller /** * This is the redirect URL which is set in the external provider. * - * @param Request $request + * @param Request $request * @return RedirectResponse|JsonResponse */ public function index(Request $request): RedirectResponse|JsonResponse diff --git a/app/Http/Controllers/List/SyncExternalProfileController.php b/app/Http/Controllers/List/SyncExternalProfileController.php index ef5267169..2476de6db 100644 --- a/app/Http/Controllers/List/SyncExternalProfileController.php +++ b/app/Http/Controllers/List/SyncExternalProfileController.php @@ -51,16 +51,16 @@ class SyncExternalProfileController extends Controller */ public function store(ExternalProfile $externalProfile) { - if (!$externalProfile->canBeSynced()) { + if (! $externalProfile->canBeSynced()) { return new JsonResponse([ - 'error' => 'This external profile cannot be synced at the moment.' + 'error' => 'This external profile cannot be synced at the moment.', ], 403); } $externalProfile->startSyncJob(); return new JsonResponse([ - 'message' => 'Job dispatched.' + 'message' => 'Job dispatched.', ], 201); } } diff --git a/app/Http/Controllers/Wiki/Audio/AudioController.php b/app/Http/Controllers/Wiki/Audio/AudioController.php index 18e965ab7..bc97ab2c8 100644 --- a/app/Http/Controllers/Wiki/Audio/AudioController.php +++ b/app/Http/Controllers/Wiki/Audio/AudioController.php @@ -24,8 +24,8 @@ class AudioController extends Controller /** * Stream audio through configured streaming method. * - * @param Audio $audio - * @param Request $request + * @param Audio $audio + * @param Request $request * @return Response */ public function show(Audio $audio, Request $request): Response diff --git a/app/Http/Controllers/Wiki/Video/VideoController.php b/app/Http/Controllers/Wiki/Video/VideoController.php index cf612d9f6..8fbcd54dd 100644 --- a/app/Http/Controllers/Wiki/Video/VideoController.php +++ b/app/Http/Controllers/Wiki/Video/VideoController.php @@ -24,8 +24,8 @@ class VideoController extends Controller /** * Stream video through configured streaming method. * - * @param Video $video - * @param Request $request + * @param Video $video + * @param Request $request * @return Response */ public function show(Video $video, Request $request): Response diff --git a/app/Http/Middleware/Api/EnabledOnlyOnLocalhost.php b/app/Http/Middleware/Api/EnabledOnlyOnLocalhost.php index 0fe719d27..6dddb4ad0 100644 --- a/app/Http/Middleware/Api/EnabledOnlyOnLocalhost.php +++ b/app/Http/Middleware/Api/EnabledOnlyOnLocalhost.php @@ -27,7 +27,7 @@ class EnabledOnlyOnLocalhost $ip = $request->ip(); if ($ip !== '127.0.0.1') { - abort(403, "Route only available for localhost"); + abort(403, 'Route only available for localhost'); } } diff --git a/app/Http/Middleware/Models/Admin/UserExceedsReportLimit.php b/app/Http/Middleware/Models/Admin/UserExceedsReportLimit.php index 0f47d6ca4..1bc4124c8 100644 --- a/app/Http/Middleware/Models/Admin/UserExceedsReportLimit.php +++ b/app/Http/Middleware/Models/Admin/UserExceedsReportLimit.php @@ -7,8 +7,8 @@ namespace App\Http\Middleware\Models\Admin; use App\Constants\Config\ReportConstants; use App\Enums\Auth\SpecialPermission; use App\Enums\Models\User\ApprovableStatus; -use App\Models\User\Report; use App\Models\Auth\User; +use App\Models\User\Report; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Config; diff --git a/app/Http/Middleware/Models/Pivot/AuthorizesPivot.php b/app/Http/Middleware/Models/Pivot/AuthorizesPivot.php index 0c768f80d..0d55740ba 100644 --- a/app/Http/Middleware/Models/Pivot/AuthorizesPivot.php +++ b/app/Http/Middleware/Models/Pivot/AuthorizesPivot.php @@ -44,7 +44,7 @@ class AuthorizesPivot default => false, }; - if (!$isAuthorized) { + if (! $isAuthorized) { abort(403); } diff --git a/app/Http/Middleware/Models/RecordView.php b/app/Http/Middleware/Models/RecordView.php index 1c8603c5c..662cf4df3 100644 --- a/app/Http/Middleware/Models/RecordView.php +++ b/app/Http/Middleware/Models/RecordView.php @@ -19,7 +19,7 @@ use Symfony\Component\HttpFoundation\Response; class RecordView { /** - * The viewable model + * The viewable model. * * @var (Viewable&Model)|null */ diff --git a/app/Http/Resources/User/Collection/NotificationCollection.php b/app/Http/Resources/User/Collection/NotificationCollection.php index 223e47406..28cc604fc 100644 --- a/app/Http/Resources/User/Collection/NotificationCollection.php +++ b/app/Http/Resources/User/Collection/NotificationCollection.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Http\Resources\User\Collection; -use App\Http\Resources\User\Resource\NotificationResource; use App\Http\Resources\BaseCollection; +use App\Http\Resources\User\Resource\NotificationResource; use App\Models\User\Notification; use Illuminate\Http\Request; diff --git a/app/Http/Resources/User/Resource/NotificationResource.php b/app/Http/Resources/User/Resource/NotificationResource.php index 04f0fe6ef..df113d8ff 100644 --- a/app/Http/Resources/User/Resource/NotificationResource.php +++ b/app/Http/Resources/User/Resource/NotificationResource.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Http\Resources\User\Resource; -use App\Http\Api\Schema\User\NotificationSchema; use App\Http\Api\Schema\Schema; +use App\Http\Api\Schema\User\NotificationSchema; use App\Http\Resources\BaseResource; /** diff --git a/app/Http/Resources/Wiki/Song/Resource/MembershipResource.php b/app/Http/Resources/Wiki/Song/Resource/MembershipResource.php index 4ce55a530..334f8c73a 100644 --- a/app/Http/Resources/Wiki/Song/Resource/MembershipResource.php +++ b/app/Http/Resources/Wiki/Song/Resource/MembershipResource.php @@ -6,7 +6,6 @@ namespace App\Http\Resources\Wiki\Song\Resource; use App\Http\Api\Schema\Schema; use App\Http\Api\Schema\Wiki\Song\MembershipSchema; -use App\Http\Api\Schema\Wiki\Song\PerformanceSchema; use App\Http\Resources\BaseResource; /** diff --git a/app/Jobs/SendDiscordNotificationJob.php b/app/Jobs/SendDiscordNotificationJob.php index e0b26769e..ebbb55462 100644 --- a/app/Jobs/SendDiscordNotificationJob.php +++ b/app/Jobs/SendDiscordNotificationJob.php @@ -33,9 +33,7 @@ class SendDiscordNotificationJob implements ShouldQueue * @param DiscordMessageEvent $event * @return void */ - public function __construct(protected readonly DiscordMessageEvent $event) - { - } + public function __construct(protected readonly DiscordMessageEvent $event) {} /** * Execute the job. diff --git a/app/Models/Admin/Feature.php b/app/Models/Admin/Feature.php index d814c0570..d2c318691 100644 --- a/app/Models/Admin/Feature.php +++ b/app/Models/Admin/Feature.php @@ -27,7 +27,7 @@ use Illuminate\Support\Carbon; * * @method static FeatureFactory factory(...$parameters) */ -class Feature extends Model implements Nameable, HasSubtitle +class Feature extends Model implements HasSubtitle, Nameable { use HasFactory; diff --git a/app/Models/Auth/User.php b/app/Models/Auth/User.php index c8c6c1e76..ddaaed0d0 100644 --- a/app/Models/Auth/User.php +++ b/app/Models/Auth/User.php @@ -4,19 +4,19 @@ declare(strict_types=1); namespace App\Models\Auth; -use App\Contracts\Models\Nameable; use App\Contracts\Models\HasSubtitle; +use App\Contracts\Models\Nameable; use App\Enums\Auth\SpecialPermission; use App\Events\Auth\User\UserCreated; use App\Events\Auth\User\UserDeleted; use App\Events\Auth\User\UserRestored; use App\Events\Auth\User\UserUpdated; use App\Models\Admin\ActionLog; -use App\Models\User\Report; -use App\Models\List\Playlist; use App\Models\List\ExternalProfile; +use App\Models\List\Playlist; use App\Models\User\Like; use App\Models\User\Notification; +use App\Models\User\Report; use App\Models\Wiki\Video; use App\Notifications\UserNotification; use Database\Factories\Auth\UserFactory; @@ -64,7 +64,7 @@ use Spatie\Permission\Traits\HasRoles; * * @method static UserFactory factory(...$parameters) */ -class User extends Authenticatable implements MustVerifyEmail, Nameable, HasSubtitle, FilamentUser, HasAvatar +class User extends Authenticatable implements FilamentUser, HasAvatar, HasSubtitle, MustVerifyEmail, Nameable { use HasApiTokens; use HasFactory; diff --git a/app/Models/BaseModel.php b/app/Models/BaseModel.php index f7b1fbd54..db8168c0d 100644 --- a/app/Models/BaseModel.php +++ b/app/Models/BaseModel.php @@ -23,12 +23,11 @@ use Illuminate\Support\Str; * @property Carbon $created_at * @property Carbon $deleted_at * @property Carbon $updated_at - * */ -abstract class BaseModel extends Model implements Nameable, HasSubtitle +abstract class BaseModel extends Model implements HasSubtitle, Nameable { - use ModelHasActionLogs; use HasFactory; + use ModelHasActionLogs; use Prunable; use SoftDeletes; diff --git a/app/Models/Discord/DiscordThread.php b/app/Models/Discord/DiscordThread.php index 02244f0a2..f0af02103 100644 --- a/app/Models/Discord/DiscordThread.php +++ b/app/Models/Discord/DiscordThread.php @@ -25,10 +25,10 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; * * @method static DiscordThreadFactory factory(...$parameters) */ -class DiscordThread extends Model implements Nameable, HasSubtitle +class DiscordThread extends Model implements HasSubtitle, Nameable { - use ModelHasActionLogs; use HasFactory; + use ModelHasActionLogs; final public const TABLE = 'discord_threads'; @@ -130,4 +130,4 @@ class DiscordThread extends Model implements Nameable, HasSubtitle { return $this->belongsTo(Anime::class, DiscordThread::ATTRIBUTE_ANIME); } -} \ No newline at end of file +} diff --git a/app/Models/List/External/ExternalEntry.php b/app/Models/List/External/ExternalEntry.php index 2a556eebc..6e6a8aa20 100644 --- a/app/Models/List/External/ExternalEntry.php +++ b/app/Models/List/External/ExternalEntry.php @@ -29,10 +29,10 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; * * @method static ExternalEntryFactory factory(...$parameters) */ -class ExternalEntry extends Model implements Nameable, HasSubtitle +class ExternalEntry extends Model implements HasSubtitle, Nameable { - use ModelHasActionLogs; use HasFactory; + use ModelHasActionLogs; final public const TABLE = 'external_entries'; diff --git a/app/Models/List/External/ExternalToken.php b/app/Models/List/External/ExternalToken.php index 32aa965c6..4d1ad4448 100644 --- a/app/Models/List/External/ExternalToken.php +++ b/app/Models/List/External/ExternalToken.php @@ -29,7 +29,7 @@ use Znck\Eloquent\Traits\BelongsToThrough as TraitsBelongsToThrough; * * @method static ExternalTokenFactory factory(...$parameters) */ -class ExternalToken extends Model implements Nameable, HasSubtitle +class ExternalToken extends Model implements HasSubtitle, Nameable { use HasFactory; use ModelHasActionLogs; diff --git a/app/Models/List/ExternalProfile.php b/app/Models/List/ExternalProfile.php index 7983b90df..a5180186b 100644 --- a/app/Models/List/ExternalProfile.php +++ b/app/Models/List/ExternalProfile.php @@ -177,7 +177,7 @@ class ExternalProfile extends BaseModel */ public function shouldBeSearchable(): bool { - return ExternalProfileVisibility::PUBLIC === $this->visibility; + return $this->visibility === ExternalProfileVisibility::PUBLIC; } /** @@ -197,7 +197,7 @@ class ExternalProfile extends BaseModel */ public function canBeSynced(): bool { - return !$this->synced_at || $this->synced_at->addHours(3)->isPast(); + return ! $this->synced_at || $this->synced_at->addHours(3)->isPast(); } /** @@ -212,7 +212,7 @@ class ExternalProfile extends BaseModel /** * Get the client URL for the profile. - * https://animethemes.moe/external/{mal|anilist}/{profile_name} + * https://animethemes.moe/external/{mal|anilist}/{profile_name}. * * @return string */ diff --git a/app/Models/List/Playlist.php b/app/Models/List/Playlist.php index 8d6cd2e06..db538ec39 100644 --- a/app/Models/List/Playlist.php +++ b/app/Models/List/Playlist.php @@ -50,13 +50,13 @@ use Illuminate\Support\Collection; * * @method static PlaylistFactory factory(...$parameters) */ -class Playlist extends BaseModel implements HasHashids, Likeable, Viewable, HasImages, HasAggregateLikes, HasAggregateViews +class Playlist extends BaseModel implements HasAggregateLikes, HasAggregateViews, HasHashids, HasImages, Likeable, Viewable { use AggregatesLike; use AggregatesView; use InteractsWithLikes; - use Searchable; use InteractsWithViews; + use Searchable; final public const TABLE = 'playlists'; @@ -191,7 +191,7 @@ class Playlist extends BaseModel implements HasHashids, Likeable, Viewable, HasI */ public function shouldBeSearchable(): bool { - return PlaylistVisibility::PUBLIC === $this->visibility; + return $this->visibility === PlaylistVisibility::PUBLIC; } /** diff --git a/app/Models/User/Like.php b/app/Models/User/Like.php index 6da0e4207..3ad140df5 100644 --- a/app/Models/User/Like.php +++ b/app/Models/User/Like.php @@ -55,7 +55,7 @@ class Like extends Model implements Nameable protected $fillable = [ Like::ATTRIBUTE_USER, Like::ATTRIBUTE_LIKEABLE_TYPE, - Like::ATTRIBUTE_LIKEABLE_ID + Like::ATTRIBUTE_LIKEABLE_ID, ]; /** diff --git a/app/Models/User/Report.php b/app/Models/User/Report.php index c1fba452a..10050f52d 100644 --- a/app/Models/User/Report.php +++ b/app/Models/User/Report.php @@ -7,8 +7,8 @@ namespace App\Models\User; use App\Contracts\Models\HasSubtitle; use App\Contracts\Models\Nameable; use App\Enums\Models\User\ApprovableStatus; -use App\Models\User\Report\ReportStep; use App\Models\Auth\User; +use App\Models\User\Report\ReportStep; use Database\Factories\User\ReportFactory; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -34,7 +34,7 @@ use Illuminate\Support\Collection; * @method static Builder pending() * @method static ReportFactory factory(...$parameters) */ -class Report extends Model implements Nameable, HasSubtitle +class Report extends Model implements HasSubtitle, Nameable { use HasFactory; diff --git a/app/Models/Wiki/Anime.php b/app/Models/Wiki/Anime.php index 7cb5c396f..53f004921 100644 --- a/app/Models/Wiki/Anime.php +++ b/app/Models/Wiki/Anime.php @@ -56,7 +56,7 @@ use Illuminate\Support\Collection; * * @method static AnimeFactory factory(...$parameters) */ -class Anime extends BaseModel implements HasResources, HasImages +class Anime extends BaseModel implements HasImages, HasResources { use Reportable; use Searchable; @@ -98,7 +98,7 @@ class Anime extends BaseModel implements HasResources, HasImages Anime::ATTRIBUTE_SLUG, Anime::ATTRIBUTE_SYNOPSIS, Anime::ATTRIBUTE_YEAR, - Anime::ATTRIBUTE_MEDIA_FORMAT + Anime::ATTRIBUTE_MEDIA_FORMAT, ]; /** diff --git a/app/Models/Wiki/Artist.php b/app/Models/Wiki/Artist.php index d494cbb62..3ac95e2ff 100644 --- a/app/Models/Wiki/Artist.php +++ b/app/Models/Wiki/Artist.php @@ -45,7 +45,7 @@ use Illuminate\Support\Collection; * * @method static ArtistFactory factory(...$parameters) */ -class Artist extends BaseModel implements HasResources, HasImages +class Artist extends BaseModel implements HasImages, HasResources { use Reportable; use Searchable; @@ -191,10 +191,12 @@ class Artist extends BaseModel implements HasResources, HasImages public function groupperformances() { return $this->hasManyThrough( - Performance::class, Membership::class, - 'member_id', 'artist_id' + Performance::class, + Membership::class, + 'member_id', + 'artist_id' )->select(['memberships.as', 'memberships.alias']) - ->where(Performance::ATTRIBUTE_ARTIST_TYPE, Membership::class); + ->where(Performance::ATTRIBUTE_ARTIST_TYPE, Membership::class); } public function memberships() diff --git a/app/Models/Wiki/Audio.php b/app/Models/Wiki/Audio.php index 0f95b368c..e1a3356da 100644 --- a/app/Models/Wiki/Audio.php +++ b/app/Models/Wiki/Audio.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace App\Models\Wiki; -use App\Concerns\Models\Reportable; use App\Concerns\Models\Aggregate\AggregatesView; +use App\Concerns\Models\Reportable; use App\Contracts\Models\HasAggregateViews; use App\Contracts\Models\Streamable; use App\Events\Wiki\Audio\AudioCreated; @@ -34,7 +34,7 @@ use Illuminate\Support\Collection; * * @method static AudioFactory factory(...$parameters) */ -class Audio extends BaseModel implements Streamable, Viewable, HasAggregateViews +class Audio extends BaseModel implements HasAggregateViews, Streamable, Viewable { use AggregatesView; use InteractsWithViews; diff --git a/app/Models/Wiki/Studio.php b/app/Models/Wiki/Studio.php index 9a2ffe9c2..7ad5a1ef2 100644 --- a/app/Models/Wiki/Studio.php +++ b/app/Models/Wiki/Studio.php @@ -34,7 +34,7 @@ use Illuminate\Support\Collection; * * @method static StudioFactory factory(...$parameters) */ -class Studio extends BaseModel implements HasResources, HasImages +class Studio extends BaseModel implements HasImages, HasResources { use Reportable; use Searchable; diff --git a/app/Models/Wiki/Video.php b/app/Models/Wiki/Video.php index c575acb9f..1bc1b1583 100644 --- a/app/Models/Wiki/Video.php +++ b/app/Models/Wiki/Video.php @@ -5,9 +5,9 @@ declare(strict_types=1); namespace App\Models\Wiki; use App\Concerns\Models\Aggregate\AggregatesLike; -use App\Concerns\Models\Reportable; use App\Concerns\Models\Aggregate\AggregatesView; use App\Concerns\Models\InteractsWithLikes; +use App\Concerns\Models\Reportable; use App\Contracts\Models\HasAggregateLikes; use App\Contracts\Models\HasAggregateViews; use App\Contracts\Models\Likeable; @@ -65,14 +65,14 @@ use Illuminate\Support\Collection; * * @method static VideoFactory factory(...$parameters) */ -class Video extends BaseModel implements Streamable, Likeable, Viewable, HasAggregateLikes, HasAggregateViews +class Video extends BaseModel implements HasAggregateLikes, HasAggregateViews, Likeable, Streamable, Viewable { use AggregatesLike; use AggregatesView; use InteractsWithLikes; + use InteractsWithViews; use Reportable; use Searchable; - use InteractsWithViews; final public const TABLE = 'videos'; @@ -186,7 +186,7 @@ class Video extends BaseModel implements Streamable, Likeable, Viewable, HasAggr if ($this->nc) { $tags[] = 'NC'; } - if (VideoSource::BD === $this->source || VideoSource::DVD === $this->source) { + if ($this->source === VideoSource::BD || $this->source === VideoSource::DVD) { $tags[] = $this->source->localize(); } if (! empty($this->resolution) && $this->resolution !== 720) { @@ -213,12 +213,12 @@ class Video extends BaseModel implements Streamable, Likeable, Viewable, HasAggr $priority = intval($this->source?->getPriority()); // Videos that play over the episode will likely have compressed audio - if (VideoOverlap::OVER === $this->overlap) { + if ($this->overlap === VideoOverlap::OVER) { $priority -= 8; } // Videos that transition to or from the episode may have compressed audio - if (VideoOverlap::TRANS === $this->overlap) { + if ($this->overlap === VideoOverlap::TRANS) { $priority -= 5; } diff --git a/app/Notifications/DiscordNotification.php b/app/Notifications/DiscordNotification.php index 0d21f6778..a90926073 100644 --- a/app/Notifications/DiscordNotification.php +++ b/app/Notifications/DiscordNotification.php @@ -25,9 +25,7 @@ class DiscordNotification extends Notification implements ShouldQueue * @param DiscordMessage $message * @return void */ - public function __construct(protected readonly DiscordMessage $message) - { - } + public function __construct(protected readonly DiscordMessage $message) {} /** * Get the notification's delivery channels. diff --git a/app/Pivots/Wiki/SongResource.php b/app/Pivots/Wiki/SongResource.php index c0716a82c..ff55100c6 100644 --- a/app/Pivots/Wiki/SongResource.php +++ b/app/Pivots/Wiki/SongResource.php @@ -7,8 +7,8 @@ namespace App\Pivots\Wiki; use App\Events\Pivot\Wiki\SongResource\SongResourceCreated; use App\Events\Pivot\Wiki\SongResource\SongResourceDeleted; use App\Events\Pivot\Wiki\SongResource\SongResourceUpdated; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\BasePivot; use Database\Factories\Pivots\Wiki\SongResourceFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; diff --git a/app/Policies/Admin/AnnouncementPolicy.php b/app/Policies/Admin/AnnouncementPolicy.php index 933004052..c295bf7c5 100644 --- a/app/Policies/Admin/AnnouncementPolicy.php +++ b/app/Policies/Admin/AnnouncementPolicy.php @@ -9,6 +9,4 @@ use App\Policies\BasePolicy; /** * Class AnnouncementPolicy. */ -class AnnouncementPolicy extends BasePolicy -{ -} +class AnnouncementPolicy extends BasePolicy {} diff --git a/app/Policies/Auth/PermissionPolicy.php b/app/Policies/Auth/PermissionPolicy.php index 75c4dcf40..2916586cb 100644 --- a/app/Policies/Auth/PermissionPolicy.php +++ b/app/Policies/Auth/PermissionPolicy.php @@ -154,4 +154,4 @@ class PermissionPolicy extends BasePolicy { return false; } -} \ No newline at end of file +} diff --git a/app/Policies/BasePolicy.php b/app/Policies/BasePolicy.php index 3e455a577..25b6a2741 100644 --- a/app/Policies/BasePolicy.php +++ b/app/Policies/BasePolicy.php @@ -108,7 +108,7 @@ abstract class BasePolicy ? $model->trashed() : false; - return (!$trashed && $user->can(CrudPermission::UPDATE->format(static::getModel()))); + return ! $trashed && $user->can(CrudPermission::UPDATE->format(static::getModel())); } /** @@ -124,7 +124,7 @@ abstract class BasePolicy ? $model->trashed() : false; - return (!$trashed && $user->can(CrudPermission::DELETE->format(static::getModel()))); + return ! $trashed && $user->can(CrudPermission::DELETE->format(static::getModel())); } /** @@ -173,7 +173,7 @@ abstract class BasePolicy ? $model->trashed() : false; - return ($trashed && $user->can(ExtendedCrudPermission::RESTORE->format(static::getModel()))); + return $trashed && $user->can(ExtendedCrudPermission::RESTORE->format(static::getModel())); } /** diff --git a/app/Policies/Discord/DiscordThreadPolicy.php b/app/Policies/Discord/DiscordThreadPolicy.php index 27b51c32f..aaa6b249c 100644 --- a/app/Policies/Discord/DiscordThreadPolicy.php +++ b/app/Policies/Discord/DiscordThreadPolicy.php @@ -9,6 +9,4 @@ use App\Policies\BasePolicy; /** * Class DiscordThreadPolicy. */ -class DiscordThreadPolicy extends BasePolicy -{ -} +class DiscordThreadPolicy extends BasePolicy {} diff --git a/app/Policies/Document/PagePolicy.php b/app/Policies/Document/PagePolicy.php index a3d98ca75..de7711d28 100644 --- a/app/Policies/Document/PagePolicy.php +++ b/app/Policies/Document/PagePolicy.php @@ -9,6 +9,4 @@ use App\Policies\BasePolicy; /** * Class PagePolicy. */ -class PagePolicy extends BasePolicy -{ -} +class PagePolicy extends BasePolicy {} diff --git a/app/Policies/List/External/ExternalEntryPolicy.php b/app/Policies/List/External/ExternalEntryPolicy.php index a2f9c5ad5..4095fda3a 100644 --- a/app/Policies/List/External/ExternalEntryPolicy.php +++ b/app/Policies/List/External/ExternalEntryPolicy.php @@ -9,8 +9,8 @@ use App\Enums\Auth\Role; use App\Enums\Models\List\ExternalProfileVisibility; use App\Models\Auth\User; use App\Models\BaseModel; -use App\Models\List\ExternalProfile; use App\Models\List\External\ExternalEntry; +use App\Models\List\ExternalProfile; use App\Policies\BasePolicy; use Filament\Facades\Filament; use Illuminate\Database\Eloquent\Model; @@ -36,11 +36,11 @@ class ExternalEntryPolicy extends BasePolicy $profile = request()->route('externalprofile'); if ($user !== null) { - return ($profile?->user()->is($user) || ExternalProfileVisibility::PRIVATE !== $profile?->visibility) + return ($profile?->user()->is($user) || $profile?->visibility !== ExternalProfileVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(ExternalEntry::class)); } - return ExternalProfileVisibility::PRIVATE !== $profile?->visibility; + return $profile?->visibility !== ExternalProfileVisibility::PRIVATE; } /** @@ -62,11 +62,11 @@ class ExternalEntryPolicy extends BasePolicy $profile = request()->route('externalprofile'); if ($user !== null) { - return ($profile?->user()->is($user) || ExternalProfileVisibility::PRIVATE !== $profile?->visibility) + return ($profile?->user()->is($user) || $profile?->visibility !== ExternalProfileVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(ExternalEntry::class)); } - return ExternalProfileVisibility::PRIVATE !== $profile?->visibility; + return $profile?->visibility !== ExternalProfileVisibility::PRIVATE; } /** diff --git a/app/Policies/List/ExternalProfilePolicy.php b/app/Policies/List/ExternalProfilePolicy.php index b883d16cc..2efbbce16 100644 --- a/app/Policies/List/ExternalProfilePolicy.php +++ b/app/Policies/List/ExternalProfilePolicy.php @@ -48,11 +48,11 @@ class ExternalProfilePolicy extends BasePolicy } if ($user !== null) { - return ($profile->user()->is($user) || ExternalProfileVisibility::PRIVATE !== $profile->visibility) + return ($profile->user()->is($user) || $profile->visibility !== ExternalProfileVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(ExternalProfile::class)); } - return ExternalProfileVisibility::PRIVATE !== $profile->visibility; + return $profile->visibility !== ExternalProfileVisibility::PRIVATE; } /** @@ -115,7 +115,7 @@ class ExternalProfilePolicy extends BasePolicy return $user->hasRole(Role::ADMIN->value); } - return$profile->user()->is($user) && parent::restore($user, $profile); + return $profile->user()->is($user) && parent::restore($user, $profile); } /** diff --git a/app/Policies/List/Playlist/PlaylistTrackPolicy.php b/app/Policies/List/Playlist/PlaylistTrackPolicy.php index 369c93cc5..e36dc256f 100644 --- a/app/Policies/List/Playlist/PlaylistTrackPolicy.php +++ b/app/Policies/List/Playlist/PlaylistTrackPolicy.php @@ -36,11 +36,11 @@ class PlaylistTrackPolicy extends BasePolicy $playlist = request()->route('playlist'); if ($user !== null) { - return ($playlist?->user()->is($user) || PlaylistVisibility::PRIVATE !== $playlist?->visibility) + return ($playlist?->user()->is($user) || $playlist?->visibility !== PlaylistVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(PlaylistTrack::class)); } - return PlaylistVisibility::PRIVATE !== $playlist?->visibility; + return $playlist?->visibility !== PlaylistVisibility::PRIVATE; } /** @@ -62,10 +62,10 @@ class PlaylistTrackPolicy extends BasePolicy $playlist = request()->route('playlist'); if ($user !== null) { - return ($playlist?->user()->is($user) || PlaylistVisibility::PRIVATE !== $playlist?->visibility) && $user->can(CrudPermission::VIEW->format(PlaylistTrack::class)); + return ($playlist?->user()->is($user) || $playlist?->visibility !== PlaylistVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(PlaylistTrack::class)); } - return PlaylistVisibility::PRIVATE !== $playlist?->visibility; + return $playlist?->visibility !== PlaylistVisibility::PRIVATE; } /** @@ -142,4 +142,4 @@ class PlaylistTrackPolicy extends BasePolicy return $playlist?->user()->is($user) && parent::restore($user, $track); } -} \ No newline at end of file +} diff --git a/app/Policies/List/PlaylistPolicy.php b/app/Policies/List/PlaylistPolicy.php index 94f990576..e87d1e5ae 100644 --- a/app/Policies/List/PlaylistPolicy.php +++ b/app/Policies/List/PlaylistPolicy.php @@ -50,11 +50,11 @@ class PlaylistPolicy extends BasePolicy } if ($user !== null) { - return ($playlist->user()->is($user) || PlaylistVisibility::PRIVATE !== $playlist->visibility) + return ($playlist->user()->is($user) || $playlist->visibility !== PlaylistVisibility::PRIVATE) && $user->can(CrudPermission::VIEW->format(Playlist::class)); } - return PlaylistVisibility::PRIVATE !== $playlist->visibility; + return $playlist->visibility !== PlaylistVisibility::PRIVATE; } /** @@ -161,7 +161,7 @@ class PlaylistPolicy extends BasePolicy ->where(PlaylistImage::ATTRIBUTE_IMAGE, $image->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Playlist::class)) && $user->can(CrudPermission::CREATE->format(Image::class)); } @@ -190,4 +190,4 @@ class PlaylistPolicy extends BasePolicy && $user->can(CrudPermission::DELETE->format(Playlist::class)) && $user->can(CrudPermission::DELETE->format(Image::class)); } -} \ No newline at end of file +} diff --git a/app/Policies/User/ReportPolicy.php b/app/Policies/User/ReportPolicy.php index 90cc4df30..1989f1826 100644 --- a/app/Policies/User/ReportPolicy.php +++ b/app/Policies/User/ReportPolicy.php @@ -6,9 +6,9 @@ namespace App\Policies\User; use App\Enums\Auth\CrudPermission; use App\Enums\Auth\Role; -use App\Models\User\Report; use App\Models\Auth\User; use App\Models\BaseModel; +use App\Models\User\Report; use App\Policies\BasePolicy; use Illuminate\Database\Eloquent\Model; diff --git a/app/Policies/Wiki/Anime/AnimeSynonymPolicy.php b/app/Policies/Wiki/Anime/AnimeSynonymPolicy.php index fc82a523d..2c795dfc5 100644 --- a/app/Policies/Wiki/Anime/AnimeSynonymPolicy.php +++ b/app/Policies/Wiki/Anime/AnimeSynonymPolicy.php @@ -9,6 +9,4 @@ use App\Policies\BasePolicy; /** * Class AnimeSynonymPolicy. */ -class AnimeSynonymPolicy extends BasePolicy -{ -} +class AnimeSynonymPolicy extends BasePolicy {} diff --git a/app/Policies/Wiki/Anime/Theme/AnimeThemeEntryPolicy.php b/app/Policies/Wiki/Anime/Theme/AnimeThemeEntryPolicy.php index 30881c21d..e755977fc 100644 --- a/app/Policies/Wiki/Anime/Theme/AnimeThemeEntryPolicy.php +++ b/app/Policies/Wiki/Anime/Theme/AnimeThemeEntryPolicy.php @@ -42,7 +42,7 @@ class AnimeThemeEntryPolicy extends BasePolicy ->where(AnimeThemeEntryVideo::ATTRIBUTE_VIDEO, $video->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(AnimeThemeEntry::class)) && $user->can(CrudPermission::CREATE->format(Video::class)); } diff --git a/app/Policies/Wiki/AnimePolicy.php b/app/Policies/Wiki/AnimePolicy.php index 8e9ee371c..9e215cfc0 100644 --- a/app/Policies/Wiki/AnimePolicy.php +++ b/app/Policies/Wiki/AnimePolicy.php @@ -73,7 +73,7 @@ class AnimePolicy extends BasePolicy ->where(AnimeSeries::ATTRIBUTE_SERIES, $series->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Anime::class)) && $user->can(CrudPermission::CREATE->format(Series::class)); } @@ -115,7 +115,7 @@ class AnimePolicy extends BasePolicy ->where(AnimeResource::ATTRIBUTE_RESOURCE, $resource->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Anime::class)) && $user->can(CrudPermission::CREATE->format(ExternalResource::class)); } @@ -157,7 +157,7 @@ class AnimePolicy extends BasePolicy ->where(AnimeImage::ATTRIBUTE_IMAGE, $image->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Anime::class)) && $user->can(CrudPermission::CREATE->format(Image::class)); } @@ -199,7 +199,7 @@ class AnimePolicy extends BasePolicy ->where(AnimeStudio::ATTRIBUTE_STUDIO, $studio->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Anime::class)) && $user->can(CrudPermission::CREATE->format(Studio::class)); } diff --git a/app/Policies/Wiki/ArtistPolicy.php b/app/Policies/Wiki/ArtistPolicy.php index 145f1b1dc..c95bb7fd3 100644 --- a/app/Policies/Wiki/ArtistPolicy.php +++ b/app/Policies/Wiki/ArtistPolicy.php @@ -47,7 +47,7 @@ class ArtistPolicy extends BasePolicy ->where(ArtistSong::ATTRIBUTE_SONG, $song->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Artist::class)) && $user->can(CrudPermission::CREATE->format(Song::class)); } @@ -89,7 +89,7 @@ class ArtistPolicy extends BasePolicy ->where(ArtistResource::ATTRIBUTE_RESOURCE, $resource->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Artist::class)) && $user->can(CrudPermission::CREATE->format(ExternalResource::class)); } @@ -131,7 +131,7 @@ class ArtistPolicy extends BasePolicy ->where(ArtistMember::ATTRIBUTE_MEMBER, $artist2->getKey()) ->exists(); - return !$attached && $user->can(CrudPermission::CREATE->format(Artist::class)); + return ! $attached && $user->can(CrudPermission::CREATE->format(Artist::class)); } /** @@ -171,7 +171,7 @@ class ArtistPolicy extends BasePolicy ->where(ArtistImage::ATTRIBUTE_IMAGE, $image->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Artist::class)) && $user->can(CrudPermission::CREATE->format(Image::class)); } diff --git a/app/Policies/Wiki/ExternalResourcePolicy.php b/app/Policies/Wiki/ExternalResourcePolicy.php index 8a5f8395e..752c54ea7 100644 --- a/app/Policies/Wiki/ExternalResourcePolicy.php +++ b/app/Policies/Wiki/ExternalResourcePolicy.php @@ -22,7 +22,7 @@ use App\Policies\BasePolicy; */ class ExternalResourcePolicy extends BasePolicy { - /** + /** * Determine whether the user can attach any anime to the resource. * * @param User $user @@ -33,7 +33,7 @@ class ExternalResourcePolicy extends BasePolicy return $user->can(CrudPermission::CREATE->format(ExternalResource::class)) && $user->can(CrudPermission::CREATE->format(Anime::class)); } - /** + /** * Determine whether the user can attach an anime to the resource. * * @param User $user @@ -48,7 +48,7 @@ class ExternalResourcePolicy extends BasePolicy ->where(AnimeResource::ATTRIBUTE_ANIME, $anime->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(ExternalResource::class)) && $user->can(CrudPermission::CREATE->format(Anime::class)); } @@ -90,9 +90,9 @@ class ExternalResourcePolicy extends BasePolicy ->where(ArtistResource::ATTRIBUTE_ARTIST, $artist->getKey()) ->exists(); - return !$attached - && $user->can(CrudPermission::CREATE->format(ExternalResource::class)) - && $user->can(CrudPermission::CREATE->format(Artist::class)); + return ! $attached + && $user->can(CrudPermission::CREATE->format(ExternalResource::class)) + && $user->can(CrudPermission::CREATE->format(Artist::class)); } /** @@ -132,7 +132,7 @@ class ExternalResourcePolicy extends BasePolicy ->where(SongResource::ATTRIBUTE_SONG, $song->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(ExternalResource::class)) && $user->can(CrudPermission::CREATE->format(Song::class)); } @@ -174,7 +174,7 @@ class ExternalResourcePolicy extends BasePolicy ->where(StudioResource::ATTRIBUTE_STUDIO, $studio->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(ExternalResource::class)) && $user->can(CrudPermission::CREATE->format(Studio::class)); } diff --git a/app/Policies/Wiki/ImagePolicy.php b/app/Policies/Wiki/ImagePolicy.php index b0a3096e7..bd9d07e15 100644 --- a/app/Policies/Wiki/ImagePolicy.php +++ b/app/Policies/Wiki/ImagePolicy.php @@ -47,7 +47,7 @@ class ImagePolicy extends BasePolicy ->where(ArtistImage::ATTRIBUTE_ARTIST, $artist->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Image::class)) && $user->can(CrudPermission::CREATE->format(Artist::class)); } @@ -89,7 +89,7 @@ class ImagePolicy extends BasePolicy ->where(AnimeImage::ATTRIBUTE_ANIME, $anime->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Image::class)) && $user->can(CrudPermission::CREATE->format(Anime::class)); } @@ -131,7 +131,7 @@ class ImagePolicy extends BasePolicy ->where(StudioImage::ATTRIBUTE_STUDIO, $studio->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Image::class)) && $user->can(CrudPermission::CREATE->format(Studio::class)); } diff --git a/app/Policies/Wiki/SeriesPolicy.php b/app/Policies/Wiki/SeriesPolicy.php index 2212a1d47..211c739e3 100644 --- a/app/Policies/Wiki/SeriesPolicy.php +++ b/app/Policies/Wiki/SeriesPolicy.php @@ -42,7 +42,7 @@ class SeriesPolicy extends BasePolicy ->where(AnimeSeries::ATTRIBUTE_ANIME, $anime->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Series::class)) && $user->can(CrudPermission::CREATE->format(Anime::class)); } diff --git a/app/Policies/Wiki/Song/MembershipPolicy.php b/app/Policies/Wiki/Song/MembershipPolicy.php index 21fc69b72..dd92c09de 100644 --- a/app/Policies/Wiki/Song/MembershipPolicy.php +++ b/app/Policies/Wiki/Song/MembershipPolicy.php @@ -9,6 +9,4 @@ use App\Policies\BasePolicy; /** * Class MembershipPolicy. */ -class MembershipPolicy extends BasePolicy -{ -} +class MembershipPolicy extends BasePolicy {} diff --git a/app/Policies/Wiki/Song/PerformancePolicy.php b/app/Policies/Wiki/Song/PerformancePolicy.php index 6068a4472..226804a46 100644 --- a/app/Policies/Wiki/Song/PerformancePolicy.php +++ b/app/Policies/Wiki/Song/PerformancePolicy.php @@ -9,6 +9,4 @@ use App\Policies\BasePolicy; /** * Class PerformancePolicy. */ -class PerformancePolicy extends BasePolicy -{ -} +class PerformancePolicy extends BasePolicy {} diff --git a/app/Policies/Wiki/SongPolicy.php b/app/Policies/Wiki/SongPolicy.php index 9ccb88380..b21388075 100644 --- a/app/Policies/Wiki/SongPolicy.php +++ b/app/Policies/Wiki/SongPolicy.php @@ -45,7 +45,7 @@ class SongPolicy extends BasePolicy ->where(ArtistSong::ATTRIBUTE_ARTIST, $artist->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Song::class)) && $user->can(CrudPermission::CREATE->format(Artist::class)); } @@ -98,7 +98,7 @@ class SongPolicy extends BasePolicy ->where(SongResource::ATTRIBUTE_RESOURCE, $resource->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Song::class)) && $user->can(CrudPermission::CREATE->format(ExternalResource::class)); } diff --git a/app/Policies/Wiki/StudioPolicy.php b/app/Policies/Wiki/StudioPolicy.php index a4da7672b..258366a29 100644 --- a/app/Policies/Wiki/StudioPolicy.php +++ b/app/Policies/Wiki/StudioPolicy.php @@ -46,7 +46,7 @@ class StudioPolicy extends BasePolicy ->where(AnimeStudio::ATTRIBUTE_ANIME, $anime->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Studio::class)) && $user->can(CrudPermission::CREATE->format(Anime::class)); } @@ -88,7 +88,7 @@ class StudioPolicy extends BasePolicy ->where(StudioResource::ATTRIBUTE_RESOURCE, $resource->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Studio::class)) && $user->can(CrudPermission::CREATE->format(ExternalResource::class)); } @@ -130,7 +130,7 @@ class StudioPolicy extends BasePolicy ->where(StudioImage::ATTRIBUTE_IMAGE, $image->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Studio::class)) && $user->can(CrudPermission::CREATE->format(Image::class)); } diff --git a/app/Policies/Wiki/Video/VideoScriptPolicy.php b/app/Policies/Wiki/Video/VideoScriptPolicy.php index 08c87bfe4..79c282617 100644 --- a/app/Policies/Wiki/Video/VideoScriptPolicy.php +++ b/app/Policies/Wiki/Video/VideoScriptPolicy.php @@ -9,6 +9,4 @@ use App\Policies\BasePolicy; /** * Class VideoScriptPolicy. */ -class VideoScriptPolicy extends BasePolicy -{ -} +class VideoScriptPolicy extends BasePolicy {} diff --git a/app/Policies/Wiki/VideoPolicy.php b/app/Policies/Wiki/VideoPolicy.php index c42a6b683..8d07ab616 100644 --- a/app/Policies/Wiki/VideoPolicy.php +++ b/app/Policies/Wiki/VideoPolicy.php @@ -43,7 +43,7 @@ class VideoPolicy extends BasePolicy ->where(AnimeThemeEntryVideo::ATTRIBUTE_ENTRY, $entry->getKey()) ->exists(); - return !$attached + return ! $attached && $user->can(CrudPermission::CREATE->format(Video::class)) && $user->can(CrudPermission::CREATE->format(AnimeThemeEntry::class)); } diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 0539962be..a47efe29f 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -8,8 +8,8 @@ use App\Http\Middleware\Models\RecordView; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Illuminate\Http\Response; -use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Log; use Illuminate\Support\ServiceProvider; use Laravel\Pennant\Middleware\EnsureFeaturesAreActive; diff --git a/app/Providers/GraphQLServiceProvider.php b/app/Providers/GraphQLServiceProvider.php index 5b9aa5207..dcbef34ad 100644 --- a/app/Providers/GraphQLServiceProvider.php +++ b/app/Providers/GraphQLServiceProvider.php @@ -72,12 +72,12 @@ class GraphQLServiceProvider extends ServiceProvider continue; } - $relativePath = str_replace($basePath . DIRECTORY_SEPARATOR, '', $file->getPath()); - $relativeNamespace = $relativePath ? '\\' . str_replace(DIRECTORY_SEPARATOR, '\\', $relativePath) : ''; + $relativePath = str_replace($basePath.DIRECTORY_SEPARATOR, '', $file->getPath()); + $relativeNamespace = $relativePath ? '\\'.str_replace(DIRECTORY_SEPARATOR, '\\', $relativePath) : ''; - $namespace = $baseNamespace . $relativeNamespace; + $namespace = $baseNamespace.$relativeNamespace; - if (!in_array($namespace, $modelNamespaces)) { + if (! in_array($namespace, $modelNamespaces)) { $modelNamespaces[] = $namespace; } } @@ -126,17 +126,17 @@ class GraphQLServiceProvider extends ServiceProvider $files = File::allFiles($path); foreach ($files as $file) { - $relativePath = Str::after($file->getPathname(), app_path() . DIRECTORY_SEPARATOR); + $relativePath = Str::after($file->getPathname(), app_path().DIRECTORY_SEPARATOR); $class = str_replace(['/', '.php'], ['\\', ''], $relativePath); - $fullClass = 'App\\' . $class; + $fullClass = 'App\\'.$class; - if (!class_exists($fullClass)) { + if (! class_exists($fullClass)) { continue; } $reflection = new ReflectionClass($fullClass); - if (!$reflection->isInstantiable()) { + if (! $reflection->isInstantiable()) { continue; } @@ -170,17 +170,17 @@ class GraphQLServiceProvider extends ServiceProvider $files = File::allFiles($path); foreach ($files as $file) { - $relativePath = Str::after($file->getPathname(), app_path() . DIRECTORY_SEPARATOR); + $relativePath = Str::after($file->getPathname(), app_path().DIRECTORY_SEPARATOR); $class = str_replace(['/', '.php'], ['\\', ''], $relativePath); - $fullClass = 'App\\' . $class; + $fullClass = 'App\\'.$class; - if (!class_exists($fullClass)) { + if (! class_exists($fullClass)) { continue; } $reflection = new ReflectionClass($fullClass); - if (!$reflection->isInstantiable()) { + if (! $reflection->isInstantiable()) { continue; } diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 3fa405572..d678c67cd 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -42,7 +42,7 @@ class RouteServiceProvider extends ServiceProvider // (If request is from client and no forwarded ip) or (the user logged in has permission to bypass API rate limiting) /** @phpstan-ignore-next-line */ - if (($ip === '127.0.0.1' && !$forwardedIp) || ($user instanceof User && $user->can(SpecialPermission::BYPASS_GRAPHQL_RATE_LIMITER->value))) { + if (($ip === '127.0.0.1' && ! $forwardedIp) || ($user instanceof User && $user->can(SpecialPermission::BYPASS_GRAPHQL_RATE_LIMITER->value))) { return Limit::none(); } @@ -61,7 +61,7 @@ class RouteServiceProvider extends ServiceProvider // (If request is from client and no forwarded ip) or (the user logged in has permission to bypass API rate limiting) /** @phpstan-ignore-next-line */ - if (($ip === '127.0.0.1' && !$forwardedIp) || ($user instanceof User && $user->can(SpecialPermission::BYPASS_API_RATE_LIMITER->value))) { + if (($ip === '127.0.0.1' && ! $forwardedIp) || ($user instanceof User && $user->can(SpecialPermission::BYPASS_API_RATE_LIMITER->value))) { return Limit::none(); } diff --git a/app/Providers/ViewableServiceProvider.php b/app/Providers/ViewableServiceProvider.php index 3361bb3ca..e1f2e6e29 100644 --- a/app/Providers/ViewableServiceProvider.php +++ b/app/Providers/ViewableServiceProvider.php @@ -24,4 +24,4 @@ class ViewableServiceProvider extends EloquentViewableServiceProvider $this->app->bind(ViewContract::class, View::class); } -} \ No newline at end of file +} diff --git a/app/Rules/Api/DelimitedRule.php b/app/Rules/Api/DelimitedRule.php index d40c65656..71062dce4 100644 --- a/app/Rules/Api/DelimitedRule.php +++ b/app/Rules/Api/DelimitedRule.php @@ -20,9 +20,7 @@ readonly class DelimitedRule implements ValidationRule * * @param string|array|ValidationRule $rule */ - public function __construct(protected string|array|ValidationRule $rule) - { - } + public function __construct(protected string|array|ValidationRule $rule) {} /** * Run the validation rule. diff --git a/app/Rules/Api/EnumLocalizedNameRule.php b/app/Rules/Api/EnumLocalizedNameRule.php index e2ab60ac2..b8ce1f4e0 100644 --- a/app/Rules/Api/EnumLocalizedNameRule.php +++ b/app/Rules/Api/EnumLocalizedNameRule.php @@ -19,9 +19,7 @@ readonly class EnumLocalizedNameRule implements ValidationRule * @param class-string $enumClass * @return void */ - public function __construct(protected string $enumClass) - { - } + public function __construct(protected string $enumClass) {} /** * Run the validation rule. diff --git a/app/Rules/Storage/StorageDirectoryExistsRule.php b/app/Rules/Storage/StorageDirectoryExistsRule.php index 61eee3529..db526e5ba 100644 --- a/app/Rules/Storage/StorageDirectoryExistsRule.php +++ b/app/Rules/Storage/StorageDirectoryExistsRule.php @@ -20,9 +20,7 @@ readonly class StorageDirectoryExistsRule implements ValidationRule * @param Filesystem $fs * @return void */ - public function __construct(protected Filesystem $fs) - { - } + public function __construct(protected Filesystem $fs) {} /** * Run the validation rule. diff --git a/app/Rules/Storage/StorageFileDirectoryExistsRule.php b/app/Rules/Storage/StorageFileDirectoryExistsRule.php index 7c20e3e94..5a60f35c0 100644 --- a/app/Rules/Storage/StorageFileDirectoryExistsRule.php +++ b/app/Rules/Storage/StorageFileDirectoryExistsRule.php @@ -21,9 +21,7 @@ readonly class StorageFileDirectoryExistsRule implements ValidationRule * @param Filesystem $fs * @return void */ - public function __construct(protected Filesystem $fs) - { - } + public function __construct(protected Filesystem $fs) {} /** * Run the validation rule. diff --git a/app/Rules/Wiki/Resource/AnimeResourceLinkFormatRule.php b/app/Rules/Wiki/Resource/AnimeResourceLinkFormatRule.php index ac552bc3a..9281f0ad7 100644 --- a/app/Rules/Wiki/Resource/AnimeResourceLinkFormatRule.php +++ b/app/Rules/Wiki/Resource/AnimeResourceLinkFormatRule.php @@ -21,9 +21,7 @@ readonly class AnimeResourceLinkFormatRule implements ValidationRule * * @param ResourceSite $site */ - public function __construct(protected ResourceSite $site) - { - } + public function __construct(protected ResourceSite $site) {} /** * Run the validation rule. diff --git a/app/Rules/Wiki/Resource/ArtistResourceLinkFormatRule.php b/app/Rules/Wiki/Resource/ArtistResourceLinkFormatRule.php index 8a7a3e81c..a004fa9c3 100644 --- a/app/Rules/Wiki/Resource/ArtistResourceLinkFormatRule.php +++ b/app/Rules/Wiki/Resource/ArtistResourceLinkFormatRule.php @@ -21,9 +21,7 @@ readonly class ArtistResourceLinkFormatRule implements ValidationRule * * @param ResourceSite $site */ - public function __construct(protected ResourceSite $site) - { - } + public function __construct(protected ResourceSite $site) {} /** * Run the validation rule. diff --git a/app/Rules/Wiki/Resource/ResourceLinkFormatRule.php b/app/Rules/Wiki/Resource/ResourceLinkFormatRule.php index 1c02a0afa..0ac550c23 100644 --- a/app/Rules/Wiki/Resource/ResourceLinkFormatRule.php +++ b/app/Rules/Wiki/Resource/ResourceLinkFormatRule.php @@ -43,9 +43,7 @@ class ResourceLinkFormatRule implements DataAwareRule, ValidationRule * * @param ResourceSite|null $site */ - public function __construct(protected ?ResourceSite $site = null) - { - } + public function __construct(protected ?ResourceSite $site = null) {} /** * Resolve the site. diff --git a/app/Rules/Wiki/Resource/ResourceSiteMatchesLinkRule.php b/app/Rules/Wiki/Resource/ResourceSiteMatchesLinkRule.php index dde8eeef2..fa50c7ffe 100644 --- a/app/Rules/Wiki/Resource/ResourceSiteMatchesLinkRule.php +++ b/app/Rules/Wiki/Resource/ResourceSiteMatchesLinkRule.php @@ -20,9 +20,7 @@ readonly class ResourceSiteMatchesLinkRule implements ValidationRule * @param string $link * @return void */ - public function __construct(protected string $link) - { - } + public function __construct(protected string $link) {} /** * Run the validation rule. diff --git a/app/Rules/Wiki/Resource/SongResourceLinkFormatRule.php b/app/Rules/Wiki/Resource/SongResourceLinkFormatRule.php index 467833ccd..f43eab942 100644 --- a/app/Rules/Wiki/Resource/SongResourceLinkFormatRule.php +++ b/app/Rules/Wiki/Resource/SongResourceLinkFormatRule.php @@ -21,9 +21,7 @@ readonly class SongResourceLinkFormatRule implements ValidationRule * * @param ResourceSite $site */ - public function __construct(protected ResourceSite $site) - { - } + public function __construct(protected ResourceSite $site) {} /** * Run the validation rule. diff --git a/app/Rules/Wiki/Resource/StudioResourceLinkFormatRule.php b/app/Rules/Wiki/Resource/StudioResourceLinkFormatRule.php index 083eca0a9..263b43169 100644 --- a/app/Rules/Wiki/Resource/StudioResourceLinkFormatRule.php +++ b/app/Rules/Wiki/Resource/StudioResourceLinkFormatRule.php @@ -21,9 +21,7 @@ readonly class StudioResourceLinkFormatRule implements ValidationRule * * @param ResourceSite $site */ - public function __construct(protected ResourceSite $site) - { - } + public function __construct(protected ResourceSite $site) {} /** * Run the validation rule. diff --git a/app/Rules/Wiki/Submission/Audio/AudioChannelLayoutStreamRule.php b/app/Rules/Wiki/Submission/Audio/AudioChannelLayoutStreamRule.php index 2022ff4ca..e646ced43 100644 --- a/app/Rules/Wiki/Submission/Audio/AudioChannelLayoutStreamRule.php +++ b/app/Rules/Wiki/Submission/Audio/AudioChannelLayoutStreamRule.php @@ -26,7 +26,9 @@ class AudioChannelLayoutStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $audio = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Audio/AudioChannelsStreamRule.php b/app/Rules/Wiki/Submission/Audio/AudioChannelsStreamRule.php index ddcaf55df..c7c5165e9 100644 --- a/app/Rules/Wiki/Submission/Audio/AudioChannelsStreamRule.php +++ b/app/Rules/Wiki/Submission/Audio/AudioChannelsStreamRule.php @@ -26,7 +26,9 @@ class AudioChannelsStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $audio = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Audio/AudioCodecStreamRule.php b/app/Rules/Wiki/Submission/Audio/AudioCodecStreamRule.php index 685770ce4..7500cb20b 100644 --- a/app/Rules/Wiki/Submission/Audio/AudioCodecStreamRule.php +++ b/app/Rules/Wiki/Submission/Audio/AudioCodecStreamRule.php @@ -26,7 +26,9 @@ class AudioCodecStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $audio = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Audio/AudioIndexStreamRule.php b/app/Rules/Wiki/Submission/Audio/AudioIndexStreamRule.php index 20b83641a..445781c13 100644 --- a/app/Rules/Wiki/Submission/Audio/AudioIndexStreamRule.php +++ b/app/Rules/Wiki/Submission/Audio/AudioIndexStreamRule.php @@ -21,9 +21,7 @@ class AudioIndexStreamRule extends SubmissionRule * * @param int $expected */ - public function __construct(protected readonly int $expected) - { - } + public function __construct(protected readonly int $expected) {} /** * Run the validation rule. @@ -35,7 +33,9 @@ class AudioIndexStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $stream = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Audio/AudioLoudnessIntegratedTargetStreamRule.php b/app/Rules/Wiki/Submission/Audio/AudioLoudnessIntegratedTargetStreamRule.php index 2afc2e1b2..2f07378bc 100644 --- a/app/Rules/Wiki/Submission/Audio/AudioLoudnessIntegratedTargetStreamRule.php +++ b/app/Rules/Wiki/Submission/Audio/AudioLoudnessIntegratedTargetStreamRule.php @@ -26,7 +26,9 @@ class AudioLoudnessIntegratedTargetStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $loudness = $this->loudness(); diff --git a/app/Rules/Wiki/Submission/Audio/AudioLoudnessTruePeakStreamRule.php b/app/Rules/Wiki/Submission/Audio/AudioLoudnessTruePeakStreamRule.php index b75a6d065..9a65f17c3 100644 --- a/app/Rules/Wiki/Submission/Audio/AudioLoudnessTruePeakStreamRule.php +++ b/app/Rules/Wiki/Submission/Audio/AudioLoudnessTruePeakStreamRule.php @@ -26,7 +26,9 @@ class AudioLoudnessTruePeakStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $loudness = $this->loudness(); diff --git a/app/Rules/Wiki/Submission/Audio/AudioSampleRateStreamRule.php b/app/Rules/Wiki/Submission/Audio/AudioSampleRateStreamRule.php index 6bdf2e43f..c0d46b347 100644 --- a/app/Rules/Wiki/Submission/Audio/AudioSampleRateStreamRule.php +++ b/app/Rules/Wiki/Submission/Audio/AudioSampleRateStreamRule.php @@ -26,7 +26,9 @@ class AudioSampleRateStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $audio = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Format/AudioBitrateRestrictionFormatRule.php b/app/Rules/Wiki/Submission/Format/AudioBitrateRestrictionFormatRule.php index d22c70b67..97cc88380 100644 --- a/app/Rules/Wiki/Submission/Format/AudioBitrateRestrictionFormatRule.php +++ b/app/Rules/Wiki/Submission/Format/AudioBitrateRestrictionFormatRule.php @@ -26,7 +26,9 @@ class AudioBitrateRestrictionFormatRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $format = $this->format(); diff --git a/app/Rules/Wiki/Submission/Format/EncoderNameFormatRule.php b/app/Rules/Wiki/Submission/Format/EncoderNameFormatRule.php index ebc27f118..bd053e0ab 100644 --- a/app/Rules/Wiki/Submission/Format/EncoderNameFormatRule.php +++ b/app/Rules/Wiki/Submission/Format/EncoderNameFormatRule.php @@ -27,7 +27,9 @@ class EncoderNameFormatRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $tags = $this->tags(); diff --git a/app/Rules/Wiki/Submission/Format/EncoderVersionFormatRule.php b/app/Rules/Wiki/Submission/Format/EncoderVersionFormatRule.php index 193170858..75a046808 100644 --- a/app/Rules/Wiki/Submission/Format/EncoderVersionFormatRule.php +++ b/app/Rules/Wiki/Submission/Format/EncoderVersionFormatRule.php @@ -26,7 +26,9 @@ class EncoderVersionFormatRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $tags = $this->tags(); diff --git a/app/Rules/Wiki/Submission/Format/ExtraneousChaptersFormatRule.php b/app/Rules/Wiki/Submission/Format/ExtraneousChaptersFormatRule.php index 7bb69e1a6..c65bb5d1e 100644 --- a/app/Rules/Wiki/Submission/Format/ExtraneousChaptersFormatRule.php +++ b/app/Rules/Wiki/Submission/Format/ExtraneousChaptersFormatRule.php @@ -25,7 +25,9 @@ class ExtraneousChaptersFormatRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } if (! empty($this->chapters())) { $fail(__('validation.submission.format_extraneous_chapters')); diff --git a/app/Rules/Wiki/Submission/Format/ExtraneousMetadataFormatRule.php b/app/Rules/Wiki/Submission/Format/ExtraneousMetadataFormatRule.php index 008244a0b..10c37c364 100644 --- a/app/Rules/Wiki/Submission/Format/ExtraneousMetadataFormatRule.php +++ b/app/Rules/Wiki/Submission/Format/ExtraneousMetadataFormatRule.php @@ -25,7 +25,9 @@ class ExtraneousMetadataFormatRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $tags = $this->tags(); diff --git a/app/Rules/Wiki/Submission/Format/FormatNameFormatRule.php b/app/Rules/Wiki/Submission/Format/FormatNameFormatRule.php index 02557128e..26c7135e1 100644 --- a/app/Rules/Wiki/Submission/Format/FormatNameFormatRule.php +++ b/app/Rules/Wiki/Submission/Format/FormatNameFormatRule.php @@ -21,9 +21,7 @@ class FormatNameFormatRule extends SubmissionRule * * @param string $expected */ - public function __construct(protected readonly string $expected) - { - } + public function __construct(protected readonly string $expected) {} /** * Run the validation rule. @@ -35,7 +33,9 @@ class FormatNameFormatRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $format = $this->format(); diff --git a/app/Rules/Wiki/Submission/Format/TotalStreamsFormatRule.php b/app/Rules/Wiki/Submission/Format/TotalStreamsFormatRule.php index 4b8cc54e2..7a8fb91a1 100644 --- a/app/Rules/Wiki/Submission/Format/TotalStreamsFormatRule.php +++ b/app/Rules/Wiki/Submission/Format/TotalStreamsFormatRule.php @@ -20,9 +20,7 @@ class TotalStreamsFormatRule extends SubmissionRule * * @param int $expected */ - public function __construct(protected readonly int $expected) - { - } + public function __construct(protected readonly int $expected) {} /** * Run the validation rule. @@ -34,7 +32,9 @@ class TotalStreamsFormatRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $streams = $this->streams(); diff --git a/app/Rules/Wiki/Submission/Format/VideoBitrateRestrictionFormatRule.php b/app/Rules/Wiki/Submission/Format/VideoBitrateRestrictionFormatRule.php index 263bb9b46..b316cf2cb 100644 --- a/app/Rules/Wiki/Submission/Format/VideoBitrateRestrictionFormatRule.php +++ b/app/Rules/Wiki/Submission/Format/VideoBitrateRestrictionFormatRule.php @@ -26,7 +26,9 @@ class VideoBitrateRestrictionFormatRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $format = $this->format(); diff --git a/app/Rules/Wiki/Submission/Video/VideoCodecStreamRule.php b/app/Rules/Wiki/Submission/Video/VideoCodecStreamRule.php index 308d30b29..784468158 100644 --- a/app/Rules/Wiki/Submission/Video/VideoCodecStreamRule.php +++ b/app/Rules/Wiki/Submission/Video/VideoCodecStreamRule.php @@ -26,7 +26,9 @@ class VideoCodecStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $video = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Video/VideoColorPrimariesStreamRule.php b/app/Rules/Wiki/Submission/Video/VideoColorPrimariesStreamRule.php index c36c8dd5d..6eb1311c5 100644 --- a/app/Rules/Wiki/Submission/Video/VideoColorPrimariesStreamRule.php +++ b/app/Rules/Wiki/Submission/Video/VideoColorPrimariesStreamRule.php @@ -26,8 +26,10 @@ class VideoColorPrimariesStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; - + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } + $video = Arr::first( $this->streams(), fn (array $stream) => Arr::get($stream, 'codec_type') === 'video' diff --git a/app/Rules/Wiki/Submission/Video/VideoColorSpaceStreamRule.php b/app/Rules/Wiki/Submission/Video/VideoColorSpaceStreamRule.php index a5c178588..dbd176eb9 100644 --- a/app/Rules/Wiki/Submission/Video/VideoColorSpaceStreamRule.php +++ b/app/Rules/Wiki/Submission/Video/VideoColorSpaceStreamRule.php @@ -26,7 +26,9 @@ class VideoColorSpaceStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $video = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Video/VideoColorTransferStreamRule.php b/app/Rules/Wiki/Submission/Video/VideoColorTransferStreamRule.php index 232a245ae..15076abba 100644 --- a/app/Rules/Wiki/Submission/Video/VideoColorTransferStreamRule.php +++ b/app/Rules/Wiki/Submission/Video/VideoColorTransferStreamRule.php @@ -26,7 +26,9 @@ class VideoColorTransferStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $video = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Video/VideoIndexStreamRule.php b/app/Rules/Wiki/Submission/Video/VideoIndexStreamRule.php index de889433e..4a8231a86 100644 --- a/app/Rules/Wiki/Submission/Video/VideoIndexStreamRule.php +++ b/app/Rules/Wiki/Submission/Video/VideoIndexStreamRule.php @@ -26,7 +26,9 @@ class VideoIndexStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $stream = Arr::first( $this->streams(), diff --git a/app/Rules/Wiki/Submission/Video/VideoPixelFormatStreamRule.php b/app/Rules/Wiki/Submission/Video/VideoPixelFormatStreamRule.php index 365d00194..148817c12 100644 --- a/app/Rules/Wiki/Submission/Video/VideoPixelFormatStreamRule.php +++ b/app/Rules/Wiki/Submission/Video/VideoPixelFormatStreamRule.php @@ -26,7 +26,9 @@ class VideoPixelFormatStreamRule extends SubmissionRule */ public function validate(string $attribute, mixed $value, Closure $fail): void { - if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) return; + if (Feature::for(null)->active(FeatureConstants::IGNORE_ALL_FILE_VALIDATIONS)) { + return; + } $video = Arr::first( $this->streams(), diff --git a/app/Scopes/WithoutInsertSongScope.php b/app/Scopes/WithoutInsertSongScope.php index ae259b63a..f9f30784f 100644 --- a/app/Scopes/WithoutInsertSongScope.php +++ b/app/Scopes/WithoutInsertSongScope.php @@ -7,9 +7,9 @@ namespace App\Scopes; use App\Enums\Models\Wiki\ThemeType; use App\Models\Wiki\Anime\AnimeTheme; use Filament\Facades\Filament; -use Illuminate\Database\Eloquent\Scope; -use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Scope; /** * Class WithoutInsertSongScope. @@ -31,4 +31,4 @@ class WithoutInsertSongScope implements Scope $builder->whereNot(AnimeTheme::ATTRIBUTE_TYPE, ThemeType::IN->value); } -} \ No newline at end of file +} diff --git a/app/Scout/Elasticsearch/Api/Criteria/Filter/Criteria.php b/app/Scout/Elasticsearch/Api/Criteria/Filter/Criteria.php index 66e613616..e2575822d 100644 --- a/app/Scout/Elasticsearch/Api/Criteria/Filter/Criteria.php +++ b/app/Scout/Elasticsearch/Api/Criteria/Filter/Criteria.php @@ -19,9 +19,7 @@ abstract class Criteria * * @param BaseCriteria $criteria */ - public function __construct(protected readonly BaseCriteria $criteria) - { - } + public function __construct(protected readonly BaseCriteria $criteria) {} /** * Apply criteria to builder. diff --git a/app/Scout/Elasticsearch/Api/Criteria/Filter/WhereCriteria.php b/app/Scout/Elasticsearch/Api/Criteria/Filter/WhereCriteria.php index cb514ea59..ff1f9e46d 100644 --- a/app/Scout/Elasticsearch/Api/Criteria/Filter/WhereCriteria.php +++ b/app/Scout/Elasticsearch/Api/Criteria/Filter/WhereCriteria.php @@ -42,15 +42,15 @@ class WhereCriteria extends Criteria { $clause = $this->getElasticsearchClause($filter); - if (BinaryLogicalOperator::OR === $this->criteria->getLogicalOperator()) { - if (ComparisonOperator::NE === $this->criteria->getComparisonOperator()) { + if ($this->criteria->getLogicalOperator() === BinaryLogicalOperator::OR) { + if ($this->criteria->getComparisonOperator() === ComparisonOperator::NE) { return $builder->should(new BoolQueryBuilder()->mustNot($clause)); } return $builder->should($clause); } - if (ComparisonOperator::NE === $this->criteria->getComparisonOperator()) { + if ($this->criteria->getComparisonOperator() === ComparisonOperator::NE) { return $builder->mustNot($clause); } diff --git a/app/Scout/Elasticsearch/Api/Criteria/Filter/WhereInCriteria.php b/app/Scout/Elasticsearch/Api/Criteria/Filter/WhereInCriteria.php index b637aed14..6bcbe2cb5 100644 --- a/app/Scout/Elasticsearch/Api/Criteria/Filter/WhereInCriteria.php +++ b/app/Scout/Elasticsearch/Api/Criteria/Filter/WhereInCriteria.php @@ -43,7 +43,7 @@ class WhereInCriteria extends Criteria $clause = ElasticQuery::terms()->field($filter->getColumn())->values($filterValues); - if (BinaryLogicalOperator::OR === $this->criteria->getLogicalOperator()) { + if ($this->criteria->getLogicalOperator() === BinaryLogicalOperator::OR) { if ($this->not) { return $builder->should(new BoolQueryBuilder()->mustNot($clause)); } diff --git a/app/Scout/Elasticsearch/Api/Criteria/Paging/Criteria.php b/app/Scout/Elasticsearch/Api/Criteria/Paging/Criteria.php index ca43ca9f9..2c224c041 100644 --- a/app/Scout/Elasticsearch/Api/Criteria/Paging/Criteria.php +++ b/app/Scout/Elasticsearch/Api/Criteria/Paging/Criteria.php @@ -20,9 +20,7 @@ abstract class Criteria * * @param BaseCriteria $criteria */ - public function __construct(protected readonly BaseCriteria $criteria) - { - } + public function __construct(protected readonly BaseCriteria $criteria) {} /** * Get the intended pagination strategy. diff --git a/app/Scout/Elasticsearch/Api/Criteria/Sort/Criteria.php b/app/Scout/Elasticsearch/Api/Criteria/Sort/Criteria.php index a9724e5d9..18c8835f2 100644 --- a/app/Scout/Elasticsearch/Api/Criteria/Sort/Criteria.php +++ b/app/Scout/Elasticsearch/Api/Criteria/Sort/Criteria.php @@ -17,9 +17,7 @@ abstract class Criteria * * @param BaseCriteria $criteria */ - public function __construct(protected readonly BaseCriteria $criteria) - { - } + public function __construct(protected readonly BaseCriteria $criteria) {} /** * Apply criteria to builder. diff --git a/app/Scout/Elasticsearch/Api/Field/Field.php b/app/Scout/Elasticsearch/Api/Field/Field.php index f9ce81c1d..f8a640c4c 100644 --- a/app/Scout/Elasticsearch/Api/Field/Field.php +++ b/app/Scout/Elasticsearch/Api/Field/Field.php @@ -25,8 +25,7 @@ abstract class Field implements FieldInterface protected readonly string $key, protected readonly ?string $searchField = null, protected readonly ?string $sortField = null - ) { - } + ) {} /** * Get the schema. diff --git a/app/Scout/Elasticsearch/Api/Query/ElasticQuery.php b/app/Scout/Elasticsearch/Api/Query/ElasticQuery.php index cb1780fd4..2d559fb86 100644 --- a/app/Scout/Elasticsearch/Api/Query/ElasticQuery.php +++ b/app/Scout/Elasticsearch/Api/Query/ElasticQuery.php @@ -78,7 +78,7 @@ abstract class ElasticQuery protected function createNestedQuery(string $nestedResource, array $nestedQueries): array { return array_map( - fn(array $nestedQuery) => [ + fn (array $nestedQuery) => [ 'nested' => [ 'path' => $nestedResource, 'query' => $nestedQuery, diff --git a/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/SynonymQuery.php b/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/SynonymQuery.php index f04d8c6c3..048ad2c9a 100644 --- a/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/SynonymQuery.php +++ b/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/SynonymQuery.php @@ -28,22 +28,22 @@ class SynonymQuery extends ElasticQuery $query = Query::bool() ->should( new MatchPhraseQueryBuilder() - ->field('text') - ->query($criteria->getTerm()) + ->field('text') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('text') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('text') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('text') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('text') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->minimumShouldMatch(1); diff --git a/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/Theme/EntryQuery.php b/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/Theme/EntryQuery.php index 4e83904de..8e5e60052 100644 --- a/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/Theme/EntryQuery.php +++ b/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/Theme/EntryQuery.php @@ -29,220 +29,220 @@ class EntryQuery extends ElasticQuery $query = Query::bool() ->should( new MatchPhraseQueryBuilder() - ->field('version') - ->query($criteria->getTerm()) + ->field('version') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('version') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('version') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('version') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('version') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new MatchPhraseQueryBuilder() - ->field('version_slug') - ->query($criteria->getTerm()) + ->field('version_slug') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('version_slug') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('version_slug') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('version_slug') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('version_slug') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new MatchPhraseQueryBuilder() - ->field('anime_slug') - ->query($criteria->getTerm()) + ->field('anime_slug') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('anime_slug') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('anime_slug') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('anime_slug') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('anime_slug') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new MatchPhraseQueryBuilder() - ->field('synonym_slug') - ->query($criteria->getTerm()) + ->field('synonym_slug') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('synonym_slug') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('synonym_slug') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('synonym_slug') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('synonym_slug') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.anime') - ->query( - new MatchPhraseQueryBuilder() - ->field('theme.anime.name') - ->query($criteria->getTerm()) - ) - ) - ) - ->should( - new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.anime') - ->query( - new MatchQueryBuilder() - ->field('theme.anime.name') - ->query($criteria->getTerm()) - ->operator('AND') - ) - ) - ) - ->should( - new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.anime') - ->query( - new MatchQueryBuilder() - ->field('theme.anime.name') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') - ) - ) - ) - ->should( - new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.anime') + ->path('theme') ->query( new NestedQueryBuilder() - ->path('theme.anime.synonyms') - ->query( - new MatchPhraseQueryBuilder() - ->field('theme.anime.synonyms.text') - ->query($criteria->getTerm()) - ) + ->path('theme.anime') + ->query( + new MatchPhraseQueryBuilder() + ->field('theme.anime.name') + ->query($criteria->getTerm()) + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.anime') + ->path('theme') ->query( new NestedQueryBuilder() - ->path('theme.anime.synonyms') - ->query( - new MatchQueryBuilder() - ->field('theme.anime.synonyms.text') - ->query($criteria->getTerm()) - ->operator('AND') - ) + ->path('theme.anime') + ->query( + new MatchQueryBuilder() + ->field('theme.anime.name') + ->query($criteria->getTerm()) + ->operator('AND') + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.anime') + ->path('theme') ->query( new NestedQueryBuilder() - ->path('theme.anime.synonyms') - ->query( - new MatchQueryBuilder() - ->field('theme.anime.synonyms.text') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') - ) + ->path('theme.anime') + ->query( + new MatchQueryBuilder() + ->field('theme.anime.name') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.song') + ->path('theme') ->query( - new MatchPhraseQueryBuilder() - ->field('theme.song.title') - ->query($criteria->getTerm()) + new NestedQueryBuilder() + ->path('theme.anime') + ->query( + new NestedQueryBuilder() + ->path('theme.anime.synonyms') + ->query( + new MatchPhraseQueryBuilder() + ->field('theme.anime.synonyms.text') + ->query($criteria->getTerm()) + ) + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.song') + ->path('theme') ->query( - new MatchQueryBuilder() - ->field('theme.song.title') - ->query($criteria->getTerm()) - ->operator('AND') + new NestedQueryBuilder() + ->path('theme.anime') + ->query( + new NestedQueryBuilder() + ->path('theme.anime.synonyms') + ->query( + new MatchQueryBuilder() + ->field('theme.anime.synonyms.text') + ->query($criteria->getTerm()) + ->operator('AND') + ) + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('theme') - ->query( - new NestedQueryBuilder() - ->path('theme.song') + ->path('theme') ->query( - new MatchQueryBuilder() - ->field('theme.song.title') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + new NestedQueryBuilder() + ->path('theme.anime') + ->query( + new NestedQueryBuilder() + ->path('theme.anime.synonyms') + ->query( + new MatchQueryBuilder() + ->field('theme.anime.synonyms.text') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') + ) + ) + ) + ) + ->should( + new NestedQueryBuilder() + ->path('theme') + ->query( + new NestedQueryBuilder() + ->path('theme.song') + ->query( + new MatchPhraseQueryBuilder() + ->field('theme.song.title') + ->query($criteria->getTerm()) + ) + ) + ) + ->should( + new NestedQueryBuilder() + ->path('theme') + ->query( + new NestedQueryBuilder() + ->path('theme.song') + ->query( + new MatchQueryBuilder() + ->field('theme.song.title') + ->query($criteria->getTerm()) + ->operator('AND') + ) + ) + ) + ->should( + new NestedQueryBuilder() + ->path('theme') + ->query( + new NestedQueryBuilder() + ->path('theme.song') + ->query( + new MatchQueryBuilder() + ->field('theme.song.title') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') + ) ) - ) ) ->minimumShouldMatch(1); diff --git a/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/ThemeQuery.php b/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/ThemeQuery.php index 582a1cd60..81fc8e687 100644 --- a/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/ThemeQuery.php +++ b/app/Scout/Elasticsearch/Api/Query/Wiki/Anime/ThemeQuery.php @@ -60,7 +60,7 @@ class ThemeQuery extends ElasticQuery 'boost' => 0.75, 'should' => $this->createTextQuery('slug', $criteria->getTerm()), ], - ] + ], ], ], ]); diff --git a/app/Scout/Elasticsearch/Api/Query/Wiki/ArtistQuery.php b/app/Scout/Elasticsearch/Api/Query/Wiki/ArtistQuery.php index f3c65b112..e8c0712cc 100644 --- a/app/Scout/Elasticsearch/Api/Query/Wiki/ArtistQuery.php +++ b/app/Scout/Elasticsearch/Api/Query/Wiki/ArtistQuery.php @@ -29,65 +29,65 @@ class ArtistQuery extends ElasticQuery $query = Query::bool() ->should( new MatchPhraseQueryBuilder() - ->field('name') - ->query($criteria->getTerm()) + ->field('name') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('name') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('name') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('name') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('name') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new NestedQueryBuilder() - ->path('songs') - ->query( - new NestedQueryBuilder() - ->path('songs.pivot') + ->path('songs') ->query( - new MatchPhraseQueryBuilder() - ->field('songs.pivot.as') - ->query($criteria->getTerm()) + new NestedQueryBuilder() + ->path('songs.pivot') + ->query( + new MatchPhraseQueryBuilder() + ->field('songs.pivot.as') + ->query($criteria->getTerm()) + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('songs') - ->query( - new NestedQueryBuilder() - ->path('songs.pivot') + ->path('songs') ->query( - new MatchQueryBuilder() - ->field('songs.pivot.as') - ->query($criteria->getTerm()) - ->operator('AND') + new NestedQueryBuilder() + ->path('songs.pivot') + ->query( + new MatchQueryBuilder() + ->field('songs.pivot.as') + ->query($criteria->getTerm()) + ->operator('AND') + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('songs') - ->query( - new NestedQueryBuilder() - ->path('songs.pivot') + ->path('songs') ->query( - new MatchQueryBuilder() - ->field('songs.pivot.as') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + new NestedQueryBuilder() + ->path('songs.pivot') + ->query( + new MatchQueryBuilder() + ->field('songs.pivot.as') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') + ) ) - ) ) ->minimumShouldMatch(1); diff --git a/app/Scout/Elasticsearch/Api/Query/Wiki/SeriesQuery.php b/app/Scout/Elasticsearch/Api/Query/Wiki/SeriesQuery.php index 03c4b53ad..7df163ece 100644 --- a/app/Scout/Elasticsearch/Api/Query/Wiki/SeriesQuery.php +++ b/app/Scout/Elasticsearch/Api/Query/Wiki/SeriesQuery.php @@ -29,8 +29,8 @@ class SeriesQuery extends ElasticQuery 'queries' => [ [ 'bool' => [ - 'should' => $this->createTextQuery('name', $criteria->getTerm()) - ] + 'should' => $this->createTextQuery('name', $criteria->getTerm()), + ], ], [ 'bool' => [ @@ -38,11 +38,11 @@ class SeriesQuery extends ElasticQuery 'should' => $this->createNestedQuery( 'anime', $this->createNestedTextQuery('anime.synonyms', 'text', $criteria->getTerm()) - ) - ] - ] - ] - ] + ), + ], + ], + ], + ], ]); return Series::searchQuery($query); diff --git a/app/Scout/Elasticsearch/Api/Query/Wiki/SongQuery.php b/app/Scout/Elasticsearch/Api/Query/Wiki/SongQuery.php index dbe284030..41e8c5bf6 100644 --- a/app/Scout/Elasticsearch/Api/Query/Wiki/SongQuery.php +++ b/app/Scout/Elasticsearch/Api/Query/Wiki/SongQuery.php @@ -28,22 +28,22 @@ class SongQuery extends ElasticQuery $query = Query::bool() ->should( new MatchPhraseQueryBuilder() - ->field('title') - ->query($criteria->getTerm()) + ->field('title') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('title') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('title') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('title') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('title') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->minimumShouldMatch(1); diff --git a/app/Scout/Elasticsearch/Api/Query/Wiki/VideoQuery.php b/app/Scout/Elasticsearch/Api/Query/Wiki/VideoQuery.php index cdf6dad10..8ebea1add 100644 --- a/app/Scout/Elasticsearch/Api/Query/Wiki/VideoQuery.php +++ b/app/Scout/Elasticsearch/Api/Query/Wiki/VideoQuery.php @@ -29,294 +29,294 @@ class VideoQuery extends ElasticQuery $query = Query::bool() ->should( new MatchPhraseQueryBuilder() - ->field('filename') - ->query($criteria->getTerm()) + ->field('filename') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('filename') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('filename') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('filename') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('filename') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new MatchPhraseQueryBuilder() - ->field('tags') - ->query($criteria->getTerm()) + ->field('tags') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('tags') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('tags') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('tags') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('tags') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new MatchPhraseQueryBuilder() - ->field('tags_slug') - ->query($criteria->getTerm()) + ->field('tags_slug') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('tags_slug') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('tags_slug') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('tags_slug') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('tags_slug') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new MatchPhraseQueryBuilder() - ->field('version_slug') - ->query($criteria->getTerm()) + ->field('version_slug') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('version_slug') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('version_slug') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('version_slug') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('version_slug') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new MatchPhraseQueryBuilder() - ->field('anime_slug') - ->query($criteria->getTerm()) + ->field('anime_slug') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('anime_slug') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('anime_slug') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('anime_slug') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('anime_slug') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new MatchPhraseQueryBuilder() - ->field('synonym_slug') - ->query($criteria->getTerm()) + ->field('synonym_slug') + ->query($criteria->getTerm()) ) ->should( new MatchQueryBuilder() - ->field('synonym_slug') - ->query($criteria->getTerm()) - ->operator('AND') + ->field('synonym_slug') + ->query($criteria->getTerm()) + ->operator('AND') ) ->should( new MatchQueryBuilder() - ->field('synonym_slug') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + ->field('synonym_slug') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') ) ->should( new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') + ->path('entries') ->query( new NestedQueryBuilder() - ->path('entries.theme.anime') - ->query( - new MatchPhraseQueryBuilder() - ->field('entries.theme.anime.name') - ->query($criteria->getTerm()) - ) - ) - ) - ) - ->should( - new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') - ->query( - new NestedQueryBuilder() - ->path('entries.theme.anime') - ->query( - new MatchQueryBuilder() - ->field('entries.theme.anime.name') - ->query($criteria->getTerm()) - ->operator('AND') - ) - ) - ) - ) - ->should( - new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') - ->query( - new NestedQueryBuilder() - ->path('entries.theme.anime') - ->query( - new MatchQueryBuilder() - ->field('entries.theme.anime.name') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') - ) - ) - ) - ) - ->should( - new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') - ->query( - new NestedQueryBuilder() - ->path('entries.theme.anime') - ->query( - new NestedQueryBuilder() - ->path('entries.theme.anime.synonyms') + ->path('entries.theme') ->query( - new MatchPhraseQueryBuilder() - ->field('entries.theme.anime.synonyms.text') - ->query($criteria->getTerm()) + new NestedQueryBuilder() + ->path('entries.theme.anime') + ->query( + new MatchPhraseQueryBuilder() + ->field('entries.theme.anime.name') + ->query($criteria->getTerm()) + ) ) - ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') + ->path('entries') ->query( new NestedQueryBuilder() - ->path('entries.theme.anime') - ->query( - new NestedQueryBuilder() - ->path('entries.theme.anime.synonyms') + ->path('entries.theme') ->query( - new MatchQueryBuilder() - ->field('entries.theme.anime.synonyms.text') - ->query($criteria->getTerm()) - ->operator('AND') + new NestedQueryBuilder() + ->path('entries.theme.anime') + ->query( + new MatchQueryBuilder() + ->field('entries.theme.anime.name') + ->query($criteria->getTerm()) + ->operator('AND') + ) ) - ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') + ->path('entries') ->query( new NestedQueryBuilder() - ->path('entries.theme.anime') - ->query( - new NestedQueryBuilder() - ->path('entries.theme.anime.synonyms') + ->path('entries.theme') ->query( - new MatchQueryBuilder() - ->field('entries.theme.anime.synonyms.text') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') + new NestedQueryBuilder() + ->path('entries.theme.anime') + ->query( + new MatchQueryBuilder() + ->field('entries.theme.anime.name') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') + ) ) - ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') + ->path('entries') ->query( new NestedQueryBuilder() - ->path('entries.theme.song') - ->query( - new MatchPhraseQueryBuilder() - ->field('entries.theme.song.title') - ->query($criteria->getTerm()) - ) + ->path('entries.theme') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.anime') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.anime.synonyms') + ->query( + new MatchPhraseQueryBuilder() + ->field('entries.theme.anime.synonyms.text') + ->query($criteria->getTerm()) + ) + ) + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') + ->path('entries') ->query( new NestedQueryBuilder() - ->path('entries.theme.song') - ->query( - new MatchQueryBuilder() - ->field('entries.theme.song.title') - ->query($criteria->getTerm()) - ->operator('AND') - ) + ->path('entries.theme') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.anime') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.anime.synonyms') + ->query( + new MatchQueryBuilder() + ->field('entries.theme.anime.synonyms.text') + ->query($criteria->getTerm()) + ->operator('AND') + ) + ) + ) ) - ) ) ->should( new NestedQueryBuilder() - ->path('entries') - ->query( - new NestedQueryBuilder() - ->path('entries.theme') + ->path('entries') ->query( new NestedQueryBuilder() - ->path('entries.theme.song') - ->query( - new MatchQueryBuilder() - ->field('entries.theme.song.title') - ->query($criteria->getTerm()) - ->operator('AND') - ->lenient(true) - ->fuzziness('AUTO') - ) + ->path('entries.theme') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.anime') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.anime.synonyms') + ->query( + new MatchQueryBuilder() + ->field('entries.theme.anime.synonyms.text') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') + ) + ) + ) + ) + ) + ->should( + new NestedQueryBuilder() + ->path('entries') + ->query( + new NestedQueryBuilder() + ->path('entries.theme') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.song') + ->query( + new MatchPhraseQueryBuilder() + ->field('entries.theme.song.title') + ->query($criteria->getTerm()) + ) + ) + ) + ) + ->should( + new NestedQueryBuilder() + ->path('entries') + ->query( + new NestedQueryBuilder() + ->path('entries.theme') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.song') + ->query( + new MatchQueryBuilder() + ->field('entries.theme.song.title') + ->query($criteria->getTerm()) + ->operator('AND') + ) + ) + ) + ) + ->should( + new NestedQueryBuilder() + ->path('entries') + ->query( + new NestedQueryBuilder() + ->path('entries.theme') + ->query( + new NestedQueryBuilder() + ->path('entries.theme.song') + ->query( + new MatchQueryBuilder() + ->field('entries.theme.song.title') + ->query($criteria->getTerm()) + ->operator('AND') + ->lenient(true) + ->fuzziness('AUTO') + ) + ) ) - ) ) ->minimumShouldMatch(1); diff --git a/app/Scout/Elasticsearch/Api/Schema/Schema.php b/app/Scout/Elasticsearch/Api/Schema/Schema.php index 97279c24a..b8cb912d6 100644 --- a/app/Scout/Elasticsearch/Api/Schema/Schema.php +++ b/app/Scout/Elasticsearch/Api/Schema/Schema.php @@ -16,8 +16,8 @@ use App\Scout\Elasticsearch\Api\Field\Base\UpdatedAtField; use App\Scout\Elasticsearch\Api\Field\Field; use App\Scout\Elasticsearch\Api\Query\ElasticQuery; use Illuminate\Database\Eloquent\Model; -use RuntimeException; use Illuminate\Support\Str; +use RuntimeException; /** * Class Schema. @@ -126,7 +126,7 @@ abstract class Schema implements SchemaInterface $model = $this->model(); foreach (explode('.', $path) as $path) { - if (!method_exists($model, $path)) { + if (! method_exists($model, $path)) { $classBasename = get_class($model); throw new RuntimeException("Relation '$path' does not exist on model '$classBasename'."); } diff --git a/bootstrap/app.php b/bootstrap/app.php index 037e17df0..08d677b8f 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,5 +1,7 @@ [ 'with_params' => true, // Render SQL with the parameters substituted 'exclude_paths' => [ // Paths to exclude entirely from the collector -// 'vendor/laravel/framework/src/Illuminate/Session', // Exclude sessions queries + // 'vendor/laravel/framework/src/Illuminate/Session', // Exclude sessions queries ], 'backtrace' => true, // Use a backtrace to find the origin of the query in your files. 'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults) @@ -237,10 +239,10 @@ return [ ], 'views' => [ 'timeline' => false, // Add the views to the timeline (Experimental) - 'data' => false, //true for all data, 'keys' for only names, false for no parameters. + 'data' => false, // true for all data, 'keys' for only names, false for no parameters. 'group' => 50, // Group duplicate views. Pass value to auto-group, or true/false to force 'exclude_paths' => [ // Add the paths which you don't want to appear in the views - 'vendor/filament' // Exclude Filament components by default + 'vendor/filament', // Exclude Filament components by default ], ], 'route' => [ diff --git a/config/lighthouse.php b/config/lighthouse.php index 38c2de1e2..0de4cefb3 100644 --- a/config/lighthouse.php +++ b/config/lighthouse.php @@ -57,7 +57,7 @@ return [ App\GraphQL\Middleware\LogGraphQLRequest::class, // Logs every incoming GraphQL query. - //Nuwave\Lighthouse\Http\Middleware\LogGraphQLQueries::class, + // Nuwave\Lighthouse\Http\Middleware\LogGraphQLQueries::class, ], /* @@ -461,17 +461,17 @@ return [ 'echo' => [ 'driver' => 'echo', 'connection' => env('LIGHTHOUSE_SUBSCRIPTION_REDIS_CONNECTION', 'default'), - 'routes' => Nuwave\Lighthouse\Subscriptions\SubscriptionRouter::class . '@echoRoutes', + 'routes' => Nuwave\Lighthouse\Subscriptions\SubscriptionRouter::class.'@echoRoutes', ], 'pusher' => [ 'driver' => 'pusher', 'connection' => 'pusher', - 'routes' => Nuwave\Lighthouse\Subscriptions\SubscriptionRouter::class . '@pusher', + 'routes' => Nuwave\Lighthouse\Subscriptions\SubscriptionRouter::class.'@pusher', ], 'reverb' => [ 'driver' => 'pusher', 'connection' => 'reverb', - 'routes' => Nuwave\Lighthouse\Subscriptions\SubscriptionRouter::class . '@reverb', + 'routes' => Nuwave\Lighthouse\Subscriptions\SubscriptionRouter::class.'@reverb', ], ], diff --git a/config/permission.php b/config/permission.php index 76ca468e7..dd54c3bb0 100644 --- a/config/permission.php +++ b/config/permission.php @@ -80,8 +80,8 @@ return [ /* * Change this if you want to name the related pivots other than defaults */ - 'role_pivot_key' => null, //default 'role_id', - 'permission_pivot_key' => null, //default 'permission_id', + 'role_pivot_key' => null, // default 'role_id', + 'permission_pivot_key' => null, // default 'permission_id', /* * Change this if you want to name the related model primary key other than diff --git a/config/pulse.php b/config/pulse.php index f3819e815..4ee5f08d1 100644 --- a/config/pulse.php +++ b/config/pulse.php @@ -1,5 +1,7 @@ env('FILAMENT_DOMAIN') ? env('PULSE_PATH', 'pulse') : env('FILAMENT_PATH') . '/pulse', + 'path' => env('FILAMENT_DOMAIN') ? env('PULSE_PATH', 'pulse') : env('FILAMENT_PATH').'/pulse', /* |-------------------------------------------------------------------------- diff --git a/config/recently.php b/config/recently.php index bce2db6a2..3e034f741 100644 --- a/config/recently.php +++ b/config/recently.php @@ -7,7 +7,7 @@ declare(strict_types=1); return [ 'user_model' => App\Models\Auth\User::class, 'max_items' => 20, - 'width' => 'xl', + 'width' => 'xl', 'global_search' => true, 'menu' => true, 'icon' => 'heroicon-o-arrow-uturn-left', diff --git a/database/factories/Discord/DiscordThreadFactory.php b/database/factories/Discord/DiscordThreadFactory.php index 9f9758e66..9afb2c8ce 100644 --- a/database/factories/Discord/DiscordThreadFactory.php +++ b/database/factories/Discord/DiscordThreadFactory.php @@ -36,4 +36,4 @@ class DiscordThreadFactory extends Factory DiscordThread::ATTRIBUTE_ID => fake()->words(3, true), ]; } -} \ No newline at end of file +} diff --git a/database/factories/Wiki/AnimeFactory.php b/database/factories/Wiki/AnimeFactory.php index d15853dbd..5c4b00f10 100644 --- a/database/factories/Wiki/AnimeFactory.php +++ b/database/factories/Wiki/AnimeFactory.php @@ -78,8 +78,9 @@ class AnimeFactory extends Factory ->has( AnimeThemeEntry::factory() ->count(fake()->numberBetween(1, 3)) - ->has(Video::factory()->count(fake()->numberBetween(1, 3)) - ->has(VideoScript::factory(), Video::RELATION_SCRIPT) + ->has( + Video::factory()->count(fake()->numberBetween(1, 3)) + ->has(VideoScript::factory(), Video::RELATION_SCRIPT) ) ) ->count(fake()->numberBetween(1, 3)) diff --git a/database/migrations/2022_05_09_032230_create_permission_tables.php b/database/migrations/2022_05_09_032230_create_permission_tables.php index 72ef4d457..86a6e3f90 100644 --- a/database/migrations/2022_05_09_032230_create_permission_tables.php +++ b/database/migrations/2022_05_09_032230_create_permission_tables.php @@ -3,9 +3,9 @@ declare(strict_types=1); use App\Models\Auth\Role; -use Illuminate\Support\Facades\Schema; -use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; return new class extends Migration { @@ -32,7 +32,7 @@ return new class extends Migration } Schema::create($tableNames['permissions'], function (Blueprint $table) { - //$table->engine('InnoDB'); + // $table->engine('InnoDB'); $table->bigIncrements('id'); // permission id $table->string('name'); // For MyISAM use string('name', 225); // (or 166 for InnoDB with Redundant/Compact row format) $table->string('guard_name'); // For MyISAM use string('guard_name', 25); @@ -42,7 +42,7 @@ return new class extends Migration }); Schema::create($tableNames['roles'], function (Blueprint $table) use ($teams, $columnNames) { - //$table->engine('InnoDB'); + // $table->engine('InnoDB'); $table->bigIncrements('id'); // role id if ($teams || config('permission.testing')) { // permission.testing is a fix for sqlite testing $table->unsignedBigInteger($columnNames['team_foreign_key'])->nullable(); @@ -76,13 +76,16 @@ return new class extends Migration $table->unsignedBigInteger($columnNames['team_foreign_key']); $table->index($columnNames['team_foreign_key'], 'model_has_permissions_team_foreign_key_index'); - $table->primary([$columnNames['team_foreign_key'], $pivotPermission, $columnNames['model_morph_key'], 'model_type'], - 'model_has_permissions_permission_model_type_primary'); + $table->primary( + [$columnNames['team_foreign_key'], $pivotPermission, $columnNames['model_morph_key'], 'model_type'], + 'model_has_permissions_permission_model_type_primary' + ); } else { - $table->primary([$pivotPermission, $columnNames['model_morph_key'], 'model_type'], - 'model_has_permissions_permission_model_type_primary'); + $table->primary( + [$pivotPermission, $columnNames['model_morph_key'], 'model_type'], + 'model_has_permissions_permission_model_type_primary' + ); } - }); Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames, $pivotRole, $teams) { @@ -100,11 +103,15 @@ return new class extends Migration $table->unsignedBigInteger($columnNames['team_foreign_key']); $table->index($columnNames['team_foreign_key'], 'model_has_roles_team_foreign_key_index'); - $table->primary([$columnNames['team_foreign_key'], $pivotRole, $columnNames['model_morph_key'], 'model_type'], - 'model_has_roles_role_model_type_primary'); + $table->primary( + [$columnNames['team_foreign_key'], $pivotRole, $columnNames['model_morph_key'], 'model_type'], + 'model_has_roles_role_model_type_primary' + ); } else { - $table->primary([$pivotRole, $columnNames['model_morph_key'], 'model_type'], - 'model_has_roles_role_model_type_primary'); + $table->primary( + [$pivotRole, $columnNames['model_morph_key'], 'model_type'], + 'model_has_roles_role_model_type_primary' + ); } }); @@ -147,4 +154,4 @@ return new class extends Migration Schema::dropIfExists($tableNames['roles']); Schema::dropIfExists($tableNames['permissions']); } -}; \ No newline at end of file +}; diff --git a/database/migrations/2022_09_29_203332_create_playlists_table.php b/database/migrations/2022_09_29_203332_create_playlists_table.php index 6d5f4f79a..edab5d1bd 100644 --- a/database/migrations/2022_09_29_203332_create_playlists_table.php +++ b/database/migrations/2022_09_29_203332_create_playlists_table.php @@ -6,7 +6,6 @@ use App\Contracts\Models\HasHashids; use App\Models\Auth\User; use App\Models\BaseModel; use App\Models\List\Playlist; -use App\Models\List\Playlist\PlaylistTrack; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\MySqlConnection; use Illuminate\Database\Schema\Blueprint; diff --git a/database/migrations/2022_09_29_205510_add_first_last_tracks_to_playlist.php b/database/migrations/2022_09_29_205510_add_first_last_tracks_to_playlist.php index 378e764f5..649fad07d 100644 --- a/database/migrations/2022_09_29_205510_add_first_last_tracks_to_playlist.php +++ b/database/migrations/2022_09_29_205510_add_first_last_tracks_to_playlist.php @@ -51,4 +51,4 @@ return new class extends Migration }); } } -}; \ No newline at end of file +}; diff --git a/database/migrations/2023_06_07_000001_create_pulse_tables.php b/database/migrations/2023_06_07_000001_create_pulse_tables.php index abdb1caa3..23f887fc5 100644 --- a/database/migrations/2023_06_07_000001_create_pulse_tables.php +++ b/database/migrations/2023_06_07_000001_create_pulse_tables.php @@ -1,5 +1,7 @@ id(); - + $table->foreignIdFor(Config::get('recently.user_model')); $table->text('url'); $table->string('icon'); $table->string('title'); - + $table->timestamps(); }); } diff --git a/database/migrations/2024_12_13_225202_create_reports_table.php b/database/migrations/2024_12_13_225202_create_reports_table.php index 3c8ff6e5e..611322a07 100644 --- a/database/migrations/2024_12_13_225202_create_reports_table.php +++ b/database/migrations/2024_12_13_225202_create_reports_table.php @@ -3,9 +3,9 @@ declare(strict_types=1); use App\Enums\Models\User\ApprovableStatus; +use App\Models\Auth\User; use App\Models\User\Report; use App\Models\User\Report\ReportStep; -use App\Models\Auth\User; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; @@ -33,7 +33,7 @@ return new class extends Migration $table->longText(Report::ATTRIBUTE_MOD_NOTES)->nullable(); $table->timestamp(Report::ATTRIBUTE_FINISHED_AT, 6)->nullable(); - $table->timestamps(6);; + $table->timestamps(6); }); } diff --git a/database/migrations/2025_01_01_070445_create_view_aggregates_table.php b/database/migrations/2025_01_01_070445_create_view_aggregates_table.php index baf4a06fb..86eba58e8 100644 --- a/database/migrations/2025_01_01_070445_create_view_aggregates_table.php +++ b/database/migrations/2025_01_01_070445_create_view_aggregates_table.php @@ -14,7 +14,7 @@ return new class extends Migration */ public function up(): void { - if (!Schema::hasTable(ViewAggregate::TABLE)) { + if (! Schema::hasTable(ViewAggregate::TABLE)) { Schema::create(ViewAggregate::TABLE, function (Blueprint $table) { $table->morphs(ViewAggregate::ATTRIBUTE_VIEWABLE); $table->integer(ViewAggregate::ATTRIBUTE_VALUE)->default(0); diff --git a/database/migrations/2025_01_30_132216_create_performances_and_membership_tables.php b/database/migrations/2025_01_30_132216_create_performances_and_membership_tables.php index b212d281c..8499ebf22 100644 --- a/database/migrations/2025_01_30_132216_create_performances_and_membership_tables.php +++ b/database/migrations/2025_01_30_132216_create_performances_and_membership_tables.php @@ -17,7 +17,7 @@ return new class extends Migration */ public function up(): void { - if (!Schema::hasTable(Performance::TABLE)) { + if (! Schema::hasTable(Performance::TABLE)) { Schema::create(Performance::TABLE, function (Blueprint $table) { $table->id(Performance::ATTRIBUTE_ID); @@ -35,7 +35,7 @@ return new class extends Migration }); } - if (!Schema::hasTable(Membership::TABLE)) { + if (! Schema::hasTable(Membership::TABLE)) { Schema::create(Membership::TABLE, function (Blueprint $table) { $table->id(Membership::ATTRIBUTE_ID); diff --git a/database/migrations/2025_05_16_013458_create_likes_table.php b/database/migrations/2025_05_16_013458_create_likes_table.php index b9e96391d..5bfe4827e 100644 --- a/database/migrations/2025_05_16_013458_create_likes_table.php +++ b/database/migrations/2025_05_16_013458_create_likes_table.php @@ -15,7 +15,7 @@ return new class extends Migration */ public function up(): void { - if (!Schema::hasTable(Like::TABLE)) { + if (! Schema::hasTable(Like::TABLE)) { Schema::create(Like::TABLE, function (Blueprint $table) { $table->id(Like::ATTRIBUTE_ID); $table->unsignedBigInteger(Like::ATTRIBUTE_USER)->nullable(); diff --git a/database/migrations/2025_05_16_100535_create_like_aggregates_table.php b/database/migrations/2025_05_16_100535_create_like_aggregates_table.php index 5983c0d59..ea423dbfa 100644 --- a/database/migrations/2025_05_16_100535_create_like_aggregates_table.php +++ b/database/migrations/2025_05_16_100535_create_like_aggregates_table.php @@ -14,7 +14,7 @@ return new class extends Migration */ public function up(): void { - if (!Schema::hasTable(LikeAggregate::TABLE)) { + if (! Schema::hasTable(LikeAggregate::TABLE)) { Schema::create(LikeAggregate::TABLE, function (Blueprint $table) { $table->morphs(LikeAggregate::ATTRIBUTE_LIKEABLE); $table->integer(LikeAggregate::ATTRIBUTE_VALUE)->default(0); diff --git a/database/seeders/Auth/Permission/PermissionSeeder.php b/database/seeders/Auth/Permission/PermissionSeeder.php index 71ea2e137..a74641c0a 100644 --- a/database/seeders/Auth/Permission/PermissionSeeder.php +++ b/database/seeders/Auth/Permission/PermissionSeeder.php @@ -11,7 +11,6 @@ use App\Models\Admin\Announcement; use App\Models\Admin\Dump; use App\Models\Admin\Feature; use App\Models\Admin\FeaturedTheme; -use App\Models\User\Report; use App\Models\Auth\Permission; use App\Models\Auth\Role; use App\Models\Auth\User; @@ -23,6 +22,7 @@ use App\Models\List\Playlist; use App\Models\List\Playlist\PlaylistTrack; use App\Models\User\Like; use App\Models\User\Notification; +use App\Models\User\Report; use App\Models\Wiki\Anime; use App\Models\Wiki\Anime\AnimeSynonym; use App\Models\Wiki\Anime\AnimeTheme; diff --git a/database/seeders/Auth/Role/AdminSeeder.php b/database/seeders/Auth/Role/AdminSeeder.php index 5a719bcd5..ad2426211 100644 --- a/database/seeders/Auth/Role/AdminSeeder.php +++ b/database/seeders/Auth/Role/AdminSeeder.php @@ -12,7 +12,6 @@ use App\Models\Admin\Announcement; use App\Models\Admin\Dump; use App\Models\Admin\Feature; use App\Models\Admin\FeaturedTheme; -use App\Models\User\Report; use App\Models\Auth\Permission; use App\Models\Auth\Role; use App\Models\Auth\User; @@ -24,6 +23,7 @@ use App\Models\List\Playlist; use App\Models\List\Playlist\PlaylistTrack; use App\Models\User\Like; use App\Models\User\Notification; +use App\Models\User\Report; use App\Models\Wiki\Anime; use App\Models\Wiki\Anime\AnimeSynonym; use App\Models\Wiki\Anime\AnimeTheme; diff --git a/database/seeders/Auth/Role/ContributorRoleSeeder.php b/database/seeders/Auth/Role/ContributorRoleSeeder.php index 962324dfc..1d15b4176 100644 --- a/database/seeders/Auth/Role/ContributorRoleSeeder.php +++ b/database/seeders/Auth/Role/ContributorRoleSeeder.php @@ -8,7 +8,6 @@ use App\Enums\Auth\CrudPermission; use App\Enums\Auth\ExtendedCrudPermission; use App\Enums\Auth\Role as RoleEnum; use App\Enums\Auth\SpecialPermission; -use App\Models\User\Report; use App\Models\Auth\Role; use App\Models\Discord\DiscordThread; use App\Models\Document\Page; @@ -18,6 +17,7 @@ use App\Models\List\Playlist; use App\Models\List\Playlist\PlaylistTrack; use App\Models\User\Like; use App\Models\User\Notification; +use App\Models\User\Report; use App\Models\Wiki\Anime; use App\Models\Wiki\Anime\AnimeSynonym; use App\Models\Wiki\Anime\AnimeTheme; diff --git a/database/seeders/Auth/Role/PanelViewerRoleSeeder.php b/database/seeders/Auth/Role/PanelViewerRoleSeeder.php index 83960d0c6..baf82ec58 100644 --- a/database/seeders/Auth/Role/PanelViewerRoleSeeder.php +++ b/database/seeders/Auth/Role/PanelViewerRoleSeeder.php @@ -8,7 +8,6 @@ use App\Enums\Auth\CrudPermission; use App\Enums\Auth\ExtendedCrudPermission; use App\Enums\Auth\Role as RoleEnum; use App\Enums\Auth\SpecialPermission; -use App\Models\User\Report; use App\Models\Auth\Role; use App\Models\Discord\DiscordThread; use App\Models\Document\Page; @@ -18,6 +17,7 @@ use App\Models\List\Playlist; use App\Models\List\Playlist\PlaylistTrack; use App\Models\User\Like; use App\Models\User\Notification; +use App\Models\User\Report; use App\Models\Wiki\Anime; use App\Models\Wiki\Anime\AnimeSynonym; use App\Models\Wiki\Anime\AnimeTheme; diff --git a/database/seeders/Scout/ImportModelsSeeder.php b/database/seeders/Scout/ImportModelsSeeder.php index 902ed9215..afeb4138c 100644 --- a/database/seeders/Scout/ImportModelsSeeder.php +++ b/database/seeders/Scout/ImportModelsSeeder.php @@ -33,6 +33,7 @@ class ImportModelsSeeder extends Seeder $driver = Config::get('scout.driver'); if (empty($driver)) { $this->command->info('No driver configured for Scout. Skipping models importing.'); + return; } diff --git a/elastic/migrations/2020_12_22_034544_create_series_index.php b/elastic/migrations/2020_12_22_034544_create_series_index.php index 1199b1ab1..7aa7969a5 100644 --- a/elastic/migrations/2020_12_22_034544_create_series_index.php +++ b/elastic/migrations/2020_12_22_034544_create_series_index.php @@ -85,7 +85,7 @@ final class CreateSeriesIndex implements MigrationInterface 'year' => [ 'type' => 'long', ], - ] + ], ]); $mapping->text('anime_slug'); $mapping->text('synonym_slug'); diff --git a/lang/en/enums.php b/lang/en/enums.php index 235c8db73..0ecb999d1 100644 --- a/lang/en/enums.php +++ b/lang/en/enums.php @@ -3,12 +3,12 @@ declare(strict_types=1); use App\Enums\Models\Admin\ActionLogStatus; -use App\Enums\Models\User\ApprovableStatus; -use App\Enums\Models\User\ReportActionType; use App\Enums\Models\List\ExternalEntryWatchStatus; use App\Enums\Models\List\ExternalProfileSite; use App\Enums\Models\List\ExternalProfileVisibility; use App\Enums\Models\List\PlaylistVisibility; +use App\Enums\Models\User\ApprovableStatus; +use App\Enums\Models\User\ReportActionType; use App\Enums\Models\Wiki\AnimeMediaFormat; use App\Enums\Models\Wiki\AnimeSeason; use App\Enums\Models\Wiki\AnimeSynonymType; @@ -31,7 +31,7 @@ return [ AnimeMediaFormat::OVA->name => 'OVA', AnimeMediaFormat::MOVIE->name => 'Movie', AnimeMediaFormat::SPECIAL->name => 'Special', - AnimeMediaFormat::ONA->name => 'ONA' + AnimeMediaFormat::ONA->name => 'ONA', ], AnimeSeason::class => [ AnimeSeason::WINTER->name => 'Winter', diff --git a/lang/en/filament-icons.php b/lang/en/filament-icons.php index adc165ebe..10f2a0cb8 100644 --- a/lang/en/filament-icons.php +++ b/lang/en/filament-icons.php @@ -98,4 +98,4 @@ return [ 'dump' => 'heroicon-o-circle-stack', ], ], -]; \ No newline at end of file +]; diff --git a/lang/en/filament.php b/lang/en/filament.php index 35abb3844..1f72d66ec 100644 --- a/lang/en/filament.php +++ b/lang/en/filament.php @@ -46,7 +46,7 @@ return [ ], 'external_links' => [ 'help' => 'Use Anilist Resource to find other resources like Official Sites and Streamings', - 'name' => 'Backfill Other Resources' + 'name' => 'Backfill Other Resources', ], 'name' => 'Backfill Resources', ], @@ -98,8 +98,8 @@ return [ 'discord' => [ 'thread' => [ 'name' => 'Name', - 'help' => 'The name of the thread to be created. Use the default name or a shorter synonym if it exceeds 100 characters.' - ] + 'help' => 'The name of the thread to be created. Use the default name or a shorter synonym if it exceeds 100 characters.', + ], ], 'dump' => [ 'dump' => [ @@ -493,7 +493,7 @@ return [ 'type' => [ 'help' => 'The title type.', 'name' => 'Type', - ] + ], ], 'anime_theme_entry' => [ 'episodes' => [ @@ -554,7 +554,7 @@ return [ ], 'media_format' => [ 'help' => 'The Format of the Anime. By default, we will use the Type Field on the MAL page.', - 'name' => 'Media Format' + 'name' => 'Media Format', ], 'resources' => [ 'as' => [ @@ -885,9 +885,9 @@ return [ 'resources' => [ 'as' => [ 'help' => 'Used to distinguish resources that map to the same song.', - 'name' => 'As' - ] - ] + 'name' => 'As', + ], + ], ], 'studio' => [ 'name' => [ @@ -1178,7 +1178,7 @@ return [ ], 'resources' => [ 'name' => 'Without :site Resource', - ] + ], ], 'studio' => [ 'images' => [ diff --git a/pint.json b/pint.json new file mode 100644 index 000000000..d38920867 --- /dev/null +++ b/pint.json @@ -0,0 +1,122 @@ +{ + "preset": "laravel", + "rules": { + "array_syntax": { + "syntax": "short" + }, + "binary_operator_spaces": false, + "blank_line_after_opening_tag": true, + "no_superfluous_phpdoc_tags": false, + "blank_line_before_statement": { + "statements": ["return"] + }, + "braces": true, + "cast_spaces": true, + "class_definition": true, + "concat_space": { + "spacing": "none" + }, + "declare_equal_normalize": true, + "elseif": true, + "encoding": true, + "full_opening_tag": true, + "declare_strict_types": true, + "fully_qualified_strict_types": true, + "function_declaration": true, + "function_typehint_space": true, + "heredoc_to_nowdoc": true, + "include": true, + "increment_style": { + "style": "post" + }, + "indentation_type": true, + "linebreak_after_opening_tag": true, + "line_ending": true, + "lowercase_cast": true, + "constant_case": true, + "lowercase_keywords": true, + "lowercase_static_reference": true, + "magic_method_casing": true, + "magic_constant_casing": true, + "method_argument_space": true, + "native_function_casing": true, + "new_with_parentheses": false, + "no_alias_functions": true, + "no_extra_blank_lines": { + "tokens": ["extra", "throw", "use", "use_trait"] + }, + "no_blank_lines_after_class_opening": true, + "no_blank_lines_after_phpdoc": true, + "no_closing_tag": true, + "no_empty_phpdoc": true, + "no_empty_statement": true, + "no_leading_import_slash": true, + "no_leading_namespace_whitespace": true, + "no_mixed_echo_print": { + "use": "echo" + }, + "no_multiline_whitespace_around_double_arrow": true, + "multiline_whitespace_before_semicolons": { + "strategy": "no_multi_line" + }, + "no_short_bool_cast": true, + "no_singleline_whitespace_before_semicolons": true, + "no_spaces_after_function_name": true, + "no_spaces_around_offset": true, + "no_spaces_inside_parenthesis": true, + "no_trailing_comma_in_list_call": true, + "no_trailing_comma_in_singleline_array": true, + "no_trailing_whitespace": true, + "no_trailing_whitespace_in_comment": true, + "no_unneeded_control_parentheses": true, + "no_unreachable_default_argument_value": true, + "no_useless_return": true, + "no_whitespace_before_comma_in_array": true, + "no_whitespace_in_blank_line": true, + "normalize_index_brace": true, + "not_operator_with_successor_space": true, + "object_operator_without_whitespace": true, + "ordered_imports": { + "sort_algorithm": "alpha" + }, + "phpdoc_indent": true, + "general_phpdoc_tag_rename": true, + "phpdoc_no_access": true, + "phpdoc_no_package": true, + "phpdoc_no_useless_inheritdoc": true, + "phpdoc_scalar": true, + "phpdoc_single_line_var_spacing": true, + "phpdoc_summary": true, + "phpdoc_to_comment": false, + "phpdoc_trim": true, + "phpdoc_types": true, + "phpdoc_var_without_name": true, + "psr_autoloading": true, + "self_accessor": false, + "short_scalar_cast": true, + "simplified_null_return": false, + "single_blank_line_at_eof": true, + "single_class_element_per_statement": false, + "class_attributes_separation": { + "elements": { + "method": "one" + } + }, + "single_import_per_statement": true, + "single_line_after_imports": true, + "no_unused_imports": true, + "single_line_comment_style": { + "comment_types": ["hash"] + }, + "single_quote": true, + "space_after_semicolon": true, + "standardize_not_equals": true, + "switch_case_semicolon_to_colon": true, + "switch_case_space": true, + "ternary_operator_spaces": true, + "trailing_comma_in_multiline": true, + "trim_array_spaces": true, + "unary_operator_spaces": true, + "whitespace_after_comma_in_array": true + } +} \ No newline at end of file diff --git a/public/index.php b/public/index.php index a18fa87ad..7fcbbbee1 100644 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,7 @@ faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $this->faker->password(20), @@ -70,7 +70,7 @@ class CreateNewUserTest extends TestCase * * @throws ValidationException */ - public function testUsernameUnique(): void + public function test_username_unique(): void { static::expectException(ValidationException::class); @@ -82,7 +82,7 @@ class CreateNewUserTest extends TestCase $action = new CreateNewUser(); - $password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $name, @@ -100,11 +100,11 @@ class CreateNewUserTest extends TestCase * * @throws ValidationException */ - public function testCreated(): void + public function test_created(): void { $action = new CreateNewUser(); - $password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $this->faker()->word(), @@ -124,7 +124,7 @@ class CreateNewUserTest extends TestCase * * @throws ValidationException */ - public function testCreatedIfNotFlaggedByOpenAI(): void + public function test_created_if_not_flagged_by_open_ai(): void { Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -140,7 +140,7 @@ class CreateNewUserTest extends TestCase $action = new CreateNewUser(); - $password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $this->faker()->word(), @@ -160,7 +160,7 @@ class CreateNewUserTest extends TestCase * * @throws ValidationException */ - public function testCreatedIfOpenAIFails(): void + public function test_created_if_open_ai_fails(): void { Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -170,7 +170,7 @@ class CreateNewUserTest extends TestCase $action = new CreateNewUser(); - $password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $this->faker()->word(), @@ -190,7 +190,7 @@ class CreateNewUserTest extends TestCase * * @throws ValidationException */ - public function testValidationErrorWhenFlaggedByOpenAI(): void + public function test_validation_error_when_flagged_by_open_ai(): void { static::expectException(ValidationException::class); @@ -208,7 +208,7 @@ class CreateNewUserTest extends TestCase $action = new CreateNewUser(); - $password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $this->faker()->word(), @@ -226,7 +226,7 @@ class CreateNewUserTest extends TestCase * * @throws ValidationException */ - public function testDisposableEmail(): void + public function test_disposable_email(): void { static::expectException(ValidationException::class); @@ -236,7 +236,7 @@ class CreateNewUserTest extends TestCase $action = new CreateNewUser(); - $password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $this->faker()->word(), @@ -254,7 +254,7 @@ class CreateNewUserTest extends TestCase * * @throws ValidationException */ - public function testIndisposableEmail(): void + public function test_indisposable_email(): void { $this->mock(Indisposable::class, function (MockInterface $mock) { $mock->shouldReceive('validate')->once()->andReturn(true); @@ -262,7 +262,7 @@ class CreateNewUserTest extends TestCase $action = new CreateNewUser(); - $password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $this->faker()->word(), @@ -282,7 +282,7 @@ class CreateNewUserTest extends TestCase * * @throws ValidationException */ - public function testEmailUnique(): void + public function test_email_unique(): void { static::expectException(ValidationException::class); @@ -294,7 +294,7 @@ class CreateNewUserTest extends TestCase $action = new CreateNewUser(); - $password = $this->faker->password(18) . $this->faker->randomDigit() . $this->faker->randomElement(['!', '.', '@', '#']); + $password = $this->faker->password(18).$this->faker->randomDigit().$this->faker->randomElement(['!', '.', '@', '#']); $action->create([ User::ATTRIBUTE_NAME => $this->faker->word(), diff --git a/tests/Feature/Actions/Fortify/UpdateUserProfileInformationTest.php b/tests/Feature/Actions/Fortify/UpdateUserProfileInformationTest.php index 6ba9e28b2..b9137f1b0 100644 --- a/tests/Feature/Actions/Fortify/UpdateUserProfileInformationTest.php +++ b/tests/Feature/Actions/Fortify/UpdateUserProfileInformationTest.php @@ -32,7 +32,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testRequired(): void + public function test_required(): void { static::expectException(ValidationException::class); @@ -50,7 +50,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testUsernameAlphaDash(): void + public function test_username_alpha_dash(): void { static::expectException(ValidationException::class); @@ -70,7 +70,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testUsernameUnique(): void + public function test_username_unique(): void { static::expectException(ValidationException::class); @@ -96,7 +96,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testUpdateName(): void + public function test_update_name(): void { $name = $this->faker->unique()->word(); @@ -126,7 +126,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testUpdateEmail(): void + public function test_update_email(): void { Notification::fake(); @@ -158,7 +158,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testCreatedIfNotFlaggedByOpenAI(): void + public function test_created_if_not_flagged_by_open_ai(): void { Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -200,7 +200,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testCreatedIfOpenAIFails(): void + public function test_created_if_open_ai_fails(): void { Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -236,7 +236,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testValidationErrorWhenFlaggedByOpenAI(): void + public function test_validation_error_when_flagged_by_open_ai(): void { static::expectException(ValidationException::class); @@ -272,7 +272,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testDisposableEmail(): void + public function test_disposable_email(): void { static::expectException(ValidationException::class); @@ -300,7 +300,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testIndisposableEmail(): void + public function test_indisposable_email(): void { Notification::fake(); @@ -336,7 +336,7 @@ class UpdateUserProfileInformationTest extends TestCase * * @throws ValidationException */ - public function testEmailUnique(): void + public function test_email_unique(): void { static::expectException(ValidationException::class); diff --git a/tests/Feature/Actions/Models/List/Playlist/InsertTrackAfterTest.php b/tests/Feature/Actions/Models/List/Playlist/InsertTrackAfterTest.php index fb4e4d593..7ed4a8113 100644 --- a/tests/Feature/Actions/Models/List/Playlist/InsertTrackAfterTest.php +++ b/tests/Feature/Actions/Models/List/Playlist/InsertTrackAfterTest.php @@ -26,7 +26,7 @@ class InsertTrackAfterTest extends TestCase * * @throws Exception */ - public function testLastTrack(): void + public function test_last_track(): void { $playlist = Playlist::factory() ->tracks($this->faker->numberBetween(2, 9)) @@ -58,7 +58,7 @@ class InsertTrackAfterTest extends TestCase * * @throws Exception */ - public function testFirstTrack(): void + public function test_first_track(): void { $playlist = Playlist::factory() ->tracks($this->faker->numberBetween(2, 9)) diff --git a/tests/Feature/Actions/Models/List/Playlist/InsertTrackBeforeTest.php b/tests/Feature/Actions/Models/List/Playlist/InsertTrackBeforeTest.php index eaed0856a..6e551c75f 100644 --- a/tests/Feature/Actions/Models/List/Playlist/InsertTrackBeforeTest.php +++ b/tests/Feature/Actions/Models/List/Playlist/InsertTrackBeforeTest.php @@ -26,7 +26,7 @@ class InsertTrackBeforeTest extends TestCase * * @throws Exception */ - public function testFirstTrack(): void + public function test_first_track(): void { $playlist = Playlist::factory() ->tracks($this->faker->numberBetween(2, 9)) @@ -58,7 +58,7 @@ class InsertTrackBeforeTest extends TestCase * * @throws Exception */ - public function testLastTrack(): void + public function test_last_track(): void { $playlist = Playlist::factory() ->tracks($this->faker->numberBetween(2, 9)) diff --git a/tests/Feature/Actions/Models/List/Playlist/InsertTrackTest.php b/tests/Feature/Actions/Models/List/Playlist/InsertTrackTest.php index bd1bd2bd4..8670141be 100644 --- a/tests/Feature/Actions/Models/List/Playlist/InsertTrackTest.php +++ b/tests/Feature/Actions/Models/List/Playlist/InsertTrackTest.php @@ -23,7 +23,7 @@ class InsertTrackTest extends TestCase * * @throws Exception */ - public function testFirstTrack(): void + public function test_first_track(): void { $playlist = Playlist::factory()->createOne(); @@ -47,7 +47,7 @@ class InsertTrackTest extends TestCase * * @throws Exception */ - public function testSecondTrack(): void + public function test_second_track(): void { $playlist = Playlist::factory()->createOne(); @@ -83,7 +83,7 @@ class InsertTrackTest extends TestCase * * @throws Exception */ - public function testThirdTrack(): void + public function test_third_track(): void { $playlist = Playlist::factory()->createOne(); diff --git a/tests/Feature/Actions/Models/List/Playlist/RemoveTrackTest.php b/tests/Feature/Actions/Models/List/Playlist/RemoveTrackTest.php index f7e7cb5af..07d1ebb8b 100644 --- a/tests/Feature/Actions/Models/List/Playlist/RemoveTrackTest.php +++ b/tests/Feature/Actions/Models/List/Playlist/RemoveTrackTest.php @@ -24,7 +24,7 @@ class RemoveTrackTest extends TestCase * * @throws Exception */ - public function testRemoveSole(): void + public function test_remove_sole(): void { $playlist = Playlist::factory() ->tracks(1) @@ -50,7 +50,7 @@ class RemoveTrackTest extends TestCase * * @throws Exception */ - public function testRemoveFirst(): void + public function test_remove_first(): void { $playlist = Playlist::factory() ->tracks($this->faker->numberBetween(3, 9)) @@ -78,7 +78,7 @@ class RemoveTrackTest extends TestCase * * @throws Exception */ - public function testRemoveLast(): void + public function test_remove_last(): void { $playlist = Playlist::factory() ->tracks($this->faker->numberBetween(3, 9)) @@ -106,7 +106,7 @@ class RemoveTrackTest extends TestCase * * @throws Exception */ - public function testRemoveSecond(): void + public function test_remove_second(): void { $playlist = Playlist::factory() ->tracks(3) diff --git a/tests/Feature/Actions/Models/Wiki/Video/Audio/BackfillVideoAudioTest.php b/tests/Feature/Actions/Models/Wiki/Video/Audio/BackfillVideoAudioTest.php index c2d973566..4216c8884 100644 --- a/tests/Feature/Actions/Models/Wiki/Video/Audio/BackfillVideoAudioTest.php +++ b/tests/Feature/Actions/Models/Wiki/Video/Audio/BackfillVideoAudioTest.php @@ -35,7 +35,7 @@ class BackfillVideoAudioTest extends TestCase * * @throws Exception */ - public function testSkipped(): void + public function test_skipped(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -48,7 +48,7 @@ class BackfillVideoAudioTest extends TestCase $result = $action->handle(); - static::assertTrue(ActionStatus::SKIPPED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::SKIPPED); static::assertDatabaseCount(Audio::class, 1); static::assertEmpty(Storage::disk(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED))->allFiles()); } @@ -60,7 +60,7 @@ class BackfillVideoAudioTest extends TestCase * * @throws Exception */ - public function testFailedWhenNoEntries(): void + public function test_failed_when_no_entries(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -83,7 +83,7 @@ class BackfillVideoAudioTest extends TestCase * * @throws Exception */ - public function testPassesSourceVideo(): void + public function test_passes_source_video(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -102,7 +102,7 @@ class BackfillVideoAudioTest extends TestCase $result = $action->handle(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertDatabaseCount(Audio::class, 1); static::assertTrue($video->audio()->exists()); static::assertEmpty(Storage::disk(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED))->allFiles()); @@ -115,7 +115,7 @@ class BackfillVideoAudioTest extends TestCase * * @throws Exception */ - public function testPassesWithHigherPrioritySource(): void + public function test_passes_with_higher_priority_source(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -139,7 +139,7 @@ class BackfillVideoAudioTest extends TestCase $result = $action->handle(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertDatabaseCount(Audio::class, 1); static::assertTrue($video->audio()->exists()); static::assertEmpty(Storage::disk(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED))->allFiles()); @@ -152,7 +152,7 @@ class BackfillVideoAudioTest extends TestCase * * @throws Exception */ - public function testPassesWithPrimaryVersionSource(): void + public function test_passes_with_primary_version_source(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -183,7 +183,7 @@ class BackfillVideoAudioTest extends TestCase $result = $action->handle(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertDatabaseCount(Audio::class, 2); static::assertTrue($video->audio()->is($sourceAudio)); static::assertEmpty(Storage::disk(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED))->allFiles()); diff --git a/tests/Feature/Actions/Repositories/Admin/Dump/ReconcileDumpRepositoriesTest.php b/tests/Feature/Actions/Repositories/Admin/Dump/ReconcileDumpRepositoriesTest.php index e605be853..9a67fff90 100644 --- a/tests/Feature/Actions/Repositories/Admin/Dump/ReconcileDumpRepositoriesTest.php +++ b/tests/Feature/Actions/Repositories/Admin/Dump/ReconcileDumpRepositoriesTest.php @@ -33,7 +33,7 @@ class ReconcileDumpRepositoriesTest extends TestCase * * @throws Exception */ - public function testNoResults(): void + public function test_no_results(): void { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -48,7 +48,7 @@ class ReconcileDumpRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertFalse($result->hasChanges()); static::assertDatabaseCount(Dump::class, 0); } @@ -60,7 +60,7 @@ class ReconcileDumpRepositoriesTest extends TestCase * * @throws Exception */ - public function testCreated(): void + public function test_created(): void { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -79,7 +79,7 @@ class ReconcileDumpRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($createdDumpCount, $result->getCreated()); static::assertDatabaseCount(Dump::class, $createdDumpCount); @@ -92,7 +92,7 @@ class ReconcileDumpRepositoriesTest extends TestCase * * @throws Exception */ - public function testDeleted(): void + public function test_deleted(): void { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -111,7 +111,7 @@ class ReconcileDumpRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($deletedDumpCount, $result->getDeleted()); diff --git a/tests/Feature/Actions/Repositories/Wiki/Audio/ReconcileAudioRepositoriesTest.php b/tests/Feature/Actions/Repositories/Wiki/Audio/ReconcileAudioRepositoriesTest.php index 9e7d5874f..31ef620b1 100644 --- a/tests/Feature/Actions/Repositories/Wiki/Audio/ReconcileAudioRepositoriesTest.php +++ b/tests/Feature/Actions/Repositories/Wiki/Audio/ReconcileAudioRepositoriesTest.php @@ -31,7 +31,7 @@ class ReconcileAudioRepositoriesTest extends TestCase * * @throws Exception */ - public function testNoResults(): void + public function test_no_results(): void { $this->mock(AudioSourceRepository::class, function (MockInterface $mock) { $mock->shouldReceive('get')->once()->andReturn(Collection::make()); @@ -44,7 +44,7 @@ class ReconcileAudioRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertFalse($result->hasChanges()); static::assertDatabaseCount(Audio::class, 0); } @@ -56,7 +56,7 @@ class ReconcileAudioRepositoriesTest extends TestCase * * @throws Exception */ - public function testCreated(): void + public function test_created(): void { $createdAudioCount = $this->faker->numberBetween(2, 9); @@ -73,7 +73,7 @@ class ReconcileAudioRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($createdAudioCount, $result->getCreated()); static::assertDatabaseCount(Audio::class, $createdAudioCount); @@ -86,7 +86,7 @@ class ReconcileAudioRepositoriesTest extends TestCase * * @throws Exception */ - public function testDeleted(): void + public function test_deleted(): void { $deletedAudioCount = $this->faker->numberBetween(2, 9); @@ -103,7 +103,7 @@ class ReconcileAudioRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($deletedAudioCount, $result->getDeleted()); @@ -120,7 +120,7 @@ class ReconcileAudioRepositoriesTest extends TestCase * * @throws Exception */ - public function testUpdated(): void + public function test_updated(): void { $updatedAudioCount = $this->faker->numberBetween(2, 9); @@ -147,7 +147,7 @@ class ReconcileAudioRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($updatedAudioCount, $result->getUpdated()); static::assertDatabaseCount(Audio::class, $updatedAudioCount); diff --git a/tests/Feature/Actions/Repositories/Wiki/Video/ReconcileVideoRepositoriesTest.php b/tests/Feature/Actions/Repositories/Wiki/Video/ReconcileVideoRepositoriesTest.php index f5c5861d7..995713db2 100644 --- a/tests/Feature/Actions/Repositories/Wiki/Video/ReconcileVideoRepositoriesTest.php +++ b/tests/Feature/Actions/Repositories/Wiki/Video/ReconcileVideoRepositoriesTest.php @@ -31,7 +31,7 @@ class ReconcileVideoRepositoriesTest extends TestCase * * @throws Exception */ - public function testNoResults(): void + public function test_no_results(): void { $this->mock(VideoSourceRepository::class, function (MockInterface $mock) { $mock->shouldReceive('get')->once()->andReturn(Collection::make()); @@ -44,7 +44,7 @@ class ReconcileVideoRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertFalse($result->hasChanges()); static::assertDatabaseCount(Video::class, 0); } @@ -56,7 +56,7 @@ class ReconcileVideoRepositoriesTest extends TestCase * * @throws Exception */ - public function testCreated(): void + public function test_created(): void { $createdVideoCount = $this->faker->numberBetween(2, 9); @@ -73,7 +73,7 @@ class ReconcileVideoRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($createdVideoCount, $result->getCreated()); static::assertDatabaseCount(Video::class, $createdVideoCount); @@ -86,7 +86,7 @@ class ReconcileVideoRepositoriesTest extends TestCase * * @throws Exception */ - public function testDeleted(): void + public function test_deleted(): void { $deletedVideoCount = $this->faker->numberBetween(2, 9); @@ -103,7 +103,7 @@ class ReconcileVideoRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($deletedVideoCount, $result->getDeleted()); @@ -120,7 +120,7 @@ class ReconcileVideoRepositoriesTest extends TestCase * * @throws Exception */ - public function testUpdated(): void + public function test_updated(): void { $updatedVideoCount = $this->faker->numberBetween(2, 9); @@ -147,7 +147,7 @@ class ReconcileVideoRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($updatedVideoCount, $result->getUpdated()); static::assertDatabaseCount(Video::class, $updatedVideoCount); diff --git a/tests/Feature/Actions/Repositories/Wiki/Video/Script/ReconcileScriptRepositoriesTest.php b/tests/Feature/Actions/Repositories/Wiki/Video/Script/ReconcileScriptRepositoriesTest.php index 77be55f90..e1666eb33 100644 --- a/tests/Feature/Actions/Repositories/Wiki/Video/Script/ReconcileScriptRepositoriesTest.php +++ b/tests/Feature/Actions/Repositories/Wiki/Video/Script/ReconcileScriptRepositoriesTest.php @@ -30,7 +30,7 @@ class ReconcileScriptRepositoriesTest extends TestCase * * @throws Exception */ - public function testNoResults(): void + public function test_no_results(): void { $this->mock(ScriptSourceRepository::class, function (MockInterface $mock) { $mock->shouldReceive('get')->once()->andReturn(Collection::make()); @@ -43,7 +43,7 @@ class ReconcileScriptRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertFalse($result->hasChanges()); static::assertDatabaseCount(VideoScript::class, 0); } @@ -55,7 +55,7 @@ class ReconcileScriptRepositoriesTest extends TestCase * * @throws Exception */ - public function testCreated(): void + public function test_created(): void { $createdScriptCount = $this->faker->numberBetween(2, 9); @@ -72,7 +72,7 @@ class ReconcileScriptRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($createdScriptCount, $result->getCreated()); static::assertDatabaseCount(VideoScript::class, $createdScriptCount); @@ -85,7 +85,7 @@ class ReconcileScriptRepositoriesTest extends TestCase * * @throws Exception */ - public function testDeleted(): void + public function test_deleted(): void { $deletedScriptCount = $this->faker->numberBetween(2, 9); @@ -102,7 +102,7 @@ class ReconcileScriptRepositoriesTest extends TestCase $result = $action->reconcileRepositories($source, $destination); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertTrue($result->hasChanges()); static::assertCount($deletedScriptCount, $result->getDeleted()); diff --git a/tests/Feature/Actions/Storage/Admin/Dump/DumpDocumentTest.php b/tests/Feature/Actions/Storage/Admin/Dump/DumpDocumentTest.php index 5df21ecca..471499c73 100644 --- a/tests/Feature/Actions/Storage/Admin/Dump/DumpDocumentTest.php +++ b/tests/Feature/Actions/Storage/Admin/Dump/DumpDocumentTest.php @@ -29,7 +29,7 @@ class DumpDocumentTest extends TestCase * * @throws Exception */ - public function testDataBaseDumpOutput(): void + public function test_data_base_dump_output(): void { $local = Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -40,7 +40,7 @@ class DumpDocumentTest extends TestCase $result = $action->handle(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertEmpty($local->allFiles()); static::assertCount(1, $fs->allFiles()); static::assertDatabaseCount(Dump::class, 1); diff --git a/tests/Feature/Actions/Storage/Admin/Dump/DumpWikiTest.php b/tests/Feature/Actions/Storage/Admin/Dump/DumpWikiTest.php index 44ff25ca5..799d473d2 100644 --- a/tests/Feature/Actions/Storage/Admin/Dump/DumpWikiTest.php +++ b/tests/Feature/Actions/Storage/Admin/Dump/DumpWikiTest.php @@ -29,7 +29,7 @@ class DumpWikiTest extends TestCase * * @throws Exception */ - public function testDataBaseDumpOutput(): void + public function test_data_base_dump_output(): void { $local = Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -40,7 +40,7 @@ class DumpWikiTest extends TestCase $result = $action->handle(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); static::assertEmpty($local->allFiles()); static::assertCount(1, $fs->allFiles()); static::assertDatabaseCount(Dump::class, 1); diff --git a/tests/Feature/Actions/Storage/Admin/Dump/PruneDumpTest.php b/tests/Feature/Actions/Storage/Admin/Dump/PruneDumpTest.php index f8fae8bb4..99f1028e8 100644 --- a/tests/Feature/Actions/Storage/Admin/Dump/PruneDumpTest.php +++ b/tests/Feature/Actions/Storage/Admin/Dump/PruneDumpTest.php @@ -31,7 +31,7 @@ class PruneDumpTest extends TestCase * * @throws Exception */ - public function testNoResults(): void + public function test_no_results(): void { $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -53,7 +53,7 @@ class PruneDumpTest extends TestCase * * @throws Exception */ - public function testPruned(): void + public function test_pruned(): void { $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -78,7 +78,7 @@ class PruneDumpTest extends TestCase $result = $pruneResults->toActionResult(); static::assertEmpty($fs->allFiles()); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); $dumps = Dump::withTrashed()->get(); foreach ($dumps as $dump) { diff --git a/tests/Feature/Actions/Storage/Wiki/Audio/DeleteAudioTest.php b/tests/Feature/Actions/Storage/Wiki/Audio/DeleteAudioTest.php index 678af6fc1..0e8a48237 100644 --- a/tests/Feature/Actions/Storage/Wiki/Audio/DeleteAudioTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Audio/DeleteAudioTest.php @@ -29,7 +29,7 @@ class DeleteAudioTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(AudioConstants::DISKS_QUALIFIED, []); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -50,7 +50,7 @@ class DeleteAudioTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { Config::set(AudioConstants::DISKS_QUALIFIED, [Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)]); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -70,7 +70,7 @@ class DeleteAudioTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -78,7 +78,7 @@ class DeleteAudioTest extends TestCase * * @return void */ - public function testDeletedFromDisk(): void + public function test_deleted_from_disk(): void { Config::set(AudioConstants::DISKS_QUALIFIED, [Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)]); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -106,7 +106,7 @@ class DeleteAudioTest extends TestCase * * @throws Exception */ - public function testAudioDeleted(): void + public function test_audio_deleted(): void { Config::set(AudioConstants::DISKS_QUALIFIED, [Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)]); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); diff --git a/tests/Feature/Actions/Storage/Wiki/Audio/MoveAudioTest.php b/tests/Feature/Actions/Storage/Wiki/Audio/MoveAudioTest.php index 84ea312ed..97ce2cd26 100644 --- a/tests/Feature/Actions/Storage/Wiki/Audio/MoveAudioTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Audio/MoveAudioTest.php @@ -30,7 +30,7 @@ class MoveAudioTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(AudioConstants::DISKS_QUALIFIED, []); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -51,7 +51,7 @@ class MoveAudioTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -74,7 +74,7 @@ class MoveAudioTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -82,7 +82,7 @@ class MoveAudioTest extends TestCase * * @return void */ - public function testMovedInDisk(): void + public function test_moved_in_disk(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -115,7 +115,7 @@ class MoveAudioTest extends TestCase * * @return void */ - public function testAudioUpdated(): void + public function test_audio_updated(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); diff --git a/tests/Feature/Actions/Storage/Wiki/Audio/UploadAudioTest.php b/tests/Feature/Actions/Storage/Wiki/Audio/UploadAudioTest.php index 4ef0a77ff..b8e0271a1 100644 --- a/tests/Feature/Actions/Storage/Wiki/Audio/UploadAudioTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Audio/UploadAudioTest.php @@ -26,7 +26,7 @@ class UploadAudioTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(AudioConstants::DISKS_QUALIFIED, []); Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -47,7 +47,7 @@ class UploadAudioTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); Config::set(AudioConstants::DISKS_QUALIFIED, [Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)]); @@ -60,7 +60,7 @@ class UploadAudioTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -68,7 +68,7 @@ class UploadAudioTest extends TestCase * * @return void */ - public function testUploadedToDisk(): void + public function test_uploaded_to_disk(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); Config::set(AudioConstants::DISKS_QUALIFIED, [Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)]); @@ -87,7 +87,7 @@ class UploadAudioTest extends TestCase * * @return void */ - public function testCreatedAudio(): void + public function test_created_audio(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); Config::set(AudioConstants::DISKS_QUALIFIED, [Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)]); diff --git a/tests/Feature/Actions/Storage/Wiki/Video/DeleteVideoTest.php b/tests/Feature/Actions/Storage/Wiki/Video/DeleteVideoTest.php index 9c8450cfb..f636e4995 100644 --- a/tests/Feature/Actions/Storage/Wiki/Video/DeleteVideoTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Video/DeleteVideoTest.php @@ -29,7 +29,7 @@ class DeleteVideoTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(VideoConstants::DISKS_QUALIFIED, []); Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -50,7 +50,7 @@ class DeleteVideoTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -70,7 +70,7 @@ class DeleteVideoTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -78,7 +78,7 @@ class DeleteVideoTest extends TestCase * * @return void */ - public function testDeletedFromDisk(): void + public function test_deleted_from_disk(): void { Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -106,7 +106,7 @@ class DeleteVideoTest extends TestCase * * @throws Exception */ - public function testVideoDeleted(): void + public function test_video_deleted(): void { Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); diff --git a/tests/Feature/Actions/Storage/Wiki/Video/MoveVideoTest.php b/tests/Feature/Actions/Storage/Wiki/Video/MoveVideoTest.php index 732032763..5d4d3e294 100644 --- a/tests/Feature/Actions/Storage/Wiki/Video/MoveVideoTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Video/MoveVideoTest.php @@ -30,7 +30,7 @@ class MoveVideoTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(VideoConstants::DISKS_QUALIFIED, []); Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -51,7 +51,7 @@ class MoveVideoTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -74,7 +74,7 @@ class MoveVideoTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -82,7 +82,7 @@ class MoveVideoTest extends TestCase * * @return void */ - public function testMovedInDisk(): void + public function test_moved_in_disk(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -115,7 +115,7 @@ class MoveVideoTest extends TestCase * * @return void */ - public function testVideoUpdated(): void + public function test_video_updated(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); diff --git a/tests/Feature/Actions/Storage/Wiki/Video/Script/DeleteScriptTest.php b/tests/Feature/Actions/Storage/Wiki/Video/Script/DeleteScriptTest.php index cba999eab..04b059659 100644 --- a/tests/Feature/Actions/Storage/Wiki/Video/Script/DeleteScriptTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Video/Script/DeleteScriptTest.php @@ -27,7 +27,7 @@ class DeleteScriptTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(VideoConstants::SCRIPT_DISK_QUALIFIED, []); Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -48,7 +48,7 @@ class DeleteScriptTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -64,7 +64,7 @@ class DeleteScriptTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -72,7 +72,7 @@ class DeleteScriptTest extends TestCase * * @return void */ - public function testDeletedFromDisk(): void + public function test_deleted_from_disk(): void { $fs = Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -96,7 +96,7 @@ class DeleteScriptTest extends TestCase * * @throws Exception */ - public function testVideoDeleted(): void + public function test_video_deleted(): void { Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); diff --git a/tests/Feature/Actions/Storage/Wiki/Video/Script/MoveScriptTest.php b/tests/Feature/Actions/Storage/Wiki/Video/Script/MoveScriptTest.php index 0de02689b..5de223736 100644 --- a/tests/Feature/Actions/Storage/Wiki/Video/Script/MoveScriptTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Video/Script/MoveScriptTest.php @@ -28,7 +28,7 @@ class MoveScriptTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(VideoConstants::SCRIPT_DISK_QUALIFIED, []); Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -49,7 +49,7 @@ class MoveScriptTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -68,7 +68,7 @@ class MoveScriptTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -76,7 +76,7 @@ class MoveScriptTest extends TestCase * * @return void */ - public function testMovedInDisk(): void + public function test_moved_in_disk(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -105,7 +105,7 @@ class MoveScriptTest extends TestCase * * @return void */ - public function testScriptUpdated(): void + public function test_script_updated(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); diff --git a/tests/Feature/Actions/Storage/Wiki/Video/Script/UploadScriptTest.php b/tests/Feature/Actions/Storage/Wiki/Video/Script/UploadScriptTest.php index cec570889..92df4964d 100644 --- a/tests/Feature/Actions/Storage/Wiki/Video/Script/UploadScriptTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Video/Script/UploadScriptTest.php @@ -27,7 +27,7 @@ class UploadScriptTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(VideoConstants::SCRIPT_DISK_QUALIFIED, []); Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -48,7 +48,7 @@ class UploadScriptTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -60,7 +60,7 @@ class UploadScriptTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -68,7 +68,7 @@ class UploadScriptTest extends TestCase * * @return void */ - public function testUploadedToDisk(): void + public function test_uploaded_to_disk(): void { $fs = Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -86,7 +86,7 @@ class UploadScriptTest extends TestCase * * @return void */ - public function testCreatedVideo(): void + public function test_created_video(): void { Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -106,7 +106,7 @@ class UploadScriptTest extends TestCase * * @return void */ - public function testAttachesVideo(): void + public function test_attaches_video(): void { Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); diff --git a/tests/Feature/Actions/Storage/Wiki/Video/UploadVideoTest.php b/tests/Feature/Actions/Storage/Wiki/Video/UploadVideoTest.php index 4c0a563f2..60df25746 100644 --- a/tests/Feature/Actions/Storage/Wiki/Video/UploadVideoTest.php +++ b/tests/Feature/Actions/Storage/Wiki/Video/UploadVideoTest.php @@ -35,7 +35,7 @@ class UploadVideoTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Config::set(VideoConstants::DISKS_QUALIFIED, []); Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -56,7 +56,7 @@ class UploadVideoTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); @@ -69,7 +69,7 @@ class UploadVideoTest extends TestCase $result = $storageResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } /** @@ -77,7 +77,7 @@ class UploadVideoTest extends TestCase * * @return void */ - public function testUploadedToDisk(): void + public function test_uploaded_to_disk(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); @@ -98,7 +98,7 @@ class UploadVideoTest extends TestCase * * @throws Exception */ - public function testCreatedVideo(): void + public function test_created_video(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); @@ -121,7 +121,7 @@ class UploadVideoTest extends TestCase * * @throws Exception */ - public function testSetsAttributes(): void + public function test_sets_attributes(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); @@ -156,7 +156,7 @@ class UploadVideoTest extends TestCase * * @throws Exception */ - public function testAttachesEntry(): void + public function test_attaches_entry(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); @@ -183,7 +183,7 @@ class UploadVideoTest extends TestCase * * @throws Exception */ - public function testAssociatesScript(): void + public function test_associates_script(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); Config::set(VideoConstants::DISKS_QUALIFIED, [Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)]); diff --git a/tests/Feature/Console/Commands/Repositories/Storage/Admin/DumpReconcileTest.php b/tests/Feature/Console/Commands/Repositories/Storage/Admin/DumpReconcileTest.php index 3474c04d9..142633fad 100644 --- a/tests/Feature/Console/Commands/Repositories/Storage/Admin/DumpReconcileTest.php +++ b/tests/Feature/Console/Commands/Repositories/Storage/Admin/DumpReconcileTest.php @@ -27,7 +27,7 @@ class DumpReconcileTest extends TestCase * * @return void */ - public function testNoResults(): void + public function test_no_results(): void { $this->mock(DumpRepository::class, function (MockInterface $mock) { $mock->shouldReceive('get')->once()->andReturn(Collection::make()); @@ -43,7 +43,7 @@ class DumpReconcileTest extends TestCase * * @return void */ - public function testCreated(): void + public function test_created(): void { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -65,7 +65,7 @@ class DumpReconcileTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); diff --git a/tests/Feature/Console/Commands/Repositories/Storage/Wiki/AudioReconcileTest.php b/tests/Feature/Console/Commands/Repositories/Storage/Wiki/AudioReconcileTest.php index 9ee135768..685993a30 100644 --- a/tests/Feature/Console/Commands/Repositories/Storage/Wiki/AudioReconcileTest.php +++ b/tests/Feature/Console/Commands/Repositories/Storage/Wiki/AudioReconcileTest.php @@ -24,7 +24,7 @@ class AudioReconcileTest extends TestCase * * @return void */ - public function testNoResults(): void + public function test_no_results(): void { $this->mock(AudioRepository::class, function (MockInterface $mock) { $mock->shouldReceive('get')->once()->andReturn(Collection::make()); @@ -40,7 +40,7 @@ class AudioReconcileTest extends TestCase * * @return void */ - public function testCreated(): void + public function test_created(): void { $createdAudioCount = $this->faker->numberBetween(2, 9); @@ -60,7 +60,7 @@ class AudioReconcileTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $deletedAudioCount = $this->faker->numberBetween(2, 9); @@ -80,7 +80,7 @@ class AudioReconcileTest extends TestCase * * @return void */ - public function testUpdated(): void + public function test_updated(): void { $updatedAudioCount = $this->faker->numberBetween(2, 9); diff --git a/tests/Feature/Console/Commands/Repositories/Storage/Wiki/Video/ScriptReconcileTest.php b/tests/Feature/Console/Commands/Repositories/Storage/Wiki/Video/ScriptReconcileTest.php index 8f5087b11..b5005c46e 100644 --- a/tests/Feature/Console/Commands/Repositories/Storage/Wiki/Video/ScriptReconcileTest.php +++ b/tests/Feature/Console/Commands/Repositories/Storage/Wiki/Video/ScriptReconcileTest.php @@ -27,7 +27,7 @@ class ScriptReconcileTest extends TestCase * * @return void */ - public function testNoResults(): void + public function test_no_results(): void { Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -45,7 +45,7 @@ class ScriptReconcileTest extends TestCase * * @return void */ - public function testCreated(): void + public function test_created(): void { Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); @@ -67,7 +67,7 @@ class ScriptReconcileTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); diff --git a/tests/Feature/Console/Commands/Repositories/Storage/Wiki/VideoReconcileTest.php b/tests/Feature/Console/Commands/Repositories/Storage/Wiki/VideoReconcileTest.php index 47592676f..10f951cf0 100644 --- a/tests/Feature/Console/Commands/Repositories/Storage/Wiki/VideoReconcileTest.php +++ b/tests/Feature/Console/Commands/Repositories/Storage/Wiki/VideoReconcileTest.php @@ -27,7 +27,7 @@ class VideoReconcileTest extends TestCase * * @return void */ - public function testNoResults(): void + public function test_no_results(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -45,7 +45,7 @@ class VideoReconcileTest extends TestCase * * @return void */ - public function testCreated(): void + public function test_created(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -67,7 +67,7 @@ class VideoReconcileTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -89,7 +89,7 @@ class VideoReconcileTest extends TestCase * * @return void */ - public function testUpdated(): void + public function test_updated(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); diff --git a/tests/Feature/Console/Commands/Storage/Admin/DocumentDumpTest.php b/tests/Feature/Console/Commands/Storage/Admin/DocumentDumpTest.php index 0ca44ee3e..a1a46fe9f 100644 --- a/tests/Feature/Console/Commands/Storage/Admin/DocumentDumpTest.php +++ b/tests/Feature/Console/Commands/Storage/Admin/DocumentDumpTest.php @@ -24,7 +24,7 @@ class DocumentDumpTest extends TestCase * * @return void */ - public function testDataBaseDumpOutput(): void + public function test_data_base_dump_output(): void { Storage::fake('local'); Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -41,7 +41,7 @@ class DocumentDumpTest extends TestCase * * @return void */ - public function testDataBaseDumpFile(): void + public function test_data_base_dump_file(): void { $local = Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); diff --git a/tests/Feature/Console/Commands/Storage/Admin/DumpPruneTest.php b/tests/Feature/Console/Commands/Storage/Admin/DumpPruneTest.php index 5e4ef4980..15acc5f32 100644 --- a/tests/Feature/Console/Commands/Storage/Admin/DumpPruneTest.php +++ b/tests/Feature/Console/Commands/Storage/Admin/DumpPruneTest.php @@ -26,7 +26,7 @@ class DumpPruneTest extends TestCase * * @return void */ - public function testNoResults(): void + public function test_no_results(): void { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -40,7 +40,7 @@ class DumpPruneTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); diff --git a/tests/Feature/Console/Commands/Storage/Admin/WikiDumpTest.php b/tests/Feature/Console/Commands/Storage/Admin/WikiDumpTest.php index a5624c51e..95150bf39 100644 --- a/tests/Feature/Console/Commands/Storage/Admin/WikiDumpTest.php +++ b/tests/Feature/Console/Commands/Storage/Admin/WikiDumpTest.php @@ -24,7 +24,7 @@ class WikiDumpTest extends TestCase * * @return void */ - public function testDataBaseDumpOutput(): void + public function test_data_base_dump_output(): void { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -40,7 +40,7 @@ class WikiDumpTest extends TestCase * * @return void */ - public function testDataBaseDumpFile(): void + public function test_data_base_dump_file(): void { $local = Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); diff --git a/tests/Feature/Events/Admin/AnnouncementTest.php b/tests/Feature/Events/Admin/AnnouncementTest.php index b8e37886a..a22748d4b 100644 --- a/tests/Feature/Events/Admin/AnnouncementTest.php +++ b/tests/Feature/Events/Admin/AnnouncementTest.php @@ -23,7 +23,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementCreatedEventDispatched(): void + public function test_announcement_created_event_dispatched(): void { Announcement::factory()->create(); @@ -35,7 +35,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementDeletedEventDispatched(): void + public function test_announcement_deleted_event_dispatched(): void { $announcement = Announcement::factory()->create(); @@ -49,7 +49,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementRestoredEventDispatched(): void + public function test_announcement_restored_event_dispatched(): void { $announcement = Announcement::factory()->createOne(); @@ -65,7 +65,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementRestoresQuietly(): void + public function test_announcement_restores_quietly(): void { $announcement = Announcement::factory()->createOne(); @@ -79,7 +79,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementUpdatedEventDispatched(): void + public function test_announcement_updated_event_dispatched(): void { $announcement = Announcement::factory()->createOne(); $changes = Announcement::factory()->makeOne(); @@ -95,7 +95,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementUpdatedEventEmbedFields(): void + public function test_announcement_updated_event_embed_fields(): void { $announcement = Announcement::factory()->createOne(); $changes = Announcement::factory()->makeOne(); diff --git a/tests/Feature/Events/Admin/DumpTest.php b/tests/Feature/Events/Admin/DumpTest.php index 5df265c94..5689b31b3 100644 --- a/tests/Feature/Events/Admin/DumpTest.php +++ b/tests/Feature/Events/Admin/DumpTest.php @@ -23,7 +23,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpCreatedEventDispatched(): void + public function test_dump_created_event_dispatched(): void { Dump::factory()->create(); @@ -35,7 +35,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpDeletedEventDispatched(): void + public function test_dump_deleted_event_dispatched(): void { $dump = Dump::factory()->create(); @@ -49,7 +49,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpRestoredEventDispatched(): void + public function test_dump_restored_event_dispatched(): void { $dump = Dump::factory()->createOne(); @@ -65,7 +65,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpRestoresQuietly(): void + public function test_dump_restores_quietly(): void { $dump = Dump::factory()->createOne(); @@ -79,7 +79,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpUpdatedEventDispatched(): void + public function test_dump_updated_event_dispatched(): void { $dump = Dump::factory()->createOne(); $changes = Dump::factory()->makeOne(); @@ -95,7 +95,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpUpdatedEventEmbedFields(): void + public function test_dump_updated_event_embed_fields(): void { $dump = Dump::factory()->createOne(); $changes = Dump::factory()->makeOne(); diff --git a/tests/Feature/Events/Admin/FeatureTest.php b/tests/Feature/Events/Admin/FeatureTest.php index 0d89fcbc9..29226a3f4 100644 --- a/tests/Feature/Events/Admin/FeatureTest.php +++ b/tests/Feature/Events/Admin/FeatureTest.php @@ -22,7 +22,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testFeatureCreatedEventDispatched(): void + public function test_feature_created_event_dispatched(): void { Feature::factory()->create(); @@ -34,7 +34,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testFeatureDeletedEventDispatched(): void + public function test_feature_deleted_event_dispatched(): void { $feature = Feature::factory()->create(); @@ -48,7 +48,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testFeatureUpdatedEventDispatched(): void + public function test_feature_updated_event_dispatched(): void { $feature = Feature::factory()->createOne(); @@ -64,7 +64,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testFeatureUpdatedEventEmbedFields(): void + public function test_feature_updated_event_embed_fields(): void { $feature = Feature::factory()->createOne(); diff --git a/tests/Feature/Events/Admin/FeaturedThemeTest.php b/tests/Feature/Events/Admin/FeaturedThemeTest.php index 99c51d1fb..e45ff3006 100644 --- a/tests/Feature/Events/Admin/FeaturedThemeTest.php +++ b/tests/Feature/Events/Admin/FeaturedThemeTest.php @@ -23,7 +23,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeCreatedEventDispatched(): void + public function test_featured_theme_created_event_dispatched(): void { FeaturedTheme::factory()->create(); @@ -35,7 +35,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeDeletedEventDispatched(): void + public function test_featured_theme_deleted_event_dispatched(): void { $featuredTheme = FeaturedTheme::factory()->create(); @@ -49,7 +49,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeRestoredEventDispatched(): void + public function test_featured_theme_restored_event_dispatched(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -65,7 +65,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeRestoresQuietly(): void + public function test_featured_theme_restores_quietly(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -79,7 +79,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeUpdatedEventDispatched(): void + public function test_featured_theme_updated_event_dispatched(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); $changes = FeaturedTheme::factory()->makeOne(); @@ -95,7 +95,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeUpdatedEventEmbedFields(): void + public function test_featured_theme_updated_event_embed_fields(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); $changes = FeaturedTheme::factory()->makeOne(); diff --git a/tests/Feature/Events/Auth/UserTest.php b/tests/Feature/Events/Auth/UserTest.php index 4de645969..96276bff2 100644 --- a/tests/Feature/Events/Auth/UserTest.php +++ b/tests/Feature/Events/Auth/UserTest.php @@ -23,7 +23,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserCreatedEventDispatched(): void + public function test_user_created_event_dispatched(): void { User::factory()->createOne(); @@ -35,7 +35,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserDeletedEventDispatched(): void + public function test_user_deleted_event_dispatched(): void { $user = User::factory()->createOne(); @@ -49,7 +49,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserRestoredEventDispatched(): void + public function test_user_restored_event_dispatched(): void { $user = User::factory()->createOne(); @@ -65,7 +65,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserRestoresQuietly(): void + public function test_user_restores_quietly(): void { $user = User::factory()->createOne(); @@ -79,7 +79,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserUpdatedEventDispatched(): void + public function test_user_updated_event_dispatched(): void { $user = User::factory()->createOne(); $changes = User::factory()->makeOne(); @@ -95,7 +95,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserUpdatedEventEmbedFields(): void + public function test_user_updated_event_embed_fields(): void { $user = User::factory()->createOne(); $changes = User::factory()->makeOne(); diff --git a/tests/Feature/Events/Document/PageTest.php b/tests/Feature/Events/Document/PageTest.php index d1b4c41da..ad9541226 100644 --- a/tests/Feature/Events/Document/PageTest.php +++ b/tests/Feature/Events/Document/PageTest.php @@ -23,7 +23,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageCreatedEventDispatched(): void + public function test_page_created_event_dispatched(): void { Page::factory()->createOne(); @@ -35,7 +35,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageDeletedEventDispatched(): void + public function test_page_deleted_event_dispatched(): void { $page = Page::factory()->createOne(); @@ -49,7 +49,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageRestoredEventDispatched(): void + public function test_page_restored_event_dispatched(): void { $page = Page::factory()->createOne(); @@ -65,7 +65,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageRestoresQuietly(): void + public function test_page_restores_quietly(): void { $page = Page::factory()->createOne(); @@ -79,7 +79,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageUpdatedEventDispatched(): void + public function test_page_updated_event_dispatched(): void { $page = Page::factory()->createOne(); $changes = Page::factory()->makeOne(); @@ -95,7 +95,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageUpdatedEventEmbedFields(): void + public function test_page_updated_event_embed_fields(): void { $page = Page::factory()->createOne(); $changes = Page::factory()->makeOne(); diff --git a/tests/Feature/Events/List/ExternalProfileTest.php b/tests/Feature/Events/List/ExternalProfileTest.php index 08c4b0147..58d2ac5f0 100644 --- a/tests/Feature/Events/List/ExternalProfileTest.php +++ b/tests/Feature/Events/List/ExternalProfileTest.php @@ -23,7 +23,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileCreatedEventDispatched(): void + public function test_external_profile_created_event_dispatched(): void { ExternalProfile::factory()->createOne(); @@ -35,7 +35,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileDeletedEventDispatched(): void + public function test_external_profile_deleted_event_dispatched(): void { $profile = ExternalProfile::factory()->createOne(); @@ -49,7 +49,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileRestoredEventDispatched(): void + public function test_external_profile_restored_event_dispatched(): void { $profile = ExternalProfile::factory()->createOne(); @@ -65,7 +65,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileRestoresQuietly(): void + public function test_external_profile_restores_quietly(): void { $profile = ExternalProfile::factory()->createOne(); @@ -79,7 +79,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileUpdatedEventDispatched(): void + public function test_external_profile_updated_event_dispatched(): void { $profile = ExternalProfile::factory()->createOne(); $changes = ExternalProfile::factory()->makeOne(); @@ -95,7 +95,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileUpdatedEventEmbedFields(): void + public function test_external_profile_updated_event_embed_fields(): void { $profile = ExternalProfile::factory()->createOne(); $changes = ExternalProfile::factory()->makeOne(); diff --git a/tests/Feature/Events/List/Playlist/TrackTest.php b/tests/Feature/Events/List/Playlist/TrackTest.php index 3b83bd8e8..64aec40a3 100644 --- a/tests/Feature/Events/List/Playlist/TrackTest.php +++ b/tests/Feature/Events/List/Playlist/TrackTest.php @@ -25,7 +25,7 @@ class TrackTest extends TestCase * * @return void */ - public function testTrackCreatedEventDispatched(): void + public function test_track_created_event_dispatched(): void { PlaylistTrack::factory() ->for(Playlist::factory()) @@ -39,7 +39,7 @@ class TrackTest extends TestCase * * @return void */ - public function testTrackDeletedEventDispatched(): void + public function test_track_deleted_event_dispatched(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()) @@ -55,7 +55,7 @@ class TrackTest extends TestCase * * @return void */ - public function testTrackRestoredEventDispatched(): void + public function test_track_restored_event_dispatched(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()) @@ -73,7 +73,7 @@ class TrackTest extends TestCase * * @return void */ - public function testTrackRestoresQuietly(): void + public function test_track_restores_quietly(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()) @@ -89,7 +89,7 @@ class TrackTest extends TestCase * * @return void */ - public function testTrackUpdatedEventDispatched(): void + public function test_track_updated_event_dispatched(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()) @@ -110,7 +110,7 @@ class TrackTest extends TestCase * * @return void */ - public function testPlaylistUpdatedEventEmbedFields(): void + public function test_playlist_updated_event_embed_fields(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()) @@ -135,7 +135,7 @@ class TrackTest extends TestCase * * @return void */ - public function testPlaylistCreatedAssignsHashids(): void + public function test_playlist_created_assigns_hashids(): void { Event::fakeExcept(TrackCreated::class); diff --git a/tests/Feature/Events/List/PlaylistTest.php b/tests/Feature/Events/List/PlaylistTest.php index d9e30e387..2488ae577 100644 --- a/tests/Feature/Events/List/PlaylistTest.php +++ b/tests/Feature/Events/List/PlaylistTest.php @@ -25,7 +25,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistCreatedEventDispatched(): void + public function test_playlist_created_event_dispatched(): void { Playlist::factory()->createOne(); @@ -37,7 +37,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistDeletedEventDispatched(): void + public function test_playlist_deleted_event_dispatched(): void { $playlist = Playlist::factory()->createOne(); @@ -51,7 +51,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistRestoredEventDispatched(): void + public function test_playlist_restored_event_dispatched(): void { $playlist = Playlist::factory()->createOne(); @@ -67,7 +67,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistRestoresQuietly(): void + public function test_playlist_restores_quietly(): void { $playlist = Playlist::factory()->createOne(); @@ -81,7 +81,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistUpdatedEventDispatched(): void + public function test_playlist_updated_event_dispatched(): void { $playlist = Playlist::factory()->createOne(); $changes = Playlist::factory()->makeOne(); @@ -97,7 +97,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistUpdatedEventEmbedFields(): void + public function test_playlist_updated_event_embed_fields(): void { $playlist = Playlist::factory()->createOne(); $changes = Playlist::factory()->makeOne(); @@ -117,7 +117,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistCreatedAssignsNullableUserHashids(): void + public function test_playlist_created_assigns_nullable_user_hashids(): void { Event::fakeExcept(PlaylistCreated::class); @@ -131,7 +131,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistCreatedAssignsNonNullUserHashids(): void + public function test_playlist_created_assigns_non_null_user_hashids(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Events/Pivot/List/PlaylistImageTest.php b/tests/Feature/Events/Pivot/List/PlaylistImageTest.php index a3c9e3d55..e1048f73b 100644 --- a/tests/Feature/Events/Pivot/List/PlaylistImageTest.php +++ b/tests/Feature/Events/Pivot/List/PlaylistImageTest.php @@ -21,7 +21,7 @@ class PlaylistImageTest extends TestCase * * @return void */ - public function testPlaylistImageCreatedEventDispatched(): void + public function test_playlist_image_created_event_dispatched(): void { $playlist = Playlist::factory()->createOne(); $image = Image::factory()->createOne(); @@ -36,7 +36,7 @@ class PlaylistImageTest extends TestCase * * @return void */ - public function testPlaylistImageDeletedEventDispatched(): void + public function test_playlist_image_deleted_event_dispatched(): void { $playlist = Playlist::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/AnimeImageTest.php b/tests/Feature/Events/Pivot/Wiki/AnimeImageTest.php index 718e80712..3c9e622d9 100644 --- a/tests/Feature/Events/Pivot/Wiki/AnimeImageTest.php +++ b/tests/Feature/Events/Pivot/Wiki/AnimeImageTest.php @@ -21,7 +21,7 @@ class AnimeImageTest extends TestCase * * @return void */ - public function testAnimeImageCreatedEventDispatched(): void + public function test_anime_image_created_event_dispatched(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); @@ -36,7 +36,7 @@ class AnimeImageTest extends TestCase * * @return void */ - public function testAnimeImageDeletedEventDispatched(): void + public function test_anime_image_deleted_event_dispatched(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/AnimeResourceTest.php b/tests/Feature/Events/Pivot/Wiki/AnimeResourceTest.php index 3c2c45ccb..b7590a356 100644 --- a/tests/Feature/Events/Pivot/Wiki/AnimeResourceTest.php +++ b/tests/Feature/Events/Pivot/Wiki/AnimeResourceTest.php @@ -24,7 +24,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testAnimeResourceCreatedEventDispatched(): void + public function test_anime_resource_created_event_dispatched(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -39,7 +39,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testAnimeResourceDeletedEventDispatched(): void + public function test_anime_resource_deleted_event_dispatched(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -55,7 +55,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testAnimeResourceUpdatedEventDispatched(): void + public function test_anime_resource_updated_event_dispatched(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -81,7 +81,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testAnimeResourceUpdatedEventEmbedFields(): void + public function test_anime_resource_updated_event_embed_fields(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/AnimeSeriesTest.php b/tests/Feature/Events/Pivot/Wiki/AnimeSeriesTest.php index d5aa33979..8435c0d19 100644 --- a/tests/Feature/Events/Pivot/Wiki/AnimeSeriesTest.php +++ b/tests/Feature/Events/Pivot/Wiki/AnimeSeriesTest.php @@ -21,7 +21,7 @@ class AnimeSeriesTest extends TestCase * * @return void */ - public function testAnimeSeriesCreatedEventDispatched(): void + public function test_anime_series_created_event_dispatched(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); @@ -36,7 +36,7 @@ class AnimeSeriesTest extends TestCase * * @return void */ - public function testAnimeSeriesDeletedEventDispatched(): void + public function test_anime_series_deleted_event_dispatched(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/AnimeStudioTest.php b/tests/Feature/Events/Pivot/Wiki/AnimeStudioTest.php index 8e997902d..872db9369 100644 --- a/tests/Feature/Events/Pivot/Wiki/AnimeStudioTest.php +++ b/tests/Feature/Events/Pivot/Wiki/AnimeStudioTest.php @@ -21,7 +21,7 @@ class AnimeStudioTest extends TestCase * * @return void */ - public function testAnimeStudioCreatedEventDispatched(): void + public function test_anime_studio_created_event_dispatched(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); @@ -36,7 +36,7 @@ class AnimeStudioTest extends TestCase * * @return void */ - public function testAnimeStudioDeletedEventDispatched(): void + public function test_anime_studio_deleted_event_dispatched(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/AnimeThemeEntryVideoTest.php b/tests/Feature/Events/Pivot/Wiki/AnimeThemeEntryVideoTest.php index 81d0c650b..29d1b7e8f 100644 --- a/tests/Feature/Events/Pivot/Wiki/AnimeThemeEntryVideoTest.php +++ b/tests/Feature/Events/Pivot/Wiki/AnimeThemeEntryVideoTest.php @@ -25,7 +25,7 @@ class AnimeThemeEntryVideoTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoCreatedEventDispatched(): void + public function test_anime_theme_entry_video_created_event_dispatched(): void { $video = Video::factory()->createOne(); $entry = AnimeThemeEntry::factory() @@ -42,7 +42,7 @@ class AnimeThemeEntryVideoTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoDeletedEventDispatched(): void + public function test_anime_theme_entry_video_deleted_event_dispatched(): void { $video = Video::factory()->createOne(); $entry = AnimeThemeEntry::factory() @@ -60,7 +60,7 @@ class AnimeThemeEntryVideoTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoCreatedEventUpdatePlaylistTracks(): void + public function test_anime_theme_entry_video_created_event_update_playlist_tracks(): void { $video = Video::factory()->createOne(); $entry = AnimeThemeEntry::factory() @@ -86,7 +86,7 @@ class AnimeThemeEntryVideoTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoDeletedEventUpdatePlaylistTracks(): void + public function test_anime_theme_entry_video_deleted_event_update_playlist_tracks(): void { $video = Video::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/ArtistImageTest.php b/tests/Feature/Events/Pivot/Wiki/ArtistImageTest.php index 87525877d..eeceb812e 100644 --- a/tests/Feature/Events/Pivot/Wiki/ArtistImageTest.php +++ b/tests/Feature/Events/Pivot/Wiki/ArtistImageTest.php @@ -21,7 +21,7 @@ class ArtistImageTest extends TestCase * * @return void */ - public function testArtistImageCreatedEventDispatched(): void + public function test_artist_image_created_event_dispatched(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); @@ -36,7 +36,7 @@ class ArtistImageTest extends TestCase * * @return void */ - public function testArtistImageDeletedEventDispatched(): void + public function test_artist_image_deleted_event_dispatched(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/ArtistMemberTest.php b/tests/Feature/Events/Pivot/Wiki/ArtistMemberTest.php index b087aa8a2..829a66f11 100644 --- a/tests/Feature/Events/Pivot/Wiki/ArtistMemberTest.php +++ b/tests/Feature/Events/Pivot/Wiki/ArtistMemberTest.php @@ -23,7 +23,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testArtistMemberCreatedEventDispatched(): void + public function test_artist_member_created_event_dispatched(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -38,7 +38,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testArtistMemberDeletedEventDispatched(): void + public function test_artist_member_deleted_event_dispatched(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -54,7 +54,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testArtistMemberUpdatedEventDispatched(): void + public function test_artist_member_updated_event_dispatched(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -80,7 +80,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testArtistMemberUpdatedEventEmbedFields(): void + public function test_artist_member_updated_event_embed_fields(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/ArtistResourceTest.php b/tests/Feature/Events/Pivot/Wiki/ArtistResourceTest.php index 2631a61eb..9a995c9e6 100644 --- a/tests/Feature/Events/Pivot/Wiki/ArtistResourceTest.php +++ b/tests/Feature/Events/Pivot/Wiki/ArtistResourceTest.php @@ -24,7 +24,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testArtistResourceCreatedEventDispatched(): void + public function test_artist_resource_created_event_dispatched(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -39,7 +39,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testArtistResourceDeletedEventDispatched(): void + public function test_artist_resource_deleted_event_dispatched(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -55,7 +55,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testArtistResourceUpdatedEventDispatched(): void + public function test_artist_resource_updated_event_dispatched(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -81,7 +81,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testArtistResourceUpdatedEventEmbedFields(): void + public function test_artist_resource_updated_event_embed_fields(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/ArtistSongTest.php b/tests/Feature/Events/Pivot/Wiki/ArtistSongTest.php index 95f38322f..f8a3ebda7 100644 --- a/tests/Feature/Events/Pivot/Wiki/ArtistSongTest.php +++ b/tests/Feature/Events/Pivot/Wiki/ArtistSongTest.php @@ -24,7 +24,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testArtistSongCreatedEventDispatched(): void + public function test_artist_song_created_event_dispatched(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -39,7 +39,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testArtistSongDeletedEventDispatched(): void + public function test_artist_song_deleted_event_dispatched(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -55,7 +55,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testArtistSongUpdatedEventDispatched(): void + public function test_artist_song_updated_event_dispatched(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -81,7 +81,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testArtistSongUpdatedEventEmbedFields(): void + public function test_artist_song_updated_event_embed_fields(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/SongResourceTest.php b/tests/Feature/Events/Pivot/Wiki/SongResourceTest.php index 653252e2a..748969c5b 100644 --- a/tests/Feature/Events/Pivot/Wiki/SongResourceTest.php +++ b/tests/Feature/Events/Pivot/Wiki/SongResourceTest.php @@ -7,8 +7,8 @@ namespace Tests\Feature\Events\Pivot\Wiki; use App\Events\Pivot\Wiki\SongResource\SongResourceCreated; use App\Events\Pivot\Wiki\SongResource\SongResourceDeleted; use App\Events\Pivot\Wiki\SongResource\SongResourceUpdated; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Event; @@ -24,7 +24,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testSongResourceCreatedEventDispatched(): void + public function test_song_resource_created_event_dispatched(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -39,7 +39,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testSongResourceDeletedEventDispatched(): void + public function test_song_resource_deleted_event_dispatched(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -55,7 +55,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testSongResourceUpdatedEventDispatched(): void + public function test_song_resource_updated_event_dispatched(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -81,7 +81,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testSongResourceUpdatedEventEmbedFields(): void + public function test_song_resource_updated_event_embed_fields(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/StudioImageTest.php b/tests/Feature/Events/Pivot/Wiki/StudioImageTest.php index c2ede0343..a263ae014 100644 --- a/tests/Feature/Events/Pivot/Wiki/StudioImageTest.php +++ b/tests/Feature/Events/Pivot/Wiki/StudioImageTest.php @@ -21,7 +21,7 @@ class StudioImageTest extends TestCase * * @return void */ - public function testStudioImageCreatedEventDispatched(): void + public function test_studio_image_created_event_dispatched(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); @@ -36,7 +36,7 @@ class StudioImageTest extends TestCase * * @return void */ - public function testStudioImageDeletedEventDispatched(): void + public function test_studio_image_deleted_event_dispatched(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Events/Pivot/Wiki/StudioResourceTest.php b/tests/Feature/Events/Pivot/Wiki/StudioResourceTest.php index 989992fad..82df2288a 100644 --- a/tests/Feature/Events/Pivot/Wiki/StudioResourceTest.php +++ b/tests/Feature/Events/Pivot/Wiki/StudioResourceTest.php @@ -24,7 +24,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testStudioResourceCreatedEventDispatched(): void + public function test_studio_resource_created_event_dispatched(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -39,7 +39,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testStudioResourceDeletedEventDispatched(): void + public function test_studio_resource_deleted_event_dispatched(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -55,7 +55,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testStudioResourceUpdatedEventDispatched(): void + public function test_studio_resource_updated_event_dispatched(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -81,7 +81,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testStudioResourceUpdatedEventEmbedFields(): void + public function test_studio_resource_updated_event_embed_fields(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Events/Wiki/Anime/SynonymTest.php b/tests/Feature/Events/Wiki/Anime/SynonymTest.php index 6f2bc13e6..fc6717f9f 100644 --- a/tests/Feature/Events/Wiki/Anime/SynonymTest.php +++ b/tests/Feature/Events/Wiki/Anime/SynonymTest.php @@ -24,7 +24,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymCreatedEventDispatched(): void + public function test_synonym_created_event_dispatched(): void { AnimeSynonym::factory() ->for(Anime::factory()) @@ -38,7 +38,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymDeletedEventDispatched(): void + public function test_synonym_deleted_event_dispatched(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -54,7 +54,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymRestoredEventDispatched(): void + public function test_synonym_restored_event_dispatched(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -72,7 +72,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymRestoresQuietly(): void + public function test_synonym_restores_quietly(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -88,7 +88,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymUpdatedEventDispatched(): void + public function test_synonym_updated_event_dispatched(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -109,7 +109,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymUpdatedEventEmbedFields(): void + public function test_synonym_updated_event_embed_fields(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Events/Wiki/Anime/Theme/EntryTest.php b/tests/Feature/Events/Wiki/Anime/Theme/EntryTest.php index a2f61e493..0bc61945f 100644 --- a/tests/Feature/Events/Wiki/Anime/Theme/EntryTest.php +++ b/tests/Feature/Events/Wiki/Anime/Theme/EntryTest.php @@ -25,7 +25,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryCreatedEventDispatched(): void + public function test_entry_created_event_dispatched(): void { AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -39,7 +39,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryDeletedEventDispatched(): void + public function test_entry_deleted_event_dispatched(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -55,7 +55,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryRestoredEventDispatched(): void + public function test_entry_restored_event_dispatched(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -73,7 +73,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryRestoresQuietly(): void + public function test_entry_restores_quietly(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -89,7 +89,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryUpdatedEventDispatched(): void + public function test_entry_updated_event_dispatched(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -110,7 +110,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryUpdatedEventEmbedFields(): void + public function test_entry_updated_event_embed_fields(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) diff --git a/tests/Feature/Events/Wiki/Anime/ThemeTest.php b/tests/Feature/Events/Wiki/Anime/ThemeTest.php index 25a7e0997..936cf95f3 100644 --- a/tests/Feature/Events/Wiki/Anime/ThemeTest.php +++ b/tests/Feature/Events/Wiki/Anime/ThemeTest.php @@ -24,7 +24,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeCreatedEventDispatched(): void + public function test_theme_created_event_dispatched(): void { AnimeTheme::factory() ->for(Anime::factory()) @@ -38,7 +38,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeDeletedEventDispatched(): void + public function test_theme_deleted_event_dispatched(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -54,7 +54,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeRestoredEventDispatched(): void + public function test_theme_restored_event_dispatched(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -72,7 +72,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeRestoresQuietly(): void + public function test_theme_restores_quietly(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -88,7 +88,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeUpdatedEventDispatched(): void + public function test_theme_updated_event_dispatched(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -109,7 +109,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeUpdatedEventEmbedFields(): void + public function test_theme_updated_event_embed_fields(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Events/Wiki/AnimeTest.php b/tests/Feature/Events/Wiki/AnimeTest.php index 0d8ae36d6..6e086bdad 100644 --- a/tests/Feature/Events/Wiki/AnimeTest.php +++ b/tests/Feature/Events/Wiki/AnimeTest.php @@ -23,7 +23,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeCreatedEventDispatched(): void + public function test_anime_created_event_dispatched(): void { Anime::factory()->createOne(); @@ -35,7 +35,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeDeletedEventDispatched(): void + public function test_anime_deleted_event_dispatched(): void { $anime = Anime::factory()->createOne(); @@ -49,7 +49,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeRestoredEventDispatched(): void + public function test_anime_restored_event_dispatched(): void { $anime = Anime::factory()->createOne(); @@ -65,7 +65,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeRestoresQuietly(): void + public function test_anime_restores_quietly(): void { $anime = Anime::factory()->createOne(); @@ -79,7 +79,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeUpdatedEventDispatched(): void + public function test_anime_updated_event_dispatched(): void { $anime = Anime::factory()->createOne(); $changes = Anime::factory()->makeOne(); @@ -95,7 +95,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeUpdatedEventEmbedFields(): void + public function test_anime_updated_event_embed_fields(): void { $anime = Anime::factory()->createOne(); $changes = Anime::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/ArtistTest.php b/tests/Feature/Events/Wiki/ArtistTest.php index aaefd3482..0529231a6 100644 --- a/tests/Feature/Events/Wiki/ArtistTest.php +++ b/tests/Feature/Events/Wiki/ArtistTest.php @@ -23,7 +23,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistCreatedEventDispatched(): void + public function test_artist_created_event_dispatched(): void { Artist::factory()->createOne(); @@ -35,7 +35,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistDeletedEventDispatched(): void + public function test_artist_deleted_event_dispatched(): void { $artist = Artist::factory()->createOne(); @@ -49,7 +49,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistRestoredEventDispatched(): void + public function test_artist_restored_event_dispatched(): void { $artist = Artist::factory()->createOne(); @@ -65,7 +65,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistRestoresQuietly(): void + public function test_artist_restores_quietly(): void { $artist = Artist::factory()->createOne(); @@ -79,7 +79,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistUpdatedEventDispatched(): void + public function test_artist_updated_event_dispatched(): void { $artist = Artist::factory()->createOne(); $changes = Artist::factory()->makeOne(); @@ -95,7 +95,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistUpdatedEventEmbedFields(): void + public function test_artist_updated_event_embed_fields(): void { $artist = Artist::factory()->createOne(); $changes = Artist::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/AudioTest.php b/tests/Feature/Events/Wiki/AudioTest.php index e6858f969..b6b5c53b6 100644 --- a/tests/Feature/Events/Wiki/AudioTest.php +++ b/tests/Feature/Events/Wiki/AudioTest.php @@ -23,7 +23,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioCreatedEventDispatched(): void + public function test_audio_created_event_dispatched(): void { Audio::factory()->createOne(); @@ -35,7 +35,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioDeletedEventDispatched(): void + public function test_audio_deleted_event_dispatched(): void { $audio = Audio::factory()->createOne(); @@ -49,7 +49,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioRestoredEventDispatched(): void + public function test_audio_restored_event_dispatched(): void { $audio = Audio::factory()->createOne(); @@ -65,7 +65,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioRestoresQuietly(): void + public function test_audio_restores_quietly(): void { $audio = Audio::factory()->createOne(); @@ -79,7 +79,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioUpdatedEventDispatched(): void + public function test_audio_updated_event_dispatched(): void { $audio = Audio::factory()->createOne(); $changes = Audio::factory()->makeOne(); @@ -95,7 +95,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioUpdatedEventEmbedFields(): void + public function test_audio_updated_event_embed_fields(): void { $audio = Audio::factory()->createOne(); $changes = Audio::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/ExternalResourceTest.php b/tests/Feature/Events/Wiki/ExternalResourceTest.php index fced5939b..2b39d1262 100644 --- a/tests/Feature/Events/Wiki/ExternalResourceTest.php +++ b/tests/Feature/Events/Wiki/ExternalResourceTest.php @@ -23,7 +23,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testExternalResourceCreatedEventDispatched(): void + public function test_external_resource_created_event_dispatched(): void { ExternalResource::factory()->createOne(); @@ -35,7 +35,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testExternalResourceDeletedEventDispatched(): void + public function test_external_resource_deleted_event_dispatched(): void { $resource = ExternalResource::factory()->createOne(); @@ -49,7 +49,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testExternalResourceRestoredEventDispatched(): void + public function test_external_resource_restored_event_dispatched(): void { $resource = ExternalResource::factory()->createOne(); @@ -65,7 +65,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testExternalResourceRestoresQuietly(): void + public function test_external_resource_restores_quietly(): void { $resource = ExternalResource::factory()->createOne(); @@ -79,7 +79,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testExternalResourceUpdatedEventDispatched(): void + public function test_external_resource_updated_event_dispatched(): void { $resource = ExternalResource::factory()->createOne(); $changes = ExternalResource::factory()->makeOne(); @@ -95,7 +95,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testExternalResourceUpdatedEventEmbedFields(): void + public function test_external_resource_updated_event_embed_fields(): void { $resource = ExternalResource::factory()->createOne(); $changes = ExternalResource::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/GroupTest.php b/tests/Feature/Events/Wiki/GroupTest.php index 4aa60bef9..a48b32410 100644 --- a/tests/Feature/Events/Wiki/GroupTest.php +++ b/tests/Feature/Events/Wiki/GroupTest.php @@ -23,7 +23,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupCreatedEventDispatched(): void + public function test_group_created_event_dispatched(): void { Group::factory()->createOne(); @@ -35,7 +35,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupDeletedEventDispatched(): void + public function test_group_deleted_event_dispatched(): void { $group = Group::factory()->createOne(); @@ -49,7 +49,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupRestoredEventDispatched(): void + public function test_group_restored_event_dispatched(): void { $group = Group::factory()->createOne(); @@ -65,7 +65,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupRestoresQuietly(): void + public function test_group_restores_quietly(): void { $group = Group::factory()->createOne(); @@ -79,7 +79,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupUpdatedEventDispatched(): void + public function test_group_updated_event_dispatched(): void { $group = Group::factory()->createOne(); $changes = Group::factory()->makeOne(); @@ -95,7 +95,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupUpdatedEventEmbedFields(): void + public function test_group_updated_event_embed_fields(): void { $group = Group::factory()->createOne(); $changes = Group::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/ImageTest.php b/tests/Feature/Events/Wiki/ImageTest.php index 0d774e2ba..d1dad59ba 100644 --- a/tests/Feature/Events/Wiki/ImageTest.php +++ b/tests/Feature/Events/Wiki/ImageTest.php @@ -23,7 +23,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageCreatedEventDispatched(): void + public function test_image_created_event_dispatched(): void { Image::factory()->createOne(); @@ -35,7 +35,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageDeletedEventDispatched(): void + public function test_image_deleted_event_dispatched(): void { $image = Image::factory()->createOne(); @@ -49,7 +49,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageRestoredEventDispatched(): void + public function test_image_restored_event_dispatched(): void { $image = Image::factory()->createOne(); @@ -65,7 +65,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageRestoresQuietly(): void + public function test_image_restores_quietly(): void { $image = Image::factory()->createOne(); @@ -79,7 +79,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageUpdatedEventDispatched(): void + public function test_image_updated_event_dispatched(): void { $image = Image::factory()->createOne(); $changes = Image::factory()->makeOne(); @@ -95,7 +95,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageUpdatedEventEmbedFields(): void + public function test_image_updated_event_embed_fields(): void { $image = Image::factory()->createOne(); $changes = Image::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/SeriesTest.php b/tests/Feature/Events/Wiki/SeriesTest.php index e7bff6579..f45fd9e36 100644 --- a/tests/Feature/Events/Wiki/SeriesTest.php +++ b/tests/Feature/Events/Wiki/SeriesTest.php @@ -23,7 +23,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesCreatedEventDispatched(): void + public function test_series_created_event_dispatched(): void { Series::factory()->createOne(); @@ -35,7 +35,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesDeletedEventDispatched(): void + public function test_series_deleted_event_dispatched(): void { $series = Series::factory()->createOne(); @@ -49,7 +49,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesRestoredEventDispatched(): void + public function test_series_restored_event_dispatched(): void { $series = Series::factory()->createOne(); @@ -65,7 +65,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesRestoresQuietly(): void + public function test_series_restores_quietly(): void { $series = Series::factory()->createOne(); @@ -79,7 +79,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesUpdatedEventDispatched(): void + public function test_series_updated_event_dispatched(): void { $series = Series::factory()->createOne(); $changes = Series::factory()->makeOne(); @@ -95,7 +95,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesUpdatedEventEmbedFields(): void + public function test_series_updated_event_embed_fields(): void { $series = Series::factory()->createOne(); $changes = Series::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/SongTest.php b/tests/Feature/Events/Wiki/SongTest.php index 0cb24df61..c756819c9 100644 --- a/tests/Feature/Events/Wiki/SongTest.php +++ b/tests/Feature/Events/Wiki/SongTest.php @@ -23,7 +23,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongCreatedEventDispatched(): void + public function test_song_created_event_dispatched(): void { Song::factory()->createOne(); @@ -35,7 +35,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongDeletedEventDispatched(): void + public function test_song_deleted_event_dispatched(): void { $song = Song::factory()->createOne(); @@ -49,7 +49,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongRestoredEventDispatched(): void + public function test_song_restored_event_dispatched(): void { $song = Song::factory()->createOne(); @@ -65,7 +65,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongRestoresQuietly(): void + public function test_song_restores_quietly(): void { $song = Song::factory()->createOne(); @@ -79,7 +79,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongUpdatedEventDispatched(): void + public function test_song_updated_event_dispatched(): void { $song = Song::factory()->createOne(); $changes = Song::factory()->makeOne(); @@ -95,7 +95,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongUpdatedEventEmbedFields(): void + public function test_song_updated_event_embed_fields(): void { $song = Song::factory()->createOne(); $changes = Song::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/StudioTest.php b/tests/Feature/Events/Wiki/StudioTest.php index 70935ea11..52b9a7455 100644 --- a/tests/Feature/Events/Wiki/StudioTest.php +++ b/tests/Feature/Events/Wiki/StudioTest.php @@ -23,7 +23,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioCreatedEventDispatched(): void + public function test_studio_created_event_dispatched(): void { Studio::factory()->createOne(); @@ -35,7 +35,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioDeletedEventDispatched(): void + public function test_studio_deleted_event_dispatched(): void { $studio = Studio::factory()->createOne(); @@ -49,7 +49,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioRestoredEventDispatched(): void + public function test_studio_restored_event_dispatched(): void { $studio = Studio::factory()->createOne(); @@ -65,7 +65,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioRestoresQuietly(): void + public function test_studio_restores_quietly(): void { $studio = Studio::factory()->createOne(); @@ -79,7 +79,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioUpdatedEventDispatched(): void + public function test_studio_updated_event_dispatched(): void { $studio = Studio::factory()->createOne(); $changes = Studio::factory()->makeOne(); @@ -95,7 +95,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioUpdatedEventEmbedFields(): void + public function test_studio_updated_event_embed_fields(): void { $studio = Studio::factory()->createOne(); $changes = Studio::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/Video/ScriptTest.php b/tests/Feature/Events/Wiki/Video/ScriptTest.php index 75c41fafd..29610b84d 100644 --- a/tests/Feature/Events/Wiki/Video/ScriptTest.php +++ b/tests/Feature/Events/Wiki/Video/ScriptTest.php @@ -23,7 +23,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoScriptCreatedEventDispatched(): void + public function test_video_script_created_event_dispatched(): void { VideoScript::factory()->createOne(); @@ -35,7 +35,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoScriptDeletedEventDispatched(): void + public function test_video_script_deleted_event_dispatched(): void { $script = VideoScript::factory()->createOne(); @@ -49,7 +49,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoScriptRestoredEventDispatched(): void + public function test_video_script_restored_event_dispatched(): void { $script = VideoScript::factory()->createOne(); @@ -65,7 +65,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoScriptRestoresQuietly(): void + public function test_video_script_restores_quietly(): void { $script = VideoScript::factory()->createOne(); @@ -79,7 +79,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoScriptUpdatedEventDispatched(): void + public function test_video_script_updated_event_dispatched(): void { $script = VideoScript::factory()->createOne(); $changes = VideoScript::factory()->makeOne(); @@ -95,7 +95,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoScriptUpdatedEventEmbedFields(): void + public function test_video_script_updated_event_embed_fields(): void { $script = VideoScript::factory()->createOne(); $changes = VideoScript::factory()->makeOne(); diff --git a/tests/Feature/Events/Wiki/VideoTest.php b/tests/Feature/Events/Wiki/VideoTest.php index 84246eab1..760636678 100644 --- a/tests/Feature/Events/Wiki/VideoTest.php +++ b/tests/Feature/Events/Wiki/VideoTest.php @@ -23,7 +23,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoCreatedEventDispatched(): void + public function test_video_created_event_dispatched(): void { Video::factory()->createOne(); @@ -35,7 +35,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoDeletedEventDispatched(): void + public function test_video_deleted_event_dispatched(): void { $video = Video::factory()->createOne(); @@ -49,7 +49,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoRestoredEventDispatched(): void + public function test_video_restored_event_dispatched(): void { $video = Video::factory()->createOne(); @@ -65,7 +65,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoRestoresQuietly(): void + public function test_video_restores_quietly(): void { $video = Video::factory()->createOne(); @@ -79,7 +79,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoUpdatedEventDispatched(): void + public function test_video_updated_event_dispatched(): void { $video = Video::factory()->createOne(); $changes = Video::factory()->makeOne(); @@ -95,7 +95,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoUpdatedEventEmbedFields(): void + public function test_video_updated_event_embed_fields(): void { $video = Video::factory()->createOne(); $changes = Video::factory()->makeOne(); diff --git a/tests/Feature/GraphQL/Queries/AnimeQueryTest.php b/tests/Feature/GraphQL/Queries/AnimeQueryTest.php index 4839fd807..7cfb075de 100644 --- a/tests/Feature/GraphQL/Queries/AnimeQueryTest.php +++ b/tests/Feature/GraphQL/Queries/AnimeQueryTest.php @@ -20,7 +20,7 @@ class AnimeQueryTest extends TestCase * * @return void */ - public function testAnimeYearsQuery(): void + public function test_anime_years_query(): void { $years = Anime::factory() ->count($this->faker->randomDigitNotNull()) diff --git a/tests/Feature/Http/Admin/DumpTest.php b/tests/Feature/Http/Admin/DumpTest.php index c10a9cfff..7fc27cbaa 100644 --- a/tests/Feature/Http/Admin/DumpTest.php +++ b/tests/Feature/Http/Admin/DumpTest.php @@ -30,7 +30,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpDownloadingNotAllowedForbidden(): void + public function test_dump_downloading_not_allowed_forbidden(): void { Feature::deactivate(AllowDumpDownloading::class); @@ -47,7 +47,7 @@ class DumpTest extends TestCase * * @return void */ - public function testVideoStreamingPermittedForBypass(): void + public function test_video_streaming_permitted_for_bypass(): void { Feature::activate(AllowDumpDownloading::class, $this->faker->boolean()); @@ -74,7 +74,7 @@ class DumpTest extends TestCase * * @return void */ - public function testCannotDownloadSoftDeletedDump(): void + public function test_cannot_download_soft_deleted_dump(): void { Feature::activate(AllowDumpDownloading::class); @@ -90,7 +90,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDownloadedThroughResponse(): void + public function test_downloaded_through_response(): void { Feature::activate(AllowDumpDownloading::class); diff --git a/tests/Feature/Http/Admin/LatestDocumentDumpTest.php b/tests/Feature/Http/Admin/LatestDocumentDumpTest.php index b04503e37..335cab367 100644 --- a/tests/Feature/Http/Admin/LatestDocumentDumpTest.php +++ b/tests/Feature/Http/Admin/LatestDocumentDumpTest.php @@ -37,7 +37,7 @@ class LatestDocumentDumpTest extends TestCase * * @throws Exception */ - public function testDumpDownloadingNotAllowedForbidden(): void + public function test_dump_downloading_not_allowed_forbidden(): void { Storage::fake('local'); Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -59,7 +59,7 @@ class LatestDocumentDumpTest extends TestCase * * @return void */ - public function testVideoStreamingPermittedForBypass(): void + public function test_video_streaming_permitted_for_bypass(): void { Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -104,7 +104,7 @@ class LatestDocumentDumpTest extends TestCase * * @return void */ - public function testNotFoundIfNoDocumentDumps(): void + public function test_not_found_if_no_document_dumps(): void { Storage::fake('local'); Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -121,7 +121,7 @@ class LatestDocumentDumpTest extends TestCase * * @return void */ - public function testNotFoundIfWikiDumpsExist(): void + public function test_not_found_if_wiki_dumps_exist(): void { Storage::fake('local'); Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -144,7 +144,7 @@ class LatestDocumentDumpTest extends TestCase * * @return void */ - public function testLatestDocumentDumpDownloaded(): void + public function test_latest_document_dump_downloaded(): void { Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); diff --git a/tests/Feature/Http/Admin/LatestWikiDumpTest.php b/tests/Feature/Http/Admin/LatestWikiDumpTest.php index c4340db49..0b31b1705 100644 --- a/tests/Feature/Http/Admin/LatestWikiDumpTest.php +++ b/tests/Feature/Http/Admin/LatestWikiDumpTest.php @@ -37,7 +37,7 @@ class LatestWikiDumpTest extends TestCase * * @throws Exception */ - public function testDumpDownloadingNotAllowedForbidden(): void + public function test_dump_downloading_not_allowed_forbidden(): void { Storage::fake('local'); Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -59,7 +59,7 @@ class LatestWikiDumpTest extends TestCase * * @return void */ - public function testVideoStreamingPermittedForBypass(): void + public function test_video_streaming_permitted_for_bypass(): void { Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -104,7 +104,7 @@ class LatestWikiDumpTest extends TestCase * * @return void */ - public function testNotFoundIfNoWikiDumps(): void + public function test_not_found_if_no_wiki_dumps(): void { Storage::fake('local'); Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -121,7 +121,7 @@ class LatestWikiDumpTest extends TestCase * * @return void */ - public function testNotFoundIfDocumentDumpsExist(): void + public function test_not_found_if_document_dumps_exist(): void { Storage::fake('local'); Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); @@ -144,7 +144,7 @@ class LatestWikiDumpTest extends TestCase * * @return void */ - public function testLatestWikiDumpDownloaded(): void + public function test_latest_wiki_dump_downloaded(): void { Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); diff --git a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementDestroyTest.php b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementDestroyTest.php index 3c11f28dc..c2f87d42c 100644 --- a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementDestroyTest.php +++ b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementDestroyTest.php @@ -20,7 +20,7 @@ class AnnouncementDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $announcement = Announcement::factory()->createOne(); @@ -34,7 +34,7 @@ class AnnouncementDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $announcement = Announcement::factory()->createOne(); @@ -52,7 +52,7 @@ class AnnouncementDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $announcement = Announcement::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class AnnouncementDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $announcement = Announcement::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementForceDeleteTest.php b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementForceDeleteTest.php index 665b86793..0c2046abd 100644 --- a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementForceDeleteTest.php +++ b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementForceDeleteTest.php @@ -20,7 +20,7 @@ class AnnouncementForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $announcement = Announcement::factory()->createOne(); @@ -34,7 +34,7 @@ class AnnouncementForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $announcement = Announcement::factory()->createOne(); @@ -52,7 +52,7 @@ class AnnouncementForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $announcement = Announcement::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementIndexTest.php b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementIndexTest.php index 76754cc55..5cd464851 100644 --- a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementIndexTest.php +++ b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementIndexTest.php @@ -41,7 +41,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $announcements = Announcement::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -64,7 +64,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Announcement::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -82,7 +82,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnnouncementSchema(); @@ -117,7 +117,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new AnnouncementSchema(); @@ -156,7 +156,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -199,7 +199,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -242,7 +242,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -278,7 +278,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -314,7 +314,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -350,7 +350,7 @@ class AnnouncementIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementRestoreTest.php b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementRestoreTest.php index 53aa5cc7e..60c910c7d 100644 --- a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementRestoreTest.php +++ b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementRestoreTest.php @@ -20,7 +20,7 @@ class AnnouncementRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $announcement = Announcement::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class AnnouncementRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $announcement = Announcement::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class AnnouncementRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $announcement = Announcement::factory()->createOne(); @@ -70,7 +70,7 @@ class AnnouncementRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $announcement = Announcement::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementShowTest.php b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementShowTest.php index e2040fbc3..d10897882 100644 --- a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementShowTest.php +++ b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementShowTest.php @@ -25,7 +25,7 @@ class AnnouncementShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $announcement = Announcement::factory()->create(); @@ -48,7 +48,7 @@ class AnnouncementShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $announcement = Announcement::factory()->trashed()->createOne(); @@ -73,7 +73,7 @@ class AnnouncementShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnnouncementSchema(); diff --git a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementStoreTest.php b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementStoreTest.php index a822f46ab..d189d71c6 100644 --- a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementStoreTest.php +++ b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementStoreTest.php @@ -20,7 +20,7 @@ class AnnouncementStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $announcement = Announcement::factory()->makeOne(); @@ -34,7 +34,7 @@ class AnnouncementStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $announcement = Announcement::factory()->makeOne(); @@ -52,7 +52,7 @@ class AnnouncementStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Announcement::class))->createOne(); @@ -70,7 +70,7 @@ class AnnouncementStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Announcement::factory()->raw(); diff --git a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementUpdateTest.php b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementUpdateTest.php index 447e9c10d..6f601e03c 100644 --- a/tests/Feature/Http/Api/Admin/Announcement/AnnouncementUpdateTest.php +++ b/tests/Feature/Http/Api/Admin/Announcement/AnnouncementUpdateTest.php @@ -20,7 +20,7 @@ class AnnouncementUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $announcement = Announcement::factory()->createOne(); @@ -36,7 +36,7 @@ class AnnouncementUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $announcement = Announcement::factory()->createOne(); @@ -56,7 +56,7 @@ class AnnouncementUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $announcement = Announcement::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class AnnouncementUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $announcement = Announcement::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/Dump/DumpDestroyTest.php b/tests/Feature/Http/Api/Admin/Dump/DumpDestroyTest.php index 1e8b4d3ea..a814a7260 100644 --- a/tests/Feature/Http/Api/Admin/Dump/DumpDestroyTest.php +++ b/tests/Feature/Http/Api/Admin/Dump/DumpDestroyTest.php @@ -20,7 +20,7 @@ class DumpDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $dump = Dump::factory()->createOne(); @@ -34,7 +34,7 @@ class DumpDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $dump = Dump::factory()->createOne(); @@ -52,7 +52,7 @@ class DumpDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $dump = Dump::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class DumpDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $dump = Dump::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/Dump/DumpForceDeleteTest.php b/tests/Feature/Http/Api/Admin/Dump/DumpForceDeleteTest.php index 96b13b012..33ed32237 100644 --- a/tests/Feature/Http/Api/Admin/Dump/DumpForceDeleteTest.php +++ b/tests/Feature/Http/Api/Admin/Dump/DumpForceDeleteTest.php @@ -20,7 +20,7 @@ class DumpForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $dump = Dump::factory()->createOne(); @@ -34,7 +34,7 @@ class DumpForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $dump = Dump::factory()->createOne(); @@ -52,7 +52,7 @@ class DumpForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $dump = Dump::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/Dump/DumpIndexTest.php b/tests/Feature/Http/Api/Admin/Dump/DumpIndexTest.php index b52cca246..ff58f5b6e 100644 --- a/tests/Feature/Http/Api/Admin/Dump/DumpIndexTest.php +++ b/tests/Feature/Http/Api/Admin/Dump/DumpIndexTest.php @@ -41,7 +41,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $dumps = Dump::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -64,7 +64,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Dump::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -82,7 +82,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new DumpSchema(); @@ -117,7 +117,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new DumpSchema(); @@ -156,7 +156,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -199,7 +199,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -242,7 +242,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -278,7 +278,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -314,7 +314,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -350,7 +350,7 @@ class DumpIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/Admin/Dump/DumpRestoreTest.php b/tests/Feature/Http/Api/Admin/Dump/DumpRestoreTest.php index e7fff08c2..bc7babf42 100644 --- a/tests/Feature/Http/Api/Admin/Dump/DumpRestoreTest.php +++ b/tests/Feature/Http/Api/Admin/Dump/DumpRestoreTest.php @@ -20,7 +20,7 @@ class DumpRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $dump = Dump::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class DumpRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $dump = Dump::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class DumpRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $dump = Dump::factory()->createOne(); @@ -70,7 +70,7 @@ class DumpRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $dump = Dump::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/Dump/DumpShowTest.php b/tests/Feature/Http/Api/Admin/Dump/DumpShowTest.php index 179692e08..187d5bf81 100644 --- a/tests/Feature/Http/Api/Admin/Dump/DumpShowTest.php +++ b/tests/Feature/Http/Api/Admin/Dump/DumpShowTest.php @@ -25,7 +25,7 @@ class DumpShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $dump = Dump::factory()->create(); @@ -48,7 +48,7 @@ class DumpShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $dump = Dump::factory()->trashed()->createOne(); @@ -73,7 +73,7 @@ class DumpShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new DumpSchema(); diff --git a/tests/Feature/Http/Api/Admin/Dump/DumpStoreTest.php b/tests/Feature/Http/Api/Admin/Dump/DumpStoreTest.php index 6932f2430..2ffdde9b6 100644 --- a/tests/Feature/Http/Api/Admin/Dump/DumpStoreTest.php +++ b/tests/Feature/Http/Api/Admin/Dump/DumpStoreTest.php @@ -20,7 +20,7 @@ class DumpStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $dump = Dump::factory()->makeOne(); @@ -34,7 +34,7 @@ class DumpStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $dump = Dump::factory()->makeOne(); @@ -52,7 +52,7 @@ class DumpStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Dump::class))->createOne(); @@ -70,7 +70,7 @@ class DumpStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Dump::factory()->raw(); diff --git a/tests/Feature/Http/Api/Admin/Dump/DumpUpdateTest.php b/tests/Feature/Http/Api/Admin/Dump/DumpUpdateTest.php index ce219db02..f8ac8a038 100644 --- a/tests/Feature/Http/Api/Admin/Dump/DumpUpdateTest.php +++ b/tests/Feature/Http/Api/Admin/Dump/DumpUpdateTest.php @@ -20,7 +20,7 @@ class DumpUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $dump = Dump::factory()->createOne(); @@ -36,7 +36,7 @@ class DumpUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $dump = Dump::factory()->createOne(); @@ -56,7 +56,7 @@ class DumpUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $dump = Dump::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class DumpUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $dump = Dump::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/Feature/FeatureIndexTest.php b/tests/Feature/Http/Api/Admin/Feature/FeatureIndexTest.php index 88ea92247..824822c24 100644 --- a/tests/Feature/Http/Api/Admin/Feature/FeatureIndexTest.php +++ b/tests/Feature/Http/Api/Admin/Feature/FeatureIndexTest.php @@ -40,7 +40,7 @@ class FeatureIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $features = Feature::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -63,7 +63,7 @@ class FeatureIndexTest extends TestCase * * @return void */ - public function testNonNullForbidden(): void + public function test_non_null_forbidden(): void { $nullScopeCount = $this->faker->randomDigitNotNull(); @@ -98,7 +98,7 @@ class FeatureIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Feature::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -116,7 +116,7 @@ class FeatureIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new FeatureSchema(); @@ -151,7 +151,7 @@ class FeatureIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new FeatureSchema(); @@ -190,7 +190,7 @@ class FeatureIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -233,7 +233,7 @@ class FeatureIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/Admin/Feature/FeatureShowTest.php b/tests/Feature/Http/Api/Admin/Feature/FeatureShowTest.php index 0f42e3120..1ebb95c75 100644 --- a/tests/Feature/Http/Api/Admin/Feature/FeatureShowTest.php +++ b/tests/Feature/Http/Api/Admin/Feature/FeatureShowTest.php @@ -25,7 +25,7 @@ class FeatureShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $feature = Feature::factory()->create(); @@ -48,7 +48,7 @@ class FeatureShowTest extends TestCase * * @return void */ - public function testNonNullForbidden(): void + public function test_non_null_forbidden(): void { $feature = Feature::factory()->create([ Feature::ATTRIBUTE_SCOPE => $this->faker->word(), @@ -64,7 +64,7 @@ class FeatureShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new FeatureSchema(); diff --git a/tests/Feature/Http/Api/Admin/Feature/FeatureUpdateTest.php b/tests/Feature/Http/Api/Admin/Feature/FeatureUpdateTest.php index dc5cc08f5..dcf306ab7 100644 --- a/tests/Feature/Http/Api/Admin/Feature/FeatureUpdateTest.php +++ b/tests/Feature/Http/Api/Admin/Feature/FeatureUpdateTest.php @@ -20,7 +20,7 @@ class FeatureUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $feature = Feature::factory()->createOne(); @@ -38,7 +38,7 @@ class FeatureUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $feature = Feature::factory()->createOne(); @@ -60,7 +60,7 @@ class FeatureUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $feature = Feature::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/FeaturedTheme/CurrentFeaturedThemeShowTest.php b/tests/Feature/Http/Api/Admin/FeaturedTheme/CurrentFeaturedThemeShowTest.php index 24ce9bb8f..9fa2e2c9a 100644 --- a/tests/Feature/Http/Api/Admin/FeaturedTheme/CurrentFeaturedThemeShowTest.php +++ b/tests/Feature/Http/Api/Admin/FeaturedTheme/CurrentFeaturedThemeShowTest.php @@ -36,7 +36,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testNotFoundIfNoFeaturedThemes(): void + public function test_not_found_if_no_featured_themes(): void { $response = $this->get(route('api.featuredtheme.current.show')); @@ -48,7 +48,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testNotFoundIfThemeStartAtNull(): void + public function test_not_found_if_theme_start_at_null(): void { FeaturedTheme::factory()->create([ FeaturedTheme::ATTRIBUTE_START_AT => null, @@ -64,7 +64,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testNotFoundIfThemeEndAtNull(): void + public function test_not_found_if_theme_end_at_null(): void { FeaturedTheme::factory()->create([ FeaturedTheme::ATTRIBUTE_END_AT => null, @@ -80,7 +80,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testNotFoundIfThemeStartAtAfterNow(): void + public function test_not_found_if_theme_start_at_after_now(): void { FeaturedTheme::factory()->create([ FeaturedTheme::ATTRIBUTE_START_AT => $this->faker->dateTimeBetween('+1 day', '+1 year'), @@ -96,7 +96,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testNotFoundIfThemeEndAtBeforeNow(): void + public function test_not_found_if_theme_end_at_before_now(): void { FeaturedTheme::factory()->create([ FeaturedTheme::ATTRIBUTE_END_AT => $this->faker->dateTimeBetween(), @@ -112,7 +112,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { FeaturedTheme::factory()->create([ @@ -159,7 +159,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { FeaturedTheme::factory()->trashed()->create(); @@ -173,7 +173,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new FeaturedThemeSchema(); @@ -219,7 +219,7 @@ class CurrentFeaturedThemeShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new FeaturedThemeSchema(); diff --git a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeDestroyTest.php b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeDestroyTest.php index 546792a79..db505d2a2 100644 --- a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeDestroyTest.php +++ b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeDestroyTest.php @@ -20,7 +20,7 @@ class FeaturedThemeDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -34,7 +34,7 @@ class FeaturedThemeDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -52,7 +52,7 @@ class FeaturedThemeDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $featuredTheme = FeaturedTheme::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class FeaturedThemeDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeForceDeleteTest.php b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeForceDeleteTest.php index 52dd89fe0..558936477 100644 --- a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeForceDeleteTest.php +++ b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeForceDeleteTest.php @@ -20,7 +20,7 @@ class FeaturedThemeForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -34,7 +34,7 @@ class FeaturedThemeForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -52,7 +52,7 @@ class FeaturedThemeForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeIndexTest.php b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeIndexTest.php index 4da40ce92..57b571eed 100644 --- a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeIndexTest.php +++ b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeIndexTest.php @@ -52,7 +52,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $publicCount = $this->faker->randomDigitNotNull(); @@ -91,7 +91,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { FeaturedTheme::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -109,7 +109,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new FeaturedThemeSchema(); @@ -158,7 +158,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new FeaturedThemeSchema(); @@ -193,7 +193,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new FeaturedThemeSchema(); @@ -232,7 +232,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -275,7 +275,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -318,7 +318,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -354,7 +354,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -390,7 +390,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -426,7 +426,7 @@ class FeaturedThemeIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeRestoreTest.php b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeRestoreTest.php index 80f8d9712..9ec9e97be 100644 --- a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeRestoreTest.php +++ b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeRestoreTest.php @@ -20,7 +20,7 @@ class FeaturedThemeRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $featuredTheme = FeaturedTheme::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class FeaturedThemeRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $featuredTheme = FeaturedTheme::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class FeaturedThemeRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -70,7 +70,7 @@ class FeaturedThemeRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $featuredTheme = FeaturedTheme::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeShowTest.php b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeShowTest.php index e22c06fd0..e69a12699 100644 --- a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeShowTest.php +++ b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeShowTest.php @@ -35,7 +35,7 @@ class FeaturedThemeShowTest extends TestCase * * @return void */ - public function testForbiddenIfFutureStartDate(): void + public function test_forbidden_if_future_start_date(): void { $featuredTheme = FeaturedTheme::factory()->create([ FeaturedTheme::ATTRIBUTE_START_AT => $this->faker->dateTimeBetween('+1 day', '+1 year'), @@ -51,7 +51,7 @@ class FeaturedThemeShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $featuredTheme = FeaturedTheme::factory()->create(); @@ -74,7 +74,7 @@ class FeaturedThemeShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $featuredTheme = FeaturedTheme::factory()->trashed()->createOne(); @@ -99,7 +99,7 @@ class FeaturedThemeShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new FeaturedThemeSchema(); @@ -145,7 +145,7 @@ class FeaturedThemeShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new FeaturedThemeSchema(); diff --git a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeStoreTest.php b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeStoreTest.php index 014c42c94..2ea049cc3 100644 --- a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeStoreTest.php +++ b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeStoreTest.php @@ -29,7 +29,7 @@ class FeaturedThemeStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $featuredTheme = FeaturedTheme::factory()->makeOne(); @@ -43,7 +43,7 @@ class FeaturedThemeStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $featuredTheme = FeaturedTheme::factory()->makeOne(); @@ -61,7 +61,7 @@ class FeaturedThemeStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(FeaturedTheme::class))->createOne(); @@ -80,7 +80,7 @@ class FeaturedThemeStoreTest extends TestCase * * @return void */ - public function testStartAtBeforeEndDate(): void + public function test_start_at_before_end_date(): void { $parameters = FeaturedTheme::factory()->raw([ FeaturedTheme::ATTRIBUTE_START_AT => $this->faker->dateTimeBetween('+1 day', '+1 year')->format(AllowedDateFormat::YMDHISU->value), @@ -104,7 +104,7 @@ class FeaturedThemeStoreTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoExists(): void + public function test_anime_theme_entry_video_exists(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -134,7 +134,7 @@ class FeaturedThemeStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $entryVideo = AnimeThemeEntryVideo::factory() ->for(AnimeThemeEntry::factory()->for(AnimeTheme::factory()->for(Anime::factory()))) diff --git a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeUpdateTest.php b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeUpdateTest.php index c75c34578..57c9a2129 100644 --- a/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeUpdateTest.php +++ b/tests/Feature/Http/Api/Admin/FeaturedTheme/FeaturedThemeUpdateTest.php @@ -29,7 +29,7 @@ class FeaturedThemeUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -45,7 +45,7 @@ class FeaturedThemeUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -65,7 +65,7 @@ class FeaturedThemeUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $featuredTheme = FeaturedTheme::factory()->trashed()->createOne(); @@ -85,7 +85,7 @@ class FeaturedThemeUpdateTest extends TestCase * * @return void */ - public function testStartAtBeforeEndDate(): void + public function test_start_at_before_end_date(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -111,7 +111,7 @@ class FeaturedThemeUpdateTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoExists(): void + public function test_anime_theme_entry_video_exists(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -143,7 +143,7 @@ class FeaturedThemeUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Auth/User/Me/List/ExternalProfile/MyExternalProfileIndexTest.php b/tests/Feature/Http/Api/Auth/User/Me/List/ExternalProfile/MyExternalProfileIndexTest.php index d9fce8510..d8bf72578 100644 --- a/tests/Feature/Http/Api/Auth/User/Me/List/ExternalProfile/MyExternalProfileIndexTest.php +++ b/tests/Feature/Http/Api/Auth/User/Me/List/ExternalProfile/MyExternalProfileIndexTest.php @@ -25,7 +25,7 @@ class MyExternalProfileIndexTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $response = $this->get(route('api.me.externalprofile.index')); @@ -37,7 +37,7 @@ class MyExternalProfileIndexTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { $user = User::factory()->createOne(); @@ -53,7 +53,7 @@ class MyExternalProfileIndexTest extends TestCase * * @return void */ - public function testOnlySeesOwnedProfiles(): void + public function test_only_sees_owned_profiles(): void { ExternalProfile::factory() ->for(User::factory()) diff --git a/tests/Feature/Http/Api/Auth/User/Me/List/Playlist/MyPlaylistIndexTest.php b/tests/Feature/Http/Api/Auth/User/Me/List/Playlist/MyPlaylistIndexTest.php index db9be866f..cb5e1f237 100644 --- a/tests/Feature/Http/Api/Auth/User/Me/List/Playlist/MyPlaylistIndexTest.php +++ b/tests/Feature/Http/Api/Auth/User/Me/List/Playlist/MyPlaylistIndexTest.php @@ -25,7 +25,7 @@ class MyPlaylistIndexTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $response = $this->get(route('api.me.playlist.index')); @@ -37,7 +37,7 @@ class MyPlaylistIndexTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { $user = User::factory()->createOne(); @@ -53,7 +53,7 @@ class MyPlaylistIndexTest extends TestCase * * @return void */ - public function testOnlySeesOwnedPlaylists(): void + public function test_only_sees_owned_playlists(): void { Playlist::factory() ->for(User::factory()) diff --git a/tests/Feature/Http/Api/Auth/User/Me/MyShowTest.php b/tests/Feature/Http/Api/Auth/User/Me/MyShowTest.php index 17a6190dc..e46fc6310 100644 --- a/tests/Feature/Http/Api/Auth/User/Me/MyShowTest.php +++ b/tests/Feature/Http/Api/Auth/User/Me/MyShowTest.php @@ -23,7 +23,7 @@ class MyShowTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $response = $this->get(route('api.me.show')); @@ -35,7 +35,7 @@ class MyShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $user = User::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Auth/User/Me/Notification/MyNotificationIndexTest.php b/tests/Feature/Http/Api/Auth/User/Me/Notification/MyNotificationIndexTest.php index 7d438bfae..fcd286681 100644 --- a/tests/Feature/Http/Api/Auth/User/Me/Notification/MyNotificationIndexTest.php +++ b/tests/Feature/Http/Api/Auth/User/Me/Notification/MyNotificationIndexTest.php @@ -26,7 +26,7 @@ class MyNotificationIndexTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $response = $this->get(route('api.me.notification.index')); @@ -38,7 +38,7 @@ class MyNotificationIndexTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { $user = User::factory()->createOne(); @@ -54,7 +54,7 @@ class MyNotificationIndexTest extends TestCase * * @return void */ - public function testOnlySeesOwnedNotifications(): void + public function test_only_sees_owned_notifications(): void { Notification::factory() ->for(User::factory(), Notification::RELATION_NOTIFIABLE) diff --git a/tests/Feature/Http/Api/Document/Page/PageDestroyTest.php b/tests/Feature/Http/Api/Document/Page/PageDestroyTest.php index b9ded5be8..90dad5546 100644 --- a/tests/Feature/Http/Api/Document/Page/PageDestroyTest.php +++ b/tests/Feature/Http/Api/Document/Page/PageDestroyTest.php @@ -20,7 +20,7 @@ class PageDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $page = Page::factory()->createOne(); @@ -34,7 +34,7 @@ class PageDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $page = Page::factory()->createOne(); @@ -52,7 +52,7 @@ class PageDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $page = Page::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class PageDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $page = Page::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Document/Page/PageForceDeleteTest.php b/tests/Feature/Http/Api/Document/Page/PageForceDeleteTest.php index c53a38bdd..a270b7b93 100644 --- a/tests/Feature/Http/Api/Document/Page/PageForceDeleteTest.php +++ b/tests/Feature/Http/Api/Document/Page/PageForceDeleteTest.php @@ -20,7 +20,7 @@ class PageForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $page = Page::factory()->createOne(); @@ -34,7 +34,7 @@ class PageForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $page = Page::factory()->createOne(); @@ -52,7 +52,7 @@ class PageForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $page = Page::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Document/Page/PageIndexTest.php b/tests/Feature/Http/Api/Document/Page/PageIndexTest.php index a2a16db01..182ca119c 100644 --- a/tests/Feature/Http/Api/Document/Page/PageIndexTest.php +++ b/tests/Feature/Http/Api/Document/Page/PageIndexTest.php @@ -41,7 +41,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $pages = Page::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -64,7 +64,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Page::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -82,7 +82,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new PageSchema(); @@ -117,7 +117,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new PageSchema(); @@ -156,7 +156,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -199,7 +199,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -242,7 +242,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -278,7 +278,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -314,7 +314,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -350,7 +350,7 @@ class PageIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/Document/Page/PageRestoreTest.php b/tests/Feature/Http/Api/Document/Page/PageRestoreTest.php index f8e6e1f90..18e85c157 100644 --- a/tests/Feature/Http/Api/Document/Page/PageRestoreTest.php +++ b/tests/Feature/Http/Api/Document/Page/PageRestoreTest.php @@ -20,7 +20,7 @@ class PageRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $page = Page::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class PageRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $page = Page::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class PageRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $page = Page::factory()->createOne(); @@ -70,7 +70,7 @@ class PageRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $page = Page::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Document/Page/PageShowTest.php b/tests/Feature/Http/Api/Document/Page/PageShowTest.php index d8b0fb794..d2f2ed922 100644 --- a/tests/Feature/Http/Api/Document/Page/PageShowTest.php +++ b/tests/Feature/Http/Api/Document/Page/PageShowTest.php @@ -25,7 +25,7 @@ class PageShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $page = Page::factory()->create(); @@ -48,7 +48,7 @@ class PageShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $page = Page::factory()->trashed()->createOne(); @@ -73,7 +73,7 @@ class PageShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new PageSchema(); diff --git a/tests/Feature/Http/Api/Document/Page/PageStoreTest.php b/tests/Feature/Http/Api/Document/Page/PageStoreTest.php index bf5aefbe7..9d062e5ae 100644 --- a/tests/Feature/Http/Api/Document/Page/PageStoreTest.php +++ b/tests/Feature/Http/Api/Document/Page/PageStoreTest.php @@ -20,7 +20,7 @@ class PageStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $page = Page::factory()->makeOne(); @@ -34,7 +34,7 @@ class PageStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $page = Page::factory()->makeOne(); @@ -52,7 +52,7 @@ class PageStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Page::class))->createOne(); @@ -72,7 +72,7 @@ class PageStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Page::factory()->raw(); diff --git a/tests/Feature/Http/Api/Document/Page/PageUpdateTest.php b/tests/Feature/Http/Api/Document/Page/PageUpdateTest.php index 5c682fcd0..7fe0de53c 100644 --- a/tests/Feature/Http/Api/Document/Page/PageUpdateTest.php +++ b/tests/Feature/Http/Api/Document/Page/PageUpdateTest.php @@ -20,7 +20,7 @@ class PageUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $page = Page::factory()->createOne(); @@ -36,7 +36,7 @@ class PageUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $page = Page::factory()->createOne(); @@ -56,7 +56,7 @@ class PageUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $page = Page::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class PageUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $page = Page::factory()->createOne(); diff --git a/tests/Feature/Http/Api/FallbackTest.php b/tests/Feature/Http/Api/FallbackTest.php index 6b20e4afc..ac3e2fdcb 100644 --- a/tests/Feature/Http/Api/FallbackTest.php +++ b/tests/Feature/Http/Api/FallbackTest.php @@ -18,7 +18,7 @@ class FallbackTest extends TestCase * * @return void */ - public function testAbortJson(): void + public function test_abort_json(): void { $response = $this->get(route('api.anime.index').Str::random()); diff --git a/tests/Feature/Http/Api/List/External/Entry/ExternalEntryIndexTest.php b/tests/Feature/Http/Api/List/External/Entry/ExternalEntryIndexTest.php index 02d979c46..3dff83796 100644 --- a/tests/Feature/Http/Api/List/External/Entry/ExternalEntryIndexTest.php +++ b/tests/Feature/Http/Api/List/External/Entry/ExternalEntryIndexTest.php @@ -26,8 +26,8 @@ use App\Http\Resources\List\External\Collection\ExternalEntryCollection; use App\Http\Resources\List\External\Resource\ExternalEntryResource; use App\Models\Auth\User; use App\Models\BaseModel; -use App\Models\List\ExternalProfile; use App\Models\List\External\ExternalEntry; +use App\Models\List\ExternalProfile; use App\Models\Wiki\Anime; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Arr; @@ -62,7 +62,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testPrivateExternalEntryCannotBePubliclyViewed(): void + public function test_private_external_entry_cannot_be_publicly_viewed(): void { $profile = ExternalProfile::factory() ->for(User::factory()) @@ -81,7 +81,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testPrivateExternalEntryCannotBePubliclyViewedIfNotOwned(): void + public function test_private_external_entry_cannot_be_publicly_viewed_if_not_owned(): void { $profile = ExternalProfile::factory() ->for(User::factory()) @@ -104,7 +104,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testPrivateExternalEntryCanBeViewedByOwner(): void + public function test_private_external_entry_can_be_viewed_by_owner(): void { $user = User::factory()->withPermissions(CrudPermission::VIEW->format(ExternalEntry::class))->createOne(); @@ -127,7 +127,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testPublicExternalEntryCanBeViewed(): void + public function test_public_external_entry_can_be_viewed(): void { $profile = ExternalProfile::factory() ->for(User::factory()) @@ -146,7 +146,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $entryCount = $this->faker->randomDigitNotNull(); @@ -186,7 +186,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { $profile = ExternalProfile::factory() ->has(ExternalEntry::factory()->count($this->faker->randomDigitNotNull()), ExternalProfile::RELATION_EXTERNAL_ENTRIES) @@ -208,7 +208,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ExternalEntrySchema(); @@ -257,7 +257,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ExternalEntrySchema(); @@ -296,7 +296,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ExternalEntrySchema(); @@ -339,7 +339,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -395,7 +395,7 @@ class ExternalEntryIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/List/External/Entry/ExternalEntryShowTest.php b/tests/Feature/Http/Api/List/External/Entry/ExternalEntryShowTest.php index bbccf4775..89869eb0d 100644 --- a/tests/Feature/Http/Api/List/External/Entry/ExternalEntryShowTest.php +++ b/tests/Feature/Http/Api/List/External/Entry/ExternalEntryShowTest.php @@ -15,8 +15,8 @@ use App\Http\Api\Query\Query; use App\Http\Api\Schema\List\External\ExternalEntrySchema; use App\Http\Resources\List\External\Resource\ExternalEntryResource; use App\Models\Auth\User; -use App\Models\List\ExternalProfile; use App\Models\List\External\ExternalEntry; +use App\Models\List\ExternalProfile; use App\Models\Wiki\Anime; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Facades\Event; @@ -47,7 +47,7 @@ class ExternalEntryShowTest extends TestCase * * @return void */ - public function testPrivateExternalEntryCannotBePubliclyViewed(): void + public function test_private_external_entry_cannot_be_publicly_viewed(): void { $profile = ExternalProfile::factory() ->for(User::factory()) @@ -69,7 +69,7 @@ class ExternalEntryShowTest extends TestCase * * @return void */ - public function testPrivateExternalEntryCannotBePubliclyViewedIfNotOwned(): void + public function test_private_external_entry_cannot_be_publicly_viewed_if_not_owned(): void { $profile = ExternalProfile::factory() ->for(User::factory()) @@ -95,7 +95,7 @@ class ExternalEntryShowTest extends TestCase * * @return void */ - public function testPrivateExternalEntryCanBeViewedByOwner(): void + public function test_private_external_entry_can_be_viewed_by_owner(): void { $user = User::factory()->withPermissions(CrudPermission::VIEW->format(ExternalEntry::class))->createOne(); @@ -121,7 +121,7 @@ class ExternalEntryShowTest extends TestCase * * @return void */ - public function testPublicExternalEntryCanBeViewed(): void + public function test_public_external_entry_can_be_viewed(): void { $profile = ExternalProfile::factory() ->for(User::factory()) @@ -143,7 +143,7 @@ class ExternalEntryShowTest extends TestCase * * @return void */ - public function testScoped(): void + public function test_scoped(): void { $user = User::factory()->withPermissions(CrudPermission::VIEW->format(ExternalEntry::class))->createOne(); @@ -168,7 +168,7 @@ class ExternalEntryShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $profile = ExternalProfile::factory() ->createOne([ @@ -200,7 +200,7 @@ class ExternalEntryShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ExternalEntrySchema(); @@ -245,7 +245,7 @@ class ExternalEntryShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ExternalEntrySchema(); diff --git a/tests/Feature/Http/Api/List/External/ExternalProfileDestroyTest.php b/tests/Feature/Http/Api/List/External/ExternalProfileDestroyTest.php index d59933f87..bf3aaf4aa 100644 --- a/tests/Feature/Http/Api/List/External/ExternalProfileDestroyTest.php +++ b/tests/Feature/Http/Api/List/External/ExternalProfileDestroyTest.php @@ -28,7 +28,7 @@ class ExternalProfileDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -46,7 +46,7 @@ class ExternalProfileDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -68,7 +68,7 @@ class ExternalProfileDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnExternalProfile(): void + public function test_forbidden_if_not_own_external_profile(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -93,7 +93,7 @@ class ExternalProfileDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -117,7 +117,7 @@ class ExternalProfileDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -142,7 +142,7 @@ class ExternalProfileDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -168,7 +168,7 @@ class ExternalProfileDestroyTest extends TestCase * * @return void */ - public function testDestroyPermittedForBypass(): void + public function test_destroy_permitted_for_bypass(): void { Event::fakeExcept(ExternalProfileCreated::class); diff --git a/tests/Feature/Http/Api/List/External/ExternalProfileForceDeleteTest.php b/tests/Feature/Http/Api/List/External/ExternalProfileForceDeleteTest.php index e21bd09db..3a22207d6 100644 --- a/tests/Feature/Http/Api/List/External/ExternalProfileForceDeleteTest.php +++ b/tests/Feature/Http/Api/List/External/ExternalProfileForceDeleteTest.php @@ -28,7 +28,7 @@ class ExternalProfileForceDeleteTest extends TestCase * * @return void */ - public function testAuthorized(): void + public function test_authorized(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -46,7 +46,7 @@ class ExternalProfileForceDeleteTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -69,7 +69,7 @@ class ExternalProfileForceDeleteTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -91,7 +91,7 @@ class ExternalProfileForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -115,7 +115,7 @@ class ExternalProfileForceDeleteTest extends TestCase * * @return void */ - public function testDeletePermittedForBypass(): void + public function test_delete_permitted_for_bypass(): void { Event::fakeExcept(ExternalProfileCreated::class); diff --git a/tests/Feature/Http/Api/List/External/ExternalProfileIndexTest.php b/tests/Feature/Http/Api/List/External/ExternalProfileIndexTest.php index 3a4da4847..440f4c347 100644 --- a/tests/Feature/Http/Api/List/External/ExternalProfileIndexTest.php +++ b/tests/Feature/Http/Api/List/External/ExternalProfileIndexTest.php @@ -39,8 +39,8 @@ use Tests\TestCase; */ class ExternalProfileIndexTest extends TestCase { - use SortsModels; use AggregatesFields; + use SortsModels; use WithFaker; /** @@ -48,7 +48,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $publicCount = $this->faker->randomDigitNotNull(); @@ -83,7 +83,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { ExternalProfile::factory() ->count($this->faker->randomDigitNotNull()) @@ -103,7 +103,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ExternalProfileSchema(); @@ -146,7 +146,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ExternalProfileSchema(); @@ -183,7 +183,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ExternalProfileSchema(); @@ -226,7 +226,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -273,7 +273,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -320,7 +320,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -361,7 +361,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -402,7 +402,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -443,7 +443,7 @@ class ExternalProfileIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/List/External/ExternalProfileRestoreTest.php b/tests/Feature/Http/Api/List/External/ExternalProfileRestoreTest.php index 76115a679..94086d18b 100644 --- a/tests/Feature/Http/Api/List/External/ExternalProfileRestoreTest.php +++ b/tests/Feature/Http/Api/List/External/ExternalProfileRestoreTest.php @@ -30,7 +30,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -48,7 +48,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -70,7 +70,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnExternalProfile(): void + public function test_forbidden_if_not_own_external_profile(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -95,7 +95,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -120,7 +120,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -144,7 +144,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -171,7 +171,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testCreatePermittedForBypass(): void + public function test_create_permitted_for_bypass(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -202,7 +202,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testMaxProfileLimit(): void + public function test_max_profile_limit(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -234,7 +234,7 @@ class ExternalProfileRestoreTest extends TestCase * * @return void */ - public function testMaxProfileLimitPermittedForBypass(): void + public function test_max_profile_limit_permitted_for_bypass(): void { Event::fakeExcept(ExternalProfileCreated::class); diff --git a/tests/Feature/Http/Api/List/External/ExternalProfileShowTest.php b/tests/Feature/Http/Api/List/External/ExternalProfileShowTest.php index 82ea1708a..27e0bcf79 100644 --- a/tests/Feature/Http/Api/List/External/ExternalProfileShowTest.php +++ b/tests/Feature/Http/Api/List/External/ExternalProfileShowTest.php @@ -34,7 +34,7 @@ class ExternalProfileShowTest extends TestCase * * @return void */ - public function testPrivateExternalProfileCannotBePubliclyViewed(): void + public function test_private_external_profile_cannot_be_publicly_viewed(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -54,7 +54,7 @@ class ExternalProfileShowTest extends TestCase * * @return void */ - public function testPrivateExternalProfileCannotBePubliclyIfNotOwned(): void + public function test_private_external_profile_cannot_be_publicly_if_not_owned(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -78,7 +78,7 @@ class ExternalProfileShowTest extends TestCase * * @return void */ - public function testPrivateExternalProfileCanBeViewedByOwner(): void + public function test_private_external_profile_can_be_viewed_by_owner(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -102,7 +102,7 @@ class ExternalProfileShowTest extends TestCase * * @return void */ - public function testPublicExternalProfileCanBeViewed(): void + public function test_public_external_profile_can_be_viewed(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -122,7 +122,7 @@ class ExternalProfileShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -150,7 +150,7 @@ class ExternalProfileShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -181,7 +181,7 @@ class ExternalProfileShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -223,7 +223,7 @@ class ExternalProfileShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept(ExternalProfileCreated::class); diff --git a/tests/Feature/Http/Api/List/External/ExternalProfileStoreTest.php b/tests/Feature/Http/Api/List/External/ExternalProfileStoreTest.php index ec0fd76cb..29421e6e5 100644 --- a/tests/Feature/Http/Api/List/External/ExternalProfileStoreTest.php +++ b/tests/Feature/Http/Api/List/External/ExternalProfileStoreTest.php @@ -33,7 +33,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Feature::activate(AllowExternalProfileManagement::class); @@ -49,7 +49,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Feature::activate(AllowExternalProfileManagement::class); @@ -70,7 +70,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Feature::deactivate(AllowExternalProfileManagement::class); @@ -95,7 +95,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { Feature::activate(AllowExternalProfileManagement::class); @@ -116,7 +116,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { Feature::activate(AllowExternalProfileManagement::class); @@ -144,7 +144,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testCreatePermittedForBypass(): void + public function test_create_permitted_for_bypass(): void { Feature::activate(AllowExternalProfileManagement::class, $this->faker->boolean()); @@ -174,7 +174,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testMaxProfileLimit(): void + public function test_max_profile_limit(): void { $profileLimit = $this->faker->randomDigitNotNull(); @@ -206,7 +206,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testMaxProfileLimitPermittedForBypass(): void + public function test_max_profile_limit_permitted_for_bypass(): void { $profileLimit = $this->faker->randomDigitNotNull(); @@ -240,7 +240,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testCreatedIfNotFlaggedByOpenAI(): void + public function test_created_if_not_flagged_by_open_ai(): void { Feature::activate(AllowExternalProfileManagement::class); Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -276,7 +276,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testCreatedIfOpenAIFails(): void + public function test_created_if_open_ai_fails(): void { Feature::activate(AllowExternalProfileManagement::class); Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -306,7 +306,7 @@ class ExternalProfileStoreTest extends TestCase * * @return void */ - public function testValidationErrorWhenFlaggedByOpenAI(): void + public function test_validation_error_when_flagged_by_open_ai(): void { Feature::activate(AllowExternalProfileManagement::class); Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); diff --git a/tests/Feature/Http/Api/List/External/ExternalProfileUpdateTest.php b/tests/Feature/Http/Api/List/External/ExternalProfileUpdateTest.php index b7b420970..13352b778 100644 --- a/tests/Feature/Http/Api/List/External/ExternalProfileUpdateTest.php +++ b/tests/Feature/Http/Api/List/External/ExternalProfileUpdateTest.php @@ -30,7 +30,7 @@ class ExternalProfileUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -55,7 +55,7 @@ class ExternalProfileUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -84,7 +84,7 @@ class ExternalProfileUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnExternalProfile(): void + public function test_forbidden_if_not_own_external_profile(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -116,7 +116,7 @@ class ExternalProfileUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -149,7 +149,7 @@ class ExternalProfileUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -183,7 +183,7 @@ class ExternalProfileUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { Event::fakeExcept(ExternalProfileCreated::class); @@ -217,7 +217,7 @@ class ExternalProfileUpdateTest extends TestCase * * @return void */ - public function testUpdatePermittedForBypass(): void + public function test_update_permitted_for_bypass(): void { Event::fakeExcept(ExternalProfileCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistBackwardIndexTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistBackwardIndexTest.php index 882075cd8..701fdfcda 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistBackwardIndexTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistBackwardIndexTest.php @@ -46,7 +46,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistCannotBePubliclyViewed(): void + public function test_private_playlist_cannot_be_publicly_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -67,7 +67,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCannotBePubliclyViewedIfNotOwned(): void + public function test_private_playlist_track_cannot_be_publicly_viewed_if_not_owned(): void { Event::fakeExcept(PlaylistCreated::class); @@ -92,7 +92,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCanBeViewedByOwner(): void + public function test_private_playlist_track_can_be_viewed_by_owner(): void { Event::fakeExcept(PlaylistCreated::class); @@ -117,7 +117,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testUnlistedPlaylistTrackCanBeViewed(): void + public function test_unlisted_playlist_track_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -138,7 +138,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testPublicPlaylistTrackCanBeViewed(): void + public function test_public_playlist_track_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -159,7 +159,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept(PlaylistCreated::class); @@ -201,7 +201,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Event::fakeExcept(PlaylistCreated::class); @@ -225,7 +225,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept(PlaylistCreated::class); @@ -271,7 +271,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept(PlaylistCreated::class); @@ -312,7 +312,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { Event::fakeExcept(PlaylistCreated::class); @@ -346,7 +346,7 @@ class PlaylistBackwardIndexTest extends TestCase * * @return void */ - public function testFilters(): void + public function test_filters(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistDestroyTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistDestroyTest.php index 3802698f0..549422079 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistDestroyTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistDestroyTest.php @@ -28,7 +28,7 @@ class PlaylistDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(PlaylistCreated::class); @@ -46,7 +46,7 @@ class PlaylistDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(PlaylistCreated::class); @@ -68,7 +68,7 @@ class PlaylistDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnPlaylist(): void + public function test_forbidden_if_not_own_playlist(): void { Event::fakeExcept(PlaylistCreated::class); @@ -93,7 +93,7 @@ class PlaylistDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(PlaylistCreated::class); @@ -117,7 +117,7 @@ class PlaylistDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -142,7 +142,7 @@ class PlaylistDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Event::fakeExcept(PlaylistCreated::class); @@ -168,7 +168,7 @@ class PlaylistDestroyTest extends TestCase * * @return void */ - public function testDestroyPermittedForBypass(): void + public function test_destroy_permitted_for_bypass(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistForceDeleteTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistForceDeleteTest.php index c19ef2b9c..b268297bf 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistForceDeleteTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistForceDeleteTest.php @@ -28,7 +28,7 @@ class PlaylistForceDeleteTest extends TestCase * * @return void */ - public function testAuthorized(): void + public function test_authorized(): void { Event::fakeExcept(PlaylistCreated::class); @@ -46,7 +46,7 @@ class PlaylistForceDeleteTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(PlaylistCreated::class); @@ -69,7 +69,7 @@ class PlaylistForceDeleteTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(PlaylistCreated::class); @@ -91,7 +91,7 @@ class PlaylistForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Event::fakeExcept(PlaylistCreated::class); @@ -115,7 +115,7 @@ class PlaylistForceDeleteTest extends TestCase * * @return void */ - public function testDeletePermittedForBypass(): void + public function test_delete_permitted_for_bypass(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistForwardIndexTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistForwardIndexTest.php index 1930a38fd..cd6a239aa 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistForwardIndexTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistForwardIndexTest.php @@ -46,7 +46,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistCannotBePubliclyViewed(): void + public function test_private_playlist_cannot_be_publicly_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -67,7 +67,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCannotBePubliclyViewedIfNotOwned(): void + public function test_private_playlist_track_cannot_be_publicly_viewed_if_not_owned(): void { Event::fakeExcept(PlaylistCreated::class); @@ -92,7 +92,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCanBeViewedByOwner(): void + public function test_private_playlist_track_can_be_viewed_by_owner(): void { Event::fakeExcept(PlaylistCreated::class); @@ -117,7 +117,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testUnlistedPlaylistTrackCanBeViewed(): void + public function test_unlisted_playlist_track_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -138,7 +138,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testPublicPlaylistTrackCanBeViewed(): void + public function test_public_playlist_track_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -159,7 +159,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept(PlaylistCreated::class); @@ -201,7 +201,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Event::fakeExcept(PlaylistCreated::class); @@ -225,7 +225,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept(PlaylistCreated::class); @@ -271,7 +271,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept(PlaylistCreated::class); @@ -312,7 +312,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { Event::fakeExcept(PlaylistCreated::class); @@ -346,7 +346,7 @@ class PlaylistForwardIndexTest extends TestCase * * @return void */ - public function testFilters(): void + public function test_filters(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistIndexTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistIndexTest.php index de1902fa8..c748849f7 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistIndexTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistIndexTest.php @@ -42,8 +42,8 @@ use Tests\TestCase; */ class PlaylistIndexTest extends TestCase { - use SortsModels; use AggregatesFields; + use SortsModels; use WithFaker; /** @@ -51,7 +51,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $publicCount = $this->faker->randomDigitNotNull(); @@ -92,7 +92,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Playlist::factory() ->count($this->faker->randomDigitNotNull()) @@ -112,7 +112,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new PlaylistSchema(); @@ -158,7 +158,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new PlaylistSchema(); @@ -195,7 +195,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new PlaylistSchema(); @@ -238,7 +238,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -285,7 +285,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -332,7 +332,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -373,7 +373,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -414,7 +414,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -455,7 +455,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -505,7 +505,7 @@ class PlaylistIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -528,7 +528,7 @@ class PlaylistIndexTest extends TestCase $query->where(Image::ATTRIBUTE_FACET, $facetFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.playlist.index', $parameters)); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistRestoreTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistRestoreTest.php index 1bc1b1b97..bc387ded3 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistRestoreTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistRestoreTest.php @@ -30,7 +30,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(PlaylistCreated::class); @@ -48,7 +48,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(PlaylistCreated::class); @@ -70,7 +70,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnPlaylist(): void + public function test_forbidden_if_not_own_playlist(): void { Event::fakeExcept(PlaylistCreated::class); @@ -95,7 +95,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(PlaylistCreated::class); @@ -120,7 +120,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -144,7 +144,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { Event::fakeExcept(PlaylistCreated::class); @@ -171,7 +171,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testCreatePermittedForBypass(): void + public function test_create_permitted_for_bypass(): void { Event::fakeExcept(PlaylistCreated::class); @@ -202,7 +202,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testMaxTrackLimit(): void + public function test_max_track_limit(): void { Event::fakeExcept(PlaylistCreated::class); @@ -234,7 +234,7 @@ class PlaylistRestoreTest extends TestCase * * @return void */ - public function testMaxTrackLimitPermittedForBypass(): void + public function test_max_track_limit_permitted_for_bypass(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistShowTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistShowTest.php index c26790e76..90c58f83d 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistShowTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistShowTest.php @@ -39,7 +39,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistCannotBePubliclyViewed(): void + public function test_private_playlist_cannot_be_publicly_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -59,7 +59,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistCannotBePubliclyIfNotOwned(): void + public function test_private_playlist_cannot_be_publicly_if_not_owned(): void { Event::fakeExcept(PlaylistCreated::class); @@ -83,7 +83,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistCanBeViewedByOwner(): void + public function test_private_playlist_can_be_viewed_by_owner(): void { Event::fakeExcept(PlaylistCreated::class); @@ -107,7 +107,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testUnlistedPlaylistCanBeViewed(): void + public function test_unlisted_playlist_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -127,7 +127,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testPublicPlaylistCanBeViewed(): void + public function test_public_playlist_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -147,7 +147,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept(PlaylistCreated::class); @@ -175,7 +175,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { Event::fakeExcept(PlaylistCreated::class); @@ -206,7 +206,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept(PlaylistCreated::class); @@ -251,7 +251,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept(PlaylistCreated::class); @@ -291,7 +291,7 @@ class PlaylistShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistStoreTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistStoreTest.php index ee0d561df..b39a57f76 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistStoreTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistStoreTest.php @@ -33,7 +33,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Feature::activate(AllowPlaylistManagement::class); @@ -49,7 +49,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Feature::activate(AllowPlaylistManagement::class); @@ -70,7 +70,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Feature::deactivate(AllowPlaylistManagement::class); @@ -95,7 +95,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { Feature::activate(AllowPlaylistManagement::class); @@ -116,7 +116,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { Feature::activate(AllowPlaylistManagement::class); @@ -144,7 +144,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testCreatePermittedForBypass(): void + public function test_create_permitted_for_bypass(): void { Feature::activate(AllowPlaylistManagement::class, $this->faker->boolean()); @@ -174,7 +174,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testMaxTrackLimit(): void + public function test_max_track_limit(): void { $playlistLimit = $this->faker->randomDigitNotNull(); @@ -206,7 +206,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testMaxTrackLimitPermittedForBypass(): void + public function test_max_track_limit_permitted_for_bypass(): void { $playlistLimit = $this->faker->randomDigitNotNull(); @@ -240,7 +240,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testCreatedIfNotFlaggedByOpenAI(): void + public function test_created_if_not_flagged_by_open_ai(): void { Feature::activate(AllowPlaylistManagement::class); Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -276,7 +276,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testCreatedIfOpenAIFails(): void + public function test_created_if_open_ai_fails(): void { Feature::activate(AllowPlaylistManagement::class); Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -306,7 +306,7 @@ class PlaylistStoreTest extends TestCase * * @return void */ - public function testValidationErrorWhenFlaggedByOpenAI(): void + public function test_validation_error_when_flagged_by_open_ai(): void { Feature::activate(AllowPlaylistManagement::class); Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); diff --git a/tests/Feature/Http/Api/List/Playlist/PlaylistUpdateTest.php b/tests/Feature/Http/Api/List/Playlist/PlaylistUpdateTest.php index eece208fc..3f2fb19d9 100644 --- a/tests/Feature/Http/Api/List/Playlist/PlaylistUpdateTest.php +++ b/tests/Feature/Http/Api/List/Playlist/PlaylistUpdateTest.php @@ -34,7 +34,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(PlaylistCreated::class); @@ -59,7 +59,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(PlaylistCreated::class); @@ -88,7 +88,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnPlaylist(): void + public function test_forbidden_if_not_own_playlist(): void { Event::fakeExcept(PlaylistCreated::class); @@ -120,7 +120,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(PlaylistCreated::class); @@ -153,7 +153,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -187,7 +187,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { Event::fakeExcept(PlaylistCreated::class); @@ -221,7 +221,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testUpdatePermittedForBypass(): void + public function test_update_permitted_for_bypass(): void { Event::fakeExcept(PlaylistCreated::class); @@ -259,7 +259,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testUpdatedIfNotFlaggedByOpenAI(): void + public function test_updated_if_not_flagged_by_open_ai(): void { Event::fakeExcept(PlaylistCreated::class); @@ -303,7 +303,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testUpdatedIfOpenAIFails(): void + public function test_updated_if_open_ai_fails(): void { Event::fakeExcept(PlaylistCreated::class); @@ -341,7 +341,7 @@ class PlaylistUpdateTest extends TestCase * * @return void */ - public function testValidationErrorWhenFlaggedByOpenAI(): void + public function test_validation_error_when_flagged_by_open_ai(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackBackwardIndexTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackBackwardIndexTest.php index f5fddc2f7..5c6f0ac1d 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackBackwardIndexTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackBackwardIndexTest.php @@ -47,7 +47,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistCannotBePubliclyViewed(): void + public function test_private_playlist_cannot_be_publicly_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -70,7 +70,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCannotBePubliclyViewedIfNotOwned(): void + public function test_private_playlist_track_cannot_be_publicly_viewed_if_not_owned(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -97,7 +97,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCanBeViewedByOwner(): void + public function test_private_playlist_track_can_be_viewed_by_owner(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -124,7 +124,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testUnlistedPlaylistTrackCanBeViewed(): void + public function test_unlisted_playlist_track_can_be_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -147,7 +147,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testPublicPlaylistTrackCanBeViewed(): void + public function test_public_playlist_track_can_be_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -170,7 +170,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -208,7 +208,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -234,7 +234,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -285,7 +285,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -329,7 +329,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -365,7 +365,7 @@ class TrackBackwardIndexTest extends TestCase * * @return void */ - public function testFilters(): void + public function test_filters(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackDestroyTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackDestroyTest.php index f14b1c53b..e90052e32 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackDestroyTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackDestroyTest.php @@ -31,7 +31,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -51,7 +51,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -75,7 +75,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnPlaylist(): void + public function test_forbidden_if_not_own_playlist(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -100,7 +100,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -128,7 +128,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testScoped(): void + public function test_scoped(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -159,7 +159,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -184,7 +184,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -224,7 +224,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testDestroyPermittedForBypass(): void + public function test_destroy_permitted_for_bypass(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -257,7 +257,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testDestroyFirst(): void + public function test_destroy_first(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -298,7 +298,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testDestroyLast(): void + public function test_destroy_last(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -339,7 +339,7 @@ class TrackDestroyTest extends TestCase * * @return void */ - public function testDestroySecond(): void + public function test_destroy_second(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackForceDeleteTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackForceDeleteTest.php index c8ab16214..7ea625a7e 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackForceDeleteTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackForceDeleteTest.php @@ -31,7 +31,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testAuthorized(): void + public function test_authorized(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -51,7 +51,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -75,7 +75,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testScoped(): void + public function test_scoped(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -107,7 +107,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -135,7 +135,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -171,7 +171,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testDeletePermittedForBypass(): void + public function test_delete_permitted_for_bypass(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -204,7 +204,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testForceDeleteFirst(): void + public function test_force_delete_first(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -241,7 +241,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testForceDeleteLast(): void + public function test_force_delete_last(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -278,7 +278,7 @@ class TrackForceDeleteTest extends TestCase * * @return void */ - public function testForceDeleteSecond(): void + public function test_force_delete_second(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackForwardIndexTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackForwardIndexTest.php index 524391165..9b0383fce 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackForwardIndexTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackForwardIndexTest.php @@ -47,7 +47,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistCannotBePubliclyViewed(): void + public function test_private_playlist_cannot_be_publicly_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -70,7 +70,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCannotBePubliclyViewedIfNotOwned(): void + public function test_private_playlist_track_cannot_be_publicly_viewed_if_not_owned(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -97,7 +97,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCanBeViewedByOwner(): void + public function test_private_playlist_track_can_be_viewed_by_owner(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -124,7 +124,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testUnlistedPlaylistTrackCanBeViewed(): void + public function test_unlisted_playlist_track_can_be_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -147,7 +147,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testPublicPlaylistTrackCanBeViewed(): void + public function test_public_playlist_track_can_be_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -170,7 +170,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -208,7 +208,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -234,7 +234,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -285,7 +285,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -329,7 +329,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -365,7 +365,7 @@ class TrackForwardIndexTest extends TestCase * * @return void */ - public function testFilters(): void + public function test_filters(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackIndexTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackIndexTest.php index 36aed3695..d4c806f40 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackIndexTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackIndexTest.php @@ -52,7 +52,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCannotBePubliclyViewed(): void + public function test_private_playlist_track_cannot_be_publicly_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -73,7 +73,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCannotBePubliclyViewedIfNotOwned(): void + public function test_private_playlist_track_cannot_be_publicly_viewed_if_not_owned(): void { Event::fakeExcept(PlaylistCreated::class); @@ -98,7 +98,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCanBeViewedByOwner(): void + public function test_private_playlist_track_can_be_viewed_by_owner(): void { Event::fakeExcept(PlaylistCreated::class); @@ -123,7 +123,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testUnlistedPlaylistTrackCanBeViewed(): void + public function test_unlisted_playlist_track_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -144,7 +144,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testPublicPlaylistTrackCanBeViewed(): void + public function test_public_playlist_track_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -165,7 +165,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept(PlaylistCreated::class); @@ -207,7 +207,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Event::fakeExcept(PlaylistCreated::class); @@ -231,7 +231,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept(PlaylistCreated::class); @@ -284,7 +284,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept(PlaylistCreated::class); @@ -325,7 +325,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { Event::fakeExcept(PlaylistCreated::class); @@ -370,7 +370,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { Event::fakeExcept(PlaylistCreated::class); @@ -428,7 +428,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { Event::fakeExcept(PlaylistCreated::class); @@ -486,7 +486,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { Event::fakeExcept(PlaylistCreated::class); @@ -531,7 +531,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { Event::fakeExcept(PlaylistCreated::class); @@ -576,7 +576,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { Event::fakeExcept(PlaylistCreated::class); @@ -621,7 +621,7 @@ class TrackIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackRestoreTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackRestoreTest.php index ab63c7397..02b7c1ff8 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackRestoreTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackRestoreTest.php @@ -34,7 +34,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -54,7 +54,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -78,7 +78,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnPlaylist(): void + public function test_forbidden_if_not_own_playlist(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -102,7 +102,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testScoped(): void + public function test_scoped(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -133,7 +133,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -158,7 +158,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -193,7 +193,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -202,7 +202,8 @@ class TrackRestoreTest extends TestCase $user = User::factory() ->withPermissions( CrudPermission::DELETE->format(PlaylistTrack::class), - ExtendedCrudPermission::RESTORE->format(PlaylistTrack::class)) + ExtendedCrudPermission::RESTORE->format(PlaylistTrack::class) + ) ->createOne(); $playlist = Playlist::factory() @@ -238,7 +239,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testRestoreFirst(): void + public function test_restore_first(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -291,7 +292,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testRestoreLast(): void + public function test_restore_last(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -339,7 +340,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testRestoreSecond(): void + public function test_restore_second(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -395,7 +396,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testDeletePermittedForBypass(): void + public function test_delete_permitted_for_bypass(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -431,7 +432,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testMaxTrackLimit(): void + public function test_max_track_limit(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -471,7 +472,7 @@ class TrackRestoreTest extends TestCase * * @return void */ - public function testMaxTrackLimitPermittedForBypass(): void + public function test_max_track_limit_permitted_for_bypass(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackShowTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackShowTest.php index 03f23dfa4..e272662af 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackShowTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackShowTest.php @@ -36,7 +36,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCannotBePubliclyViewed(): void + public function test_private_playlist_track_cannot_be_publicly_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -60,7 +60,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCannotBePubliclyViewedIfNotOwned(): void + public function test_private_playlist_track_cannot_be_publicly_viewed_if_not_owned(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -88,7 +88,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistTrackCanBeViewedByOwner(): void + public function test_private_playlist_track_can_be_viewed_by_owner(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -116,7 +116,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testUnlistedPlaylistTrackCanBeViewed(): void + public function test_unlisted_playlist_track_can_be_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -140,7 +140,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testPublicPlaylistTrackCanBeViewed(): void + public function test_public_playlist_track_can_be_viewed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -164,7 +164,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testScoped(): void + public function test_scoped(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -191,7 +191,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -225,7 +225,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -260,7 +260,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -309,7 +309,7 @@ class TrackShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackStoreTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackStoreTest.php index 1d71a486b..dae40393b 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackStoreTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackStoreTest.php @@ -37,7 +37,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(PlaylistCreated::class); @@ -66,7 +66,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(PlaylistCreated::class); @@ -99,7 +99,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnPlaylist(): void + public function test_forbidden_if_not_own_playlist(): void { Event::fakeExcept(PlaylistCreated::class); @@ -135,7 +135,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(PlaylistCreated::class); @@ -170,7 +170,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { Event::fakeExcept(PlaylistCreated::class); @@ -197,7 +197,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoExists(): void + public function test_anime_theme_entry_video_exists(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -237,7 +237,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testProhibitsNextAndPrevious(): void + public function test_prohibits_next_and_previous(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -300,7 +300,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testScopeNext(): void + public function test_scope_next(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -350,7 +350,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testScopePrevious(): void + public function test_scope_previous(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -400,7 +400,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -443,7 +443,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testCreateAfterLastTrack(): void + public function test_create_after_last_track(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -499,7 +499,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testCreateAfterFirstTrack(): void + public function test_create_after_first_track(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -556,7 +556,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testCreateBeforeLastTrack(): void + public function test_create_before_last_track(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -613,7 +613,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testCreateBeforeFirstTrack(): void + public function test_create_before_first_track(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -668,7 +668,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testCreatePermittedForBypass(): void + public function test_create_permitted_for_bypass(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -708,7 +708,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testMaxTrackLimit(): void + public function test_max_track_limit(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -748,7 +748,7 @@ class TrackStoreTest extends TestCase * * @return void */ - public function testMaxTrackLimitPermittedForBypass(): void + public function test_max_track_limit_permitted_for_bypass(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); diff --git a/tests/Feature/Http/Api/List/Playlist/Track/TrackUpdateTest.php b/tests/Feature/Http/Api/List/Playlist/Track/TrackUpdateTest.php index 46d8a3976..45d729742 100644 --- a/tests/Feature/Http/Api/List/Playlist/Track/TrackUpdateTest.php +++ b/tests/Feature/Http/Api/List/Playlist/Track/TrackUpdateTest.php @@ -32,7 +32,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -59,7 +59,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -90,7 +90,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnPlaylist(): void + public function test_forbidden_if_not_own_playlist(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -123,7 +123,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testScoped(): void + public function test_scoped(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -159,7 +159,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testScopePrevious(): void + public function test_scope_previous(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -201,7 +201,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testPreviousIsNotSelf(): void + public function test_previous_is_not_self(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -239,7 +239,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testScopeNext(): void + public function test_scope_next(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -281,7 +281,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testNextIsNotSelf(): void + public function test_next_is_not_self(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -319,7 +319,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testProhibitsNextAndPrevious(): void + public function test_prohibits_next_and_previous(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -368,7 +368,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -403,7 +403,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -449,7 +449,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -484,7 +484,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testInsertFirstAfterSecond(): void + public function test_insert_first_after_second(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -534,7 +534,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testInsertFirstAfterThird(): void + public function test_insert_first_after_third(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -584,7 +584,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testInsertFirstBeforeThird(): void + public function test_insert_first_before_third(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -634,7 +634,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testInsertSecondAfterThird(): void + public function test_insert_second_after_third(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -684,7 +684,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testInsertSecondBeforeFirst(): void + public function test_insert_second_before_first(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -734,7 +734,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testInsertThirdAfterFirst(): void + public function test_insert_third_after_first(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -784,7 +784,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testInsertThirdBeforeSecond(): void + public function test_insert_third_before_second(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -834,7 +834,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testInsertThirdBeforeFirst(): void + public function test_insert_third_before_first(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); @@ -885,7 +885,7 @@ class TrackUpdateTest extends TestCase * * @return void */ - public function testUpdatePermittedForBypass(): void + public function test_update_permitted_for_bypass(): void { Event::fakeExcept([PlaylistCreated::class, TrackCreated::class]); diff --git a/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageDestroyTest.php b/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageDestroyTest.php index 4160beabb..bf25cc1b4 100644 --- a/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageDestroyTest.php @@ -30,7 +30,7 @@ class PlaylistImageDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(PlaylistCreated::class); @@ -51,7 +51,7 @@ class PlaylistImageDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(PlaylistCreated::class); @@ -76,7 +76,7 @@ class PlaylistImageDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfNotOwnPlaylist(): void + public function test_forbidden_if_not_own_playlist(): void { Event::fakeExcept(PlaylistCreated::class); @@ -90,7 +90,8 @@ class PlaylistImageDestroyTest extends TestCase $user = User::factory() ->withPermissions( CrudPermission::DELETE->format(Playlist::class), - CrudPermission::DELETE->format(Image::class)) + CrudPermission::DELETE->format(Image::class) + ) ->createOne(); Sanctum::actingAs($user); @@ -106,7 +107,7 @@ class PlaylistImageDestroyTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(PlaylistCreated::class); @@ -115,7 +116,8 @@ class PlaylistImageDestroyTest extends TestCase $user = User::factory() ->withPermissions( CrudPermission::DELETE->format(Playlist::class), - CrudPermission::DELETE->format(Image::class)) + CrudPermission::DELETE->format(Image::class) + ) ->createOne(); $playlistImage = PlaylistImage::factory() @@ -135,7 +137,7 @@ class PlaylistImageDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { Event::fakeExcept(PlaylistCreated::class); @@ -165,7 +167,7 @@ class PlaylistImageDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { Event::fakeExcept(PlaylistCreated::class); @@ -197,7 +199,7 @@ class PlaylistImageDestroyTest extends TestCase * * @return void */ - public function testDestroyPermittedForBypass(): void + public function test_destroy_permitted_for_bypass(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageIndexTest.php b/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageIndexTest.php index 6a44ab0db..29d2c5150 100644 --- a/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageIndexTest.php @@ -49,7 +49,7 @@ class PlaylistImageIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $publicCount = $this->faker->randomDigitNotNull(); @@ -119,7 +119,7 @@ class PlaylistImageIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { PlaylistImage::factory() @@ -148,7 +148,7 @@ class PlaylistImageIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new PlaylistImageSchema(); @@ -196,7 +196,7 @@ class PlaylistImageIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new PlaylistImageSchema(); @@ -244,7 +244,7 @@ class PlaylistImageIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new PlaylistImageSchema(); @@ -294,7 +294,7 @@ class PlaylistImageIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -359,7 +359,7 @@ class PlaylistImageIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -424,7 +424,7 @@ class PlaylistImageIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); diff --git a/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageShowTest.php b/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageShowTest.php index 4f15ffe90..8614f2815 100644 --- a/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageShowTest.php +++ b/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageShowTest.php @@ -39,7 +39,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { Event::fakeExcept(PlaylistCreated::class); @@ -60,7 +60,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistImageCannotBePubliclyViewed(): void + public function test_private_playlist_image_cannot_be_publicly_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -85,7 +85,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistImageCannotBePubliclyIfNotOwned(): void + public function test_private_playlist_image_cannot_be_publicly_if_not_owned(): void { Event::fakeExcept(PlaylistCreated::class); @@ -114,7 +114,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testPrivatePlaylistImageCanBeViewedByOwner(): void + public function test_private_playlist_image_can_be_viewed_by_owner(): void { Event::fakeExcept(PlaylistCreated::class); @@ -143,7 +143,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testUnlistedPlaylistImageCanBeViewed(): void + public function test_unlisted_playlist_image_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -168,7 +168,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testPublicPlaylistCanBeViewed(): void + public function test_public_playlist_can_be_viewed(): void { Event::fakeExcept(PlaylistCreated::class); @@ -193,7 +193,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Event::fakeExcept(PlaylistCreated::class); @@ -229,7 +229,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { Event::fakeExcept(PlaylistCreated::class); @@ -277,7 +277,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { Event::fakeExcept(PlaylistCreated::class); @@ -325,7 +325,7 @@ class PlaylistImageShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageStoreTest.php b/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageStoreTest.php index a8bbfb155..6f515aa7c 100644 --- a/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/List/PlaylistImage/PlaylistImageStoreTest.php @@ -30,7 +30,7 @@ class PlaylistImageStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { Event::fakeExcept(PlaylistCreated::class); @@ -49,7 +49,7 @@ class PlaylistImageStoreTest extends TestCase * * @return void */ - public function testForbiddenIfMissingPermission(): void + public function test_forbidden_if_missing_permission(): void { Event::fakeExcept(PlaylistCreated::class); @@ -73,7 +73,7 @@ class PlaylistImageStoreTest extends TestCase * * @return void */ - public function testForbiddenIfFlagDisabled(): void + public function test_forbidden_if_flag_disabled(): void { Event::fakeExcept(PlaylistCreated::class); @@ -101,7 +101,7 @@ class PlaylistImageStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { Event::fakeExcept(PlaylistCreated::class); @@ -134,7 +134,7 @@ class PlaylistImageStoreTest extends TestCase * * @return void */ - public function testCreatePermittedForBypass(): void + public function test_create_permitted_for_bypass(): void { Event::fakeExcept(PlaylistCreated::class); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageDestroyTest.php index 103c92169..2d858a7dc 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageDestroyTest.php @@ -22,7 +22,7 @@ class AnimeImageDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $animeImage = AnimeImage::factory() ->for(Anime::factory()) @@ -39,7 +39,7 @@ class AnimeImageDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $animeImage = AnimeImage::factory() ->for(Anime::factory()) @@ -60,7 +60,7 @@ class AnimeImageDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); @@ -84,7 +84,7 @@ class AnimeImageDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $animeImage = AnimeImage::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageIndexTest.php index ceb501384..9a9871653 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageIndexTest.php @@ -48,7 +48,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeImage::factory() @@ -78,7 +78,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeImage::factory() @@ -101,7 +101,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeImageSchema(); @@ -143,7 +143,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeImageSchema(); @@ -185,7 +185,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new AnimeImageSchema(); @@ -229,7 +229,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -282,7 +282,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -335,7 +335,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -360,7 +360,7 @@ class AnimeImageIndexTest extends TestCase $query->where(Image::ATTRIBUTE_FACET, $facetFilter->value); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -379,7 +379,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -404,7 +404,7 @@ class AnimeImageIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -423,7 +423,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -448,7 +448,7 @@ class AnimeImageIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -467,7 +467,7 @@ class AnimeImageIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -498,7 +498,7 @@ class AnimeImageIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageShowTest.php index 5f7fbd464..b1965e9db 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageShowTest.php @@ -35,7 +35,7 @@ class AnimeImageShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); @@ -50,7 +50,7 @@ class AnimeImageShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $animeImage = AnimeImage::factory() ->for(Anime::factory()) @@ -78,7 +78,7 @@ class AnimeImageShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeImageSchema(); @@ -118,7 +118,7 @@ class AnimeImageShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeImageSchema(); @@ -158,7 +158,7 @@ class AnimeImageShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -199,7 +199,7 @@ class AnimeImageShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -240,7 +240,7 @@ class AnimeImageShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -281,7 +281,7 @@ class AnimeImageShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageStoreTest.php index f1d8a1cf9..f13bedff3 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeImage/AnimeImageStoreTest.php @@ -22,7 +22,7 @@ class AnimeImageStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); @@ -37,7 +37,7 @@ class AnimeImageStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); @@ -56,7 +56,7 @@ class AnimeImageStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); @@ -64,7 +64,8 @@ class AnimeImageStoreTest extends TestCase $user = User::factory() ->withPermissions( CrudPermission::CREATE->format(Anime::class), - CrudPermission::CREATE->format(Image::class)) + CrudPermission::CREATE->format(Image::class) + ) ->createOne(); Sanctum::actingAs($user); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceDestroyTest.php index 7327d3d0f..f221e3f91 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceDestroyTest.php @@ -22,7 +22,7 @@ class AnimeResourceDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) @@ -39,7 +39,7 @@ class AnimeResourceDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) @@ -60,7 +60,7 @@ class AnimeResourceDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -84,7 +84,7 @@ class AnimeResourceDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceIndexTest.php index 92f2437e5..3c45b9166 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceIndexTest.php @@ -48,7 +48,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeResource::factory() @@ -78,7 +78,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeResource::factory() @@ -101,7 +101,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeResourceSchema(); @@ -143,7 +143,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeResourceSchema(); @@ -185,7 +185,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new AnimeResourceSchema(); @@ -229,7 +229,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -282,7 +282,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -335,7 +335,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -379,7 +379,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -423,7 +423,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -467,7 +467,7 @@ class AnimeResourceIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceShowTest.php index afb668b95..10b7e32b5 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceShowTest.php @@ -35,7 +35,7 @@ class AnimeResourceShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -50,7 +50,7 @@ class AnimeResourceShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) @@ -78,7 +78,7 @@ class AnimeResourceShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeResourceSchema(); @@ -118,7 +118,7 @@ class AnimeResourceShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeResourceSchema(); @@ -158,7 +158,7 @@ class AnimeResourceShowTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -199,7 +199,7 @@ class AnimeResourceShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -240,7 +240,7 @@ class AnimeResourceShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -281,7 +281,7 @@ class AnimeResourceShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceStoreTest.php index f218faf14..87f5d3c53 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceStoreTest.php @@ -22,7 +22,7 @@ class AnimeResourceStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -39,7 +39,7 @@ class AnimeResourceStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -60,7 +60,7 @@ class AnimeResourceStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceUpdateTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceUpdateTest.php index 31366b511..d5412b412 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceUpdateTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeResource/AnimeResourceUpdateTest.php @@ -22,7 +22,7 @@ class AnimeResourceUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) @@ -41,7 +41,7 @@ class AnimeResourceUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) @@ -64,7 +64,7 @@ class AnimeResourceUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesDestroyTest.php index b871d1a2c..7a982ea36 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesDestroyTest.php @@ -22,7 +22,7 @@ class AnimeSeriesDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $animeSeries = AnimeSeries::factory() ->for(Anime::factory()) @@ -39,7 +39,7 @@ class AnimeSeriesDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $animeSeries = AnimeSeries::factory() ->for(Anime::factory()) @@ -60,7 +60,7 @@ class AnimeSeriesDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); @@ -84,7 +84,7 @@ class AnimeSeriesDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $animeSeries = AnimeSeries::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesIndexTest.php index 7024560d2..9d09b10e3 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesIndexTest.php @@ -47,7 +47,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeSeries::factory() @@ -77,7 +77,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeSeries::factory() @@ -100,7 +100,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeSeriesSchema(); @@ -142,7 +142,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeSeriesSchema(); @@ -184,7 +184,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new AnimeSeriesSchema(); @@ -228,7 +228,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -281,7 +281,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -334,7 +334,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -378,7 +378,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -422,7 +422,7 @@ class AnimeSeriesIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesShowTest.php index cd1508a0b..1185d645d 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesShowTest.php @@ -34,7 +34,7 @@ class AnimeSeriesShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); @@ -49,7 +49,7 @@ class AnimeSeriesShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $animeSeries = AnimeSeries::factory() ->for(Anime::factory()) @@ -77,7 +77,7 @@ class AnimeSeriesShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeSeriesSchema(); @@ -117,7 +117,7 @@ class AnimeSeriesShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeSeriesSchema(); @@ -157,7 +157,7 @@ class AnimeSeriesShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -198,7 +198,7 @@ class AnimeSeriesShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -239,7 +239,7 @@ class AnimeSeriesShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesStoreTest.php index d34c90b70..40bc6ba6b 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeSeries/AnimeSeriesStoreTest.php @@ -22,7 +22,7 @@ class AnimeSeriesStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); @@ -37,7 +37,7 @@ class AnimeSeriesStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); @@ -56,7 +56,7 @@ class AnimeSeriesStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioDestroyTest.php index 9e87f5682..220d93dcc 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioDestroyTest.php @@ -22,7 +22,7 @@ class AnimeStudioDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $animeStudio = AnimeStudio::factory() ->for(Anime::factory()) @@ -39,7 +39,7 @@ class AnimeStudioDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $animeStudio = AnimeStudio::factory() ->for(Anime::factory()) @@ -60,7 +60,7 @@ class AnimeStudioDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); @@ -84,7 +84,7 @@ class AnimeStudioDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $animeStudio = AnimeStudio::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioIndexTest.php index af72fee33..fe84e1818 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioIndexTest.php @@ -47,7 +47,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeStudio::factory() @@ -77,7 +77,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeStudio::factory() @@ -100,7 +100,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeStudioSchema(); @@ -142,7 +142,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeStudioSchema(); @@ -184,7 +184,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new AnimeStudioSchema(); @@ -228,7 +228,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -281,7 +281,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -334,7 +334,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -378,7 +378,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -422,7 +422,7 @@ class AnimeStudioIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioShowTest.php index bf37a046f..b18fa6638 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioShowTest.php @@ -34,7 +34,7 @@ class AnimeStudioShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); @@ -49,7 +49,7 @@ class AnimeStudioShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $animeStudio = AnimeStudio::factory() ->for(Anime::factory()) @@ -77,7 +77,7 @@ class AnimeStudioShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeStudioSchema(); @@ -117,7 +117,7 @@ class AnimeStudioShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeStudioSchema(); @@ -157,7 +157,7 @@ class AnimeStudioShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -198,7 +198,7 @@ class AnimeStudioShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -239,7 +239,7 @@ class AnimeStudioShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioStoreTest.php index ffbddd13a..e43af50ae 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeStudio/AnimeStudioStoreTest.php @@ -22,7 +22,7 @@ class AnimeStudioStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); @@ -37,7 +37,7 @@ class AnimeStudioStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); @@ -56,7 +56,7 @@ class AnimeStudioStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoDestroyTest.php index 45ec20154..1c0f8d313 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoDestroyTest.php @@ -24,7 +24,7 @@ class AnimeThemeEntryVideoDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $entryVideo = AnimeThemeEntryVideo::factory() ->for(AnimeThemeEntry::factory()->for(AnimeTheme::factory()->for(Anime::factory()))) @@ -41,7 +41,7 @@ class AnimeThemeEntryVideoDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $entryVideo = AnimeThemeEntryVideo::factory() ->for(AnimeThemeEntry::factory()->for(AnimeTheme::factory()->for(Anime::factory()))) @@ -62,7 +62,7 @@ class AnimeThemeEntryVideoDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -89,7 +89,7 @@ class AnimeThemeEntryVideoDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $entryVideo = AnimeThemeEntryVideo::factory() ->for(AnimeThemeEntry::factory()->for(AnimeTheme::factory()->for(Anime::factory()))) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoIndexTest.php index 359db0b52..f6d4cf9b9 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoIndexTest.php @@ -49,7 +49,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeThemeEntryVideo::factory() @@ -79,7 +79,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { AnimeThemeEntryVideo::factory() @@ -102,7 +102,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeThemeEntryVideoSchema(); @@ -144,7 +144,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeThemeEntryVideoSchema(); @@ -186,7 +186,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new AnimeThemeEntryVideoSchema(); @@ -230,7 +230,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -283,7 +283,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -336,7 +336,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testEntriesByNsfw(): void + public function test_entries_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -361,7 +361,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_NSFW, $nsfwFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -380,7 +380,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testEntriesBySpoiler(): void + public function test_entries_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -405,7 +405,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_SPOILER, $spoilerFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -424,7 +424,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testEntriesByVersion(): void + public function test_entries_by_version(): void { $versionFilter = $this->faker->randomDigitNotNull(); @@ -449,7 +449,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_VERSION, $versionFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -468,7 +468,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testVideosByLyrics(): void + public function test_videos_by_lyrics(): void { $lyricsFilter = $this->faker->boolean(); @@ -493,7 +493,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(Video::ATTRIBUTE_LYRICS, $lyricsFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -512,7 +512,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testVideosByNc(): void + public function test_videos_by_nc(): void { $ncFilter = $this->faker->boolean(); @@ -537,7 +537,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(Video::ATTRIBUTE_NC, $ncFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -556,7 +556,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testVideosByOverlap(): void + public function test_videos_by_overlap(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -581,7 +581,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(Video::ATTRIBUTE_OVERLAP, $overlapFilter->value); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -600,7 +600,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testVideosByResolution(): void + public function test_videos_by_resolution(): void { $resolutionFilter = $this->faker->randomNumber(); @@ -625,7 +625,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(Video::ATTRIBUTE_RESOLUTION, $resolutionFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -644,7 +644,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testVideosBySource(): void + public function test_videos_by_source(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -669,7 +669,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(Video::ATTRIBUTE_SOURCE, $sourceFilter->value); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -688,7 +688,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testVideosBySubbed(): void + public function test_videos_by_subbed(): void { $subbedFilter = $this->faker->boolean(); @@ -713,7 +713,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(Video::ATTRIBUTE_SUBBED, $subbedFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( @@ -732,7 +732,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase * * @return void */ - public function testVideosByUncen(): void + public function test_videos_by_uncen(): void { $uncenFilter = $this->faker->boolean(); @@ -757,7 +757,7 @@ class AnimeThemeEntryVideoIndexTest extends TestCase $query->where(Video::ATTRIBUTE_UNCEN, $uncenFilter); }, ]) - ->get(); + ->get(); $response->assertJson( json_decode( diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoShowTest.php index 8e8c2f0e8..9e6669b7e 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoShowTest.php @@ -36,7 +36,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -54,7 +54,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $entryVideo = AnimeThemeEntryVideo::factory() ->for(AnimeThemeEntry::factory()->for(AnimeTheme::factory()->for(Anime::factory()))) @@ -82,7 +82,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeThemeEntryVideoSchema(); @@ -122,7 +122,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeThemeEntryVideoSchema(); @@ -162,7 +162,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testEntryByNsfw(): void + public function test_entry_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -203,7 +203,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testEntryBySpoiler(): void + public function test_entry_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -244,7 +244,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testEntryByVersion(): void + public function test_entry_by_version(): void { $versionFilter = $this->faker->randomDigitNotNull(); @@ -285,7 +285,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testVideoByLyrics(): void + public function test_video_by_lyrics(): void { $lyricsFilter = $this->faker->boolean(); @@ -326,7 +326,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testVideoByNc(): void + public function test_video_by_nc(): void { $ncFilter = $this->faker->boolean(); @@ -367,7 +367,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testVideoByOverlap(): void + public function test_video_by_overlap(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -408,7 +408,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testVideoByResolution(): void + public function test_video_by_resolution(): void { $resolutionFilter = $this->faker->randomNumber(); @@ -449,7 +449,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testVideoBySource(): void + public function test_video_by_source(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -490,7 +490,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testVideoBySubbed(): void + public function test_video_by_subbed(): void { $subbedFilter = $this->faker->boolean(); @@ -531,7 +531,7 @@ class AnimeThemeEntryVideoShowTest extends TestCase * * @return void */ - public function testVideoByUncen(): void + public function test_video_by_uncen(): void { $uncenFilter = $this->faker->boolean(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoStoreTest.php index 371951e80..ee7a9c037 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/AnimeThemeEntryVideo/AnimeThemeEntryVideoStoreTest.php @@ -24,7 +24,7 @@ class AnimeThemeEntryVideoStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -42,7 +42,7 @@ class AnimeThemeEntryVideoStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -64,7 +64,7 @@ class AnimeThemeEntryVideoStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageDestroyTest.php index 4e2815b01..df53bdccf 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageDestroyTest.php @@ -22,7 +22,7 @@ class ArtistImageDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artistImage = ArtistImage::factory() ->for(Artist::factory()) @@ -39,7 +39,7 @@ class ArtistImageDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artistImage = ArtistImage::factory() ->for(Artist::factory()) @@ -60,7 +60,7 @@ class ArtistImageDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); @@ -84,7 +84,7 @@ class ArtistImageDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $artistImage = ArtistImage::factory() ->for(Artist::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageIndexTest.php index 40bb304cd..fd7279d11 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageIndexTest.php @@ -46,7 +46,7 @@ class ArtistImageIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { ArtistImage::factory() @@ -76,7 +76,7 @@ class ArtistImageIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { ArtistImage::factory() @@ -99,7 +99,7 @@ class ArtistImageIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistImageSchema(); @@ -141,7 +141,7 @@ class ArtistImageIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistImageSchema(); @@ -183,7 +183,7 @@ class ArtistImageIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ArtistImageSchema(); @@ -227,7 +227,7 @@ class ArtistImageIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -280,7 +280,7 @@ class ArtistImageIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -333,7 +333,7 @@ class ArtistImageIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageShowTest.php index 7318b8b7c..931de93aa 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageShowTest.php @@ -33,7 +33,7 @@ class ArtistImageShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); @@ -48,7 +48,7 @@ class ArtistImageShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $artistImage = ArtistImage::factory() ->for(Artist::factory()) @@ -76,7 +76,7 @@ class ArtistImageShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistImageSchema(); @@ -116,7 +116,7 @@ class ArtistImageShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistImageSchema(); @@ -156,7 +156,7 @@ class ArtistImageShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageStoreTest.php index d45bb94c3..f5e905504 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistImage/ArtistImageStoreTest.php @@ -22,7 +22,7 @@ class ArtistImageStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); @@ -37,7 +37,7 @@ class ArtistImageStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); @@ -56,7 +56,7 @@ class ArtistImageStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberDestroyTest.php index aa070be7d..94e3c418a 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberDestroyTest.php @@ -21,7 +21,7 @@ class ArtistMemberDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), ArtistMember::RELATION_ARTIST) @@ -38,7 +38,7 @@ class ArtistMemberDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), ArtistMember::RELATION_ARTIST) @@ -59,7 +59,7 @@ class ArtistMemberDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -78,7 +78,7 @@ class ArtistMemberDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), ArtistMember::RELATION_ARTIST) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberIndexTest.php index 932ff939e..48773bc3b 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberIndexTest.php @@ -43,7 +43,7 @@ class ArtistMemberIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { ArtistMember::factory() @@ -73,7 +73,7 @@ class ArtistMemberIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { ArtistMember::factory() @@ -96,7 +96,7 @@ class ArtistMemberIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistMemberSchema(); @@ -138,7 +138,7 @@ class ArtistMemberIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistMemberSchema(); @@ -180,7 +180,7 @@ class ArtistMemberIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ArtistMemberSchema(); @@ -224,7 +224,7 @@ class ArtistMemberIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -277,7 +277,7 @@ class ArtistMemberIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberShowTest.php index 400aa3051..3b3bd2a61 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberShowTest.php @@ -28,7 +28,7 @@ class ArtistMemberShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -43,7 +43,7 @@ class ArtistMemberShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), ArtistMember::RELATION_ARTIST) @@ -71,7 +71,7 @@ class ArtistMemberShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistMemberSchema(); @@ -111,7 +111,7 @@ class ArtistMemberShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistMemberSchema(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberStoreTest.php index 51abdf58a..3753b662a 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberStoreTest.php @@ -21,7 +21,7 @@ class ArtistMemberStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -38,7 +38,7 @@ class ArtistMemberStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -59,7 +59,7 @@ class ArtistMemberStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberUpdateTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberUpdateTest.php index 63277f747..90624768c 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberUpdateTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistMember/ArtistMemberUpdateTest.php @@ -21,7 +21,7 @@ class ArtistMemberUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), ArtistMember::RELATION_ARTIST) @@ -40,7 +40,7 @@ class ArtistMemberUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), ArtistMember::RELATION_ARTIST) @@ -63,7 +63,7 @@ class ArtistMemberUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), ArtistMember::RELATION_ARTIST) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceDestroyTest.php index e968c4bb7..fb376e6da 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceDestroyTest.php @@ -22,7 +22,7 @@ class ArtistResourceDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) @@ -39,7 +39,7 @@ class ArtistResourceDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) @@ -60,7 +60,7 @@ class ArtistResourceDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -84,7 +84,7 @@ class ArtistResourceDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceIndexTest.php index 1ebd2b5e0..44ec2781e 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceIndexTest.php @@ -46,7 +46,7 @@ class ArtistResourceIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { ArtistResource::factory() @@ -76,7 +76,7 @@ class ArtistResourceIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { ArtistResource::factory() @@ -99,7 +99,7 @@ class ArtistResourceIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistResourceSchema(); @@ -141,7 +141,7 @@ class ArtistResourceIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistResourceSchema(); @@ -183,7 +183,7 @@ class ArtistResourceIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ArtistResourceSchema(); @@ -227,7 +227,7 @@ class ArtistResourceIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -280,7 +280,7 @@ class ArtistResourceIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -333,7 +333,7 @@ class ArtistResourceIndexTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceShowTest.php index 1dcfbdac5..e59f04f17 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceShowTest.php @@ -33,7 +33,7 @@ class ArtistResourceShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -48,7 +48,7 @@ class ArtistResourceShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) @@ -76,7 +76,7 @@ class ArtistResourceShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistResourceSchema(); @@ -116,7 +116,7 @@ class ArtistResourceShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistResourceSchema(); @@ -156,7 +156,7 @@ class ArtistResourceShowTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceStoreTest.php index 818a16af8..63e816010 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceStoreTest.php @@ -22,7 +22,7 @@ class ArtistResourceStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -39,7 +39,7 @@ class ArtistResourceStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -60,7 +60,7 @@ class ArtistResourceStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceUpdateTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceUpdateTest.php index 046ea97f0..3f9d4205d 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceUpdateTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistResource/ArtistResourceUpdateTest.php @@ -22,7 +22,7 @@ class ArtistResourceUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) @@ -41,7 +41,7 @@ class ArtistResourceUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) @@ -64,7 +64,7 @@ class ArtistResourceUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongDestroyTest.php index 078c25a09..9acb913b7 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongDestroyTest.php @@ -22,7 +22,7 @@ class ArtistSongDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) @@ -39,7 +39,7 @@ class ArtistSongDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) @@ -60,7 +60,7 @@ class ArtistSongDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -84,7 +84,7 @@ class ArtistSongDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongIndexTest.php index e1b5385f9..9276b3e6f 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongIndexTest.php @@ -44,7 +44,7 @@ class ArtistSongIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { ArtistSong::factory() @@ -74,7 +74,7 @@ class ArtistSongIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { ArtistSong::factory() @@ -97,7 +97,7 @@ class ArtistSongIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistSongSchema(); @@ -139,7 +139,7 @@ class ArtistSongIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistSongSchema(); @@ -181,7 +181,7 @@ class ArtistSongIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ArtistSongSchema(); @@ -225,7 +225,7 @@ class ArtistSongIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -278,7 +278,7 @@ class ArtistSongIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongShowTest.php index 26e42fded..60f54ba89 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongShowTest.php @@ -29,7 +29,7 @@ class ArtistSongShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -44,7 +44,7 @@ class ArtistSongShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) @@ -72,7 +72,7 @@ class ArtistSongShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistSongSchema(); @@ -112,7 +112,7 @@ class ArtistSongShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistSongSchema(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongStoreTest.php index 99149eac0..9d33d3fa5 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongStoreTest.php @@ -22,7 +22,7 @@ class ArtistSongStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -39,7 +39,7 @@ class ArtistSongStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -60,7 +60,7 @@ class ArtistSongStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongUpdateTest.php b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongUpdateTest.php index e5cf61b42..f33b38abd 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongUpdateTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/ArtistSong/ArtistSongUpdateTest.php @@ -22,7 +22,7 @@ class ArtistSongUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) @@ -41,7 +41,7 @@ class ArtistSongUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) @@ -64,7 +64,7 @@ class ArtistSongUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceDestroyTest.php index b8ff87fc1..a6351eaa1 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceDestroyTest.php @@ -6,8 +6,8 @@ namespace Tests\Feature\Http\Api\Pivot\Wiki\SongResource; use App\Enums\Auth\CrudPermission; use App\Models\Auth\User; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; use Laravel\Sanctum\Sanctum; use Tests\TestCase; @@ -22,7 +22,7 @@ class SongResourceDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $songResource = SongResource::factory() ->for(Song::factory()) @@ -39,7 +39,7 @@ class SongResourceDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $songResource = SongResource::factory() ->for(Song::factory()) @@ -60,7 +60,7 @@ class SongResourceDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -84,7 +84,7 @@ class SongResourceDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $songResource = SongResource::factory() ->for(Song::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceIndexTest.php index 17b74b623..340c3635a 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceIndexTest.php @@ -22,8 +22,8 @@ use App\Http\Api\Schema\Pivot\Wiki\SongResourceSchema; use App\Http\Api\Sort\Sort; use App\Http\Resources\Pivot\Wiki\Collection\SongResourceCollection; use App\Http\Resources\Pivot\Wiki\Resource\SongResourceResource; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\BasePivot; use App\Pivots\Wiki\SongResource; use Illuminate\Database\Eloquent\Relations\BelongsTo; @@ -46,7 +46,7 @@ class SongResourceIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { SongResource::factory() @@ -76,7 +76,7 @@ class SongResourceIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { SongResource::factory() @@ -99,7 +99,7 @@ class SongResourceIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new SongResourceSchema(); @@ -141,7 +141,7 @@ class SongResourceIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new SongResourceSchema(); @@ -183,7 +183,7 @@ class SongResourceIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new SongResourceSchema(); @@ -227,7 +227,7 @@ class SongResourceIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -280,7 +280,7 @@ class SongResourceIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -333,7 +333,7 @@ class SongResourceIndexTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceShowTest.php index b12f638a7..2789ce8cc 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceShowTest.php @@ -13,8 +13,8 @@ use App\Http\Api\Parser\IncludeParser; use App\Http\Api\Query\Query; use App\Http\Api\Schema\Pivot\Wiki\SongResourceSchema; use App\Http\Resources\Pivot\Wiki\Resource\SongResourceResource; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Foundation\Testing\WithFaker; @@ -33,7 +33,7 @@ class SongResourceShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -48,7 +48,7 @@ class SongResourceShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $songResource = SongResource::factory() ->for(Song::factory()) @@ -76,7 +76,7 @@ class SongResourceShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new SongResourceSchema(); @@ -116,7 +116,7 @@ class SongResourceShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new SongResourceSchema(); @@ -156,7 +156,7 @@ class SongResourceShowTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceStoreTest.php index 6174f4173..93d02ce7e 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceStoreTest.php @@ -6,8 +6,8 @@ namespace Tests\Feature\Http\Api\Pivot\Wiki\SongResource; use App\Enums\Auth\CrudPermission; use App\Models\Auth\User; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; use Laravel\Sanctum\Sanctum; use Tests\TestCase; @@ -22,7 +22,7 @@ class SongResourceStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -39,7 +39,7 @@ class SongResourceStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -60,7 +60,7 @@ class SongResourceStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceUpdateTest.php b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceUpdateTest.php index 46df31d37..271fc45a1 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceUpdateTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/SongResource/SongResourceUpdateTest.php @@ -6,8 +6,8 @@ namespace Tests\Feature\Http\Api\Pivot\Wiki\SongResource; use App\Enums\Auth\CrudPermission; use App\Models\Auth\User; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; use Laravel\Sanctum\Sanctum; use Tests\TestCase; @@ -22,7 +22,7 @@ class SongResourceUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $songResource = SongResource::factory() ->for(Song::factory()) @@ -41,7 +41,7 @@ class SongResourceUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $songResource = SongResource::factory() ->for(Song::factory()) @@ -64,7 +64,7 @@ class SongResourceUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $songResource = SongResource::factory() ->for(Song::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageDestroyTest.php index e306bfbb1..7458ff2bb 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageDestroyTest.php @@ -22,7 +22,7 @@ class StudioImageDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studioImage = StudioImage::factory() ->for(Studio::factory()) @@ -39,7 +39,7 @@ class StudioImageDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studioImage = StudioImage::factory() ->for(Studio::factory()) @@ -60,7 +60,7 @@ class StudioImageDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); @@ -84,7 +84,7 @@ class StudioImageDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $studioImage = StudioImage::factory() ->for(Studio::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageIndexTest.php index e81fa13c9..282031880 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageIndexTest.php @@ -46,7 +46,7 @@ class StudioImageIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { StudioImage::factory() @@ -76,7 +76,7 @@ class StudioImageIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { StudioImage::factory() @@ -99,7 +99,7 @@ class StudioImageIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new StudioImageSchema(); @@ -141,7 +141,7 @@ class StudioImageIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new StudioImageSchema(); @@ -183,7 +183,7 @@ class StudioImageIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new StudioImageSchema(); @@ -227,7 +227,7 @@ class StudioImageIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -280,7 +280,7 @@ class StudioImageIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -333,7 +333,7 @@ class StudioImageIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageShowTest.php index 85998ef46..63ac6abdf 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageShowTest.php @@ -33,7 +33,7 @@ class StudioImageShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); @@ -48,7 +48,7 @@ class StudioImageShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $studioImage = StudioImage::factory() ->for(Studio::factory()) @@ -76,7 +76,7 @@ class StudioImageShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new StudioImageSchema(); @@ -116,7 +116,7 @@ class StudioImageShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new StudioImageSchema(); @@ -156,7 +156,7 @@ class StudioImageShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageStoreTest.php index 6476220e3..bea5a2bc1 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioImage/StudioImageStoreTest.php @@ -22,7 +22,7 @@ class StudioImageStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); @@ -37,7 +37,7 @@ class StudioImageStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); @@ -56,7 +56,7 @@ class StudioImageStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceDestroyTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceDestroyTest.php index 1061040bb..ef078cad2 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceDestroyTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceDestroyTest.php @@ -22,7 +22,7 @@ class StudioResourceDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) @@ -39,7 +39,7 @@ class StudioResourceDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) @@ -60,7 +60,7 @@ class StudioResourceDestroyTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -84,7 +84,7 @@ class StudioResourceDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceIndexTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceIndexTest.php index 3a344f7d0..b2cd17a58 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceIndexTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceIndexTest.php @@ -46,7 +46,7 @@ class StudioResourceIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { Collection::times($this->faker->randomDigitNotNull(), function () { StudioResource::factory() @@ -76,7 +76,7 @@ class StudioResourceIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Collection::times($this->faker->randomDigitNotNull(), function () { StudioResource::factory() @@ -99,7 +99,7 @@ class StudioResourceIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new StudioResourceSchema(); @@ -141,7 +141,7 @@ class StudioResourceIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new StudioResourceSchema(); @@ -183,7 +183,7 @@ class StudioResourceIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new StudioResourceSchema(); @@ -227,7 +227,7 @@ class StudioResourceIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -280,7 +280,7 @@ class StudioResourceIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -333,7 +333,7 @@ class StudioResourceIndexTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceShowTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceShowTest.php index c6c86a374..1515512f5 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceShowTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceShowTest.php @@ -33,7 +33,7 @@ class StudioResourceShowTest extends TestCase * * @return void */ - public function testNotFound(): void + public function test_not_found(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -48,7 +48,7 @@ class StudioResourceShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) @@ -76,7 +76,7 @@ class StudioResourceShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new StudioResourceSchema(); @@ -116,7 +116,7 @@ class StudioResourceShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new StudioResourceSchema(); @@ -156,7 +156,7 @@ class StudioResourceShowTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceStoreTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceStoreTest.php index c81332a88..10ec955d0 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceStoreTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceStoreTest.php @@ -22,7 +22,7 @@ class StudioResourceStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -39,7 +39,7 @@ class StudioResourceStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -60,7 +60,7 @@ class StudioResourceStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceUpdateTest.php b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceUpdateTest.php index f3fe1c073..22403b3a8 100644 --- a/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceUpdateTest.php +++ b/tests/Feature/Http/Api/Pivot/Wiki/StudioResource/StudioResourceUpdateTest.php @@ -22,7 +22,7 @@ class StudioResourceUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) @@ -41,7 +41,7 @@ class StudioResourceUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) @@ -64,7 +64,7 @@ class StudioResourceUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) diff --git a/tests/Feature/Http/Api/SearchTest.php b/tests/Feature/Http/Api/SearchTest.php index 87d4a0ec4..7c0a7b653 100644 --- a/tests/Feature/Http/Api/SearchTest.php +++ b/tests/Feature/Http/Api/SearchTest.php @@ -32,7 +32,7 @@ class SearchTest extends TestCase * * @return void */ - public function testNoSearchTerm(): void + public function test_no_search_term(): void { $response = $this->get(route('api.search.show')); @@ -44,7 +44,7 @@ class SearchTest extends TestCase * * @return void */ - public function testSearchAttributes(): void + public function test_search_attributes(): void { $driver = Config::get('scout.driver'); if (empty($driver)) { @@ -78,7 +78,7 @@ class SearchTest extends TestCase * * @return void */ - public function testSearchSparseFieldsets(): void + public function test_search_sparse_fieldsets(): void { $driver = Config::get('scout.driver'); if (empty($driver)) { diff --git a/tests/Feature/Http/Api/ThrottleTest.php b/tests/Feature/Http/Api/ThrottleTest.php index af144f15c..ed2be58bf 100644 --- a/tests/Feature/Http/Api/ThrottleTest.php +++ b/tests/Feature/Http/Api/ThrottleTest.php @@ -19,7 +19,7 @@ class ThrottleTest extends TestCase * * @return void */ - public function testForwardedIpRateLimited(): void + public function test_forwarded_ip_rate_limited(): void { $response = $this->withHeader('x-forwarded-ip', fake()->ipv4())->get(route('api.anime.index')); @@ -32,7 +32,7 @@ class ThrottleTest extends TestCase * * @return void */ - public function testClientNoForwardedIpNotRateLimited(): void + public function test_client_no_forwarded_ip_not_rate_limited(): void { $response = $this->get(route('api.anime.index')); @@ -45,7 +45,7 @@ class ThrottleTest extends TestCase * * @return void */ - public function testUserNotRateLimited(): void + public function test_user_not_rate_limited(): void { $user = User::factory()->withPermissions(SpecialPermission::BYPASS_API_RATE_LIMITER->value)->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/AnimeDestroyTest.php b/tests/Feature/Http/Api/Wiki/Anime/AnimeDestroyTest.php index bb7c8f4fb..25d6f89f0 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/AnimeDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/AnimeDestroyTest.php @@ -20,7 +20,7 @@ class AnimeDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $anime = Anime::factory()->createOne(); @@ -34,7 +34,7 @@ class AnimeDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->createOne(); @@ -52,7 +52,7 @@ class AnimeDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $anime = Anime::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class AnimeDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $anime = Anime::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/AnimeForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Anime/AnimeForceDeleteTest.php index 36ddbad77..e98d1f697 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/AnimeForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/AnimeForceDeleteTest.php @@ -20,7 +20,7 @@ class AnimeForceDeleteTest extends TestCase * * @return void */ - public function testAuthorized(): void + public function test_authorized(): void { $anime = Anime::factory()->createOne(); @@ -34,7 +34,7 @@ class AnimeForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->createOne(); @@ -52,7 +52,7 @@ class AnimeForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $anime = Anime::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/AnimeIndexTest.php b/tests/Feature/Http/Api/Wiki/Anime/AnimeIndexTest.php index 5a218bca8..54ec3647d 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/AnimeIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/AnimeIndexTest.php @@ -62,7 +62,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $anime = Anime::factory()->count($this->faker->numberBetween(1, 3))->create(); @@ -85,7 +85,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Anime::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -103,7 +103,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeSchema(); @@ -139,7 +139,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeSchema(); @@ -174,7 +174,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new AnimeSchema(); @@ -213,7 +213,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testSeasonFilter(): void + public function test_season_filter(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -245,7 +245,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testMediaFormatFilter(): void + public function test_media_format_filter(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -277,7 +277,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testYearFilter(): void + public function test_year_filter(): void { $yearFilter = $this->faker->numberBetween(2000, 2002); @@ -317,7 +317,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -360,7 +360,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -403,7 +403,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -439,7 +439,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -475,7 +475,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -511,7 +511,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -555,7 +555,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testSynonymsByType(): void + public function test_synonyms_by_type(): void { $typeFilter = Arr::random(AnimeSynonymType::cases()); @@ -578,7 +578,7 @@ class AnimeIndexTest extends TestCase $query->where(AnimeSynonym::ATTRIBUTE_TYPE, $typeFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -599,7 +599,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -628,7 +628,7 @@ class AnimeIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_SEQUENCE, $sequenceFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -649,7 +649,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -672,7 +672,7 @@ class AnimeIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_TYPE, $typeFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -693,7 +693,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testEntriesByNsfw(): void + public function test_entries_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -718,7 +718,7 @@ class AnimeIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_NSFW, $nsfwFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -739,7 +739,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testEntriesBySpoiler(): void + public function test_entries_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -764,7 +764,7 @@ class AnimeIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_SPOILER, $spoilerFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -785,7 +785,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testEntriesByVersion(): void + public function test_entries_by_version(): void { $versionFilter = $this->faker->numberBetween(1, 3); $excludedVersion = $versionFilter + 1; @@ -818,7 +818,7 @@ class AnimeIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_VERSION, $versionFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -839,7 +839,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -860,7 +860,7 @@ class AnimeIndexTest extends TestCase $query->where(ExternalResource::ATTRIBUTE_SITE, $siteFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -881,7 +881,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -902,7 +902,7 @@ class AnimeIndexTest extends TestCase $query->where(Image::ATTRIBUTE_FACET, $facetFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -923,7 +923,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testVideosByLyrics(): void + public function test_videos_by_lyrics(): void { $lyricsFilter = $this->faker->boolean(); @@ -941,7 +941,7 @@ class AnimeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_LYRICS, $lyricsFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -962,7 +962,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testVideosByNc(): void + public function test_videos_by_nc(): void { $ncFilter = $this->faker->boolean(); @@ -980,7 +980,7 @@ class AnimeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_NC, $ncFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -1001,7 +1001,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testVideosByOverlap(): void + public function test_videos_by_overlap(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -1019,7 +1019,7 @@ class AnimeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_OVERLAP, $overlapFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -1040,7 +1040,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testVideosByResolution(): void + public function test_videos_by_resolution(): void { $resolutionFilter = $this->faker->randomNumber(); $excludedResolution = $resolutionFilter + 1; @@ -1077,7 +1077,7 @@ class AnimeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_RESOLUTION, $resolutionFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -1098,7 +1098,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testVideosBySource(): void + public function test_videos_by_source(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -1116,7 +1116,7 @@ class AnimeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_SOURCE, $sourceFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -1137,7 +1137,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testVideosBySubbed(): void + public function test_videos_by_subbed(): void { $subbedFilter = $this->faker->boolean(); @@ -1155,7 +1155,7 @@ class AnimeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_SUBBED, $subbedFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); @@ -1176,7 +1176,7 @@ class AnimeIndexTest extends TestCase * * @return void */ - public function testVideosByUncen(): void + public function test_videos_by_uncen(): void { $uncenFilter = $this->faker->boolean(); @@ -1194,7 +1194,7 @@ class AnimeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_UNCEN, $uncenFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.anime.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Anime/AnimeRestoreTest.php b/tests/Feature/Http/Api/Wiki/Anime/AnimeRestoreTest.php index 58d6a1c7f..515382f6a 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/AnimeRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/AnimeRestoreTest.php @@ -20,7 +20,7 @@ class AnimeRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $anime = Anime::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class AnimeRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class AnimeRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $anime = Anime::factory()->createOne(); @@ -70,7 +70,7 @@ class AnimeRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $anime = Anime::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/AnimeShowTest.php b/tests/Feature/Http/Api/Wiki/Anime/AnimeShowTest.php index 921bc2c9a..24bb70573 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/AnimeShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/AnimeShowTest.php @@ -32,7 +32,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Arr; -use Illuminate\Support\Facades\Log; use Tests\TestCase; /** @@ -47,7 +46,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $anime = Anime::factory()->create(); @@ -70,7 +69,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $anime = Anime::factory()->trashed()->createOne(); @@ -95,7 +94,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AnimeSchema(); @@ -130,7 +129,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AnimeSchema(); @@ -165,7 +164,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testSynonymsByType(): void + public function test_synonyms_by_type(): void { $typeFilter = Arr::random(AnimeSynonymType::cases()); @@ -207,7 +206,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -255,7 +254,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -297,7 +296,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testEntriesByNsfw(): void + public function test_entries_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -341,7 +340,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testEntriesBySpoiler(): void + public function test_entries_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -385,7 +384,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testEntriesByVersion(): void + public function test_entries_by_version(): void { $versionFilter = $this->faker->numberBetween(1, 3); $excludedVersion = $versionFilter + 1; @@ -437,7 +436,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -477,7 +476,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -517,7 +516,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testVideosByLyrics(): void + public function test_videos_by_lyrics(): void { $lyricsFilter = $this->faker->boolean(); @@ -555,7 +554,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testVideosByNc(): void + public function test_videos_by_nc(): void { $ncFilter = $this->faker->boolean(); @@ -593,7 +592,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testVideosByOverlap(): void + public function test_videos_by_overlap(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -631,7 +630,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testVideosByResolution(): void + public function test_videos_by_resolution(): void { $resolutionFilter = $this->faker->randomNumber(); $excludedResolution = $resolutionFilter + 1; @@ -687,7 +686,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testVideosBySource(): void + public function test_videos_by_source(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -725,7 +724,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testVideosBySubbed(): void + public function test_videos_by_subbed(): void { $subbedFilter = $this->faker->boolean(); @@ -763,7 +762,7 @@ class AnimeShowTest extends TestCase * * @return void */ - public function testVideosByUncen(): void + public function test_videos_by_uncen(): void { $uncenFilter = $this->faker->boolean(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/AnimeStoreTest.php b/tests/Feature/Http/Api/Wiki/Anime/AnimeStoreTest.php index 94a77bee1..014f0fa83 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/AnimeStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/AnimeStoreTest.php @@ -23,7 +23,7 @@ class AnimeStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $anime = Anime::factory()->makeOne(); @@ -37,7 +37,7 @@ class AnimeStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->makeOne(); @@ -55,7 +55,7 @@ class AnimeStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Anime::class))->createOne(); @@ -77,7 +77,7 @@ class AnimeStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $season = Arr::random(AnimeSeason::cases()); $mediaFormat = Arr::random(AnimeMediaFormat::cases()); diff --git a/tests/Feature/Http/Api/Wiki/Anime/AnimeUpdateTest.php b/tests/Feature/Http/Api/Wiki/Anime/AnimeUpdateTest.php index b85361b17..2af71ee78 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/AnimeUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/AnimeUpdateTest.php @@ -23,7 +23,7 @@ class AnimeUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $anime = Anime::factory()->createOne(); @@ -45,7 +45,7 @@ class AnimeUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $anime = Anime::factory()->createOne(); @@ -71,7 +71,7 @@ class AnimeUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $anime = Anime::factory()->trashed()->createOne(); @@ -97,7 +97,7 @@ class AnimeUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $anime = Anime::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymDestroyTest.php b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymDestroyTest.php index 9d82bbabb..61515691f 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymDestroyTest.php @@ -21,7 +21,7 @@ class SynonymDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); @@ -35,7 +35,7 @@ class SynonymDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); @@ -53,7 +53,7 @@ class SynonymDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $synonym = AnimeSynonym::factory() ->trashed() @@ -74,7 +74,7 @@ class SynonymDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymForceDeleteTest.php index fc85ad16a..d81ad4cb9 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymForceDeleteTest.php @@ -21,7 +21,7 @@ class SynonymForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); @@ -35,7 +35,7 @@ class SynonymForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); @@ -53,7 +53,7 @@ class SynonymForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymIndexTest.php b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymIndexTest.php index 4800bf45c..d7713f69a 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymIndexTest.php @@ -47,7 +47,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { AnimeSynonym::factory() ->for(Anime::factory()) @@ -75,7 +75,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { AnimeSynonym::factory() ->for(Anime::factory()) @@ -96,7 +96,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new SynonymSchema(); @@ -136,7 +136,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new SynonymSchema(); @@ -176,7 +176,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new SynonymSchema(); @@ -218,7 +218,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -267,7 +267,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -316,7 +316,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -359,7 +359,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -402,7 +402,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -445,7 +445,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -495,7 +495,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -516,7 +516,7 @@ class SynonymIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animesynonym.index', $parameters)); @@ -537,7 +537,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -558,7 +558,7 @@ class SynonymIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animesynonym.index', $parameters)); @@ -579,7 +579,7 @@ class SynonymIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -606,7 +606,7 @@ class SynonymIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animesynonym.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymRestoreTest.php b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymRestoreTest.php index 672dc6957..ed54335c7 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymRestoreTest.php @@ -21,7 +21,7 @@ class SynonymRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $synonym = AnimeSynonym::factory() ->trashed() @@ -38,7 +38,7 @@ class SynonymRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $synonym = AnimeSynonym::factory() ->trashed() @@ -59,7 +59,7 @@ class SynonymRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); @@ -77,7 +77,7 @@ class SynonymRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $synonym = AnimeSynonym::factory() ->trashed() diff --git a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymShowTest.php b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymShowTest.php index 2b3c1dcee..7cdd30f6c 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymShowTest.php @@ -33,7 +33,7 @@ class SynonymShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); @@ -58,7 +58,7 @@ class SynonymShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $synonym = AnimeSynonym::factory() ->trashed() @@ -86,7 +86,7 @@ class SynonymShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new SynonymSchema(); @@ -121,7 +121,7 @@ class SynonymShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new SynonymSchema(); @@ -158,7 +158,7 @@ class SynonymShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -196,7 +196,7 @@ class SynonymShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -234,7 +234,7 @@ class SynonymShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymStoreTest.php b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymStoreTest.php index 2f78570cc..cc1a5c6e5 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymStoreTest.php @@ -21,7 +21,7 @@ class SynonymStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->makeOne(); @@ -35,7 +35,7 @@ class SynonymStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->makeOne(); @@ -53,7 +53,7 @@ class SynonymStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(AnimeSynonym::class))->createOne(); @@ -71,7 +71,7 @@ class SynonymStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $anime = Anime::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymUpdateTest.php b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymUpdateTest.php index 283b294c8..06cdaed93 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Synonym/SynonymUpdateTest.php @@ -21,7 +21,7 @@ class SynonymUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); @@ -37,7 +37,7 @@ class SynonymUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); @@ -57,7 +57,7 @@ class SynonymUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $synonym = AnimeSynonym::factory() ->trashed() @@ -80,7 +80,7 @@ class SynonymUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $synonym = AnimeSynonym::factory()->for(Anime::factory())->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryDestroyTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryDestroyTest.php index 73812f7b5..8a34e3421 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryDestroyTest.php @@ -22,7 +22,7 @@ class EntryDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -38,7 +38,7 @@ class EntryDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -58,7 +58,7 @@ class EntryDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $entry = AnimeThemeEntry::factory() ->trashed() @@ -79,7 +79,7 @@ class EntryDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryForceDeleteTest.php index ae9f852e5..b8f058759 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryForceDeleteTest.php @@ -22,7 +22,7 @@ class EntryForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -38,7 +38,7 @@ class EntryForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -58,7 +58,7 @@ class EntryForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryIndexTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryIndexTest.php index cf02d55a8..42618eb27 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryIndexTest.php @@ -51,7 +51,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $entries = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -77,7 +77,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -98,7 +98,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new EntrySchema(); @@ -139,7 +139,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new EntrySchema(); @@ -177,7 +177,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new EntrySchema(); @@ -219,7 +219,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -268,7 +268,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -317,7 +317,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -360,7 +360,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -403,7 +403,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -446,7 +446,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -498,7 +498,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testEntriesByNsfw(): void + public function test_entries_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -534,7 +534,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testEntriesBySpoiler(): void + public function test_entries_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -570,7 +570,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testEntriesByVersion(): void + public function test_entries_by_version(): void { $versionFilter = $this->faker->randomDigitNotNull(); $excludedVersion = $versionFilter + 1; @@ -611,7 +611,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -632,7 +632,7 @@ class EntryIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animethemeentry.index', $parameters)); @@ -653,7 +653,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -674,7 +674,7 @@ class EntryIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animethemeentry.index', $parameters)); @@ -695,7 +695,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -724,7 +724,7 @@ class EntryIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animethemeentry.index', $parameters)); @@ -745,7 +745,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -773,7 +773,7 @@ class EntryIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_SEQUENCE, $sequenceFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animethemeentry.index', $parameters)); @@ -794,7 +794,7 @@ class EntryIndexTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -815,7 +815,7 @@ class EntryIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_TYPE, $typeFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animethemeentry.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryRestoreTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryRestoreTest.php index 78d4175cb..b2a7473d2 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryRestoreTest.php @@ -22,7 +22,7 @@ class EntryRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $entry = AnimeThemeEntry::factory() ->trashed() @@ -39,7 +39,7 @@ class EntryRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $entry = AnimeThemeEntry::factory() ->trashed() @@ -60,7 +60,7 @@ class EntryRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -80,7 +80,7 @@ class EntryRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $entry = AnimeThemeEntry::factory() ->trashed() diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryShowTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryShowTest.php index c57a0072f..faff17aeb 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryShowTest.php @@ -36,7 +36,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -61,7 +61,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $entry = AnimeThemeEntry::factory() ->trashed() @@ -89,7 +89,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new EntrySchema(); @@ -127,7 +127,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new EntrySchema(); @@ -164,7 +164,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -204,7 +204,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -244,7 +244,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -292,7 +292,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -339,7 +339,7 @@ class EntryShowTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryStoreTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryStoreTest.php index 1440c200f..04f3f3331 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryStoreTest.php @@ -22,7 +22,7 @@ class EntryStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -38,7 +38,7 @@ class EntryStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -58,7 +58,7 @@ class EntryStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(AnimeThemeEntry::class))->createOne(); @@ -76,7 +76,7 @@ class EntryStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryUpdateTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryUpdateTest.php index 9cc52dcbe..81fcb4c03 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/Entry/EntryUpdateTest.php @@ -22,7 +22,7 @@ class EntryUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -40,7 +40,7 @@ class EntryUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -62,7 +62,7 @@ class EntryUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $entry = AnimeThemeEntry::factory() ->trashed() @@ -85,7 +85,7 @@ class EntryUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeDestroyTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeDestroyTest.php index 7d026804f..67e04d519 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeDestroyTest.php @@ -21,7 +21,7 @@ class ThemeDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); @@ -35,7 +35,7 @@ class ThemeDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); @@ -53,7 +53,7 @@ class ThemeDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $theme = AnimeTheme::factory() ->trashed() @@ -74,7 +74,7 @@ class ThemeDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeForceDeleteTest.php index f5289c073..f814a284d 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeForceDeleteTest.php @@ -21,7 +21,7 @@ class ThemeForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); @@ -35,7 +35,7 @@ class ThemeForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); @@ -53,7 +53,7 @@ class ThemeForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeIndexTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeIndexTest.php index 0883b9222..69810c030 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeIndexTest.php @@ -59,7 +59,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { AnimeTheme::factory() ->for(Anime::factory()) @@ -89,7 +89,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { AnimeTheme::factory() ->for(Anime::factory()) @@ -110,7 +110,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ThemeSchema(); @@ -157,7 +157,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ThemeSchema(); @@ -197,7 +197,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ThemeSchema(); @@ -239,7 +239,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -288,7 +288,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -337,7 +337,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -380,7 +380,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -423,7 +423,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -466,7 +466,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -516,7 +516,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testSequenceFilter(): void + public function test_sequence_filter(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -557,7 +557,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testTypeFilter(): void + public function test_type_filter(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -593,7 +593,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -614,7 +614,7 @@ class ThemeIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -635,7 +635,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -656,7 +656,7 @@ class ThemeIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -677,7 +677,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -704,7 +704,7 @@ class ThemeIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -725,7 +725,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -749,7 +749,7 @@ class ThemeIndexTest extends TestCase $query->where(Image::ATTRIBUTE_FACET, $facetFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -770,7 +770,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testEntriesByNsfw(): void + public function test_entries_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -792,7 +792,7 @@ class ThemeIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_NSFW, $nsfwFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -813,7 +813,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testEntriesBySpoiler(): void + public function test_entries_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -835,7 +835,7 @@ class ThemeIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_SPOILER, $spoilerFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -856,7 +856,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testEntriesByVersion(): void + public function test_entries_by_version(): void { $versionFilter = $this->faker->randomDigitNotNull(); $excludedVersion = $versionFilter + 1; @@ -886,7 +886,7 @@ class ThemeIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_VERSION, $versionFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -907,7 +907,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testVideosByLyrics(): void + public function test_videos_by_lyrics(): void { $lyricsFilter = $this->faker->boolean(); @@ -933,7 +933,7 @@ class ThemeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_LYRICS, $lyricsFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -954,7 +954,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testVideosByNc(): void + public function test_videos_by_nc(): void { $ncFilter = $this->faker->boolean(); @@ -980,7 +980,7 @@ class ThemeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_NC, $ncFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -1001,7 +1001,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testVideosByOverlap(): void + public function test_videos_by_overlap(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -1027,7 +1027,7 @@ class ThemeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_OVERLAP, $overlapFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -1048,7 +1048,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testVideosByResolution(): void + public function test_videos_by_resolution(): void { $resolutionFilter = $this->faker->randomNumber(); $excludedResolution = $resolutionFilter + 1; @@ -1082,7 +1082,7 @@ class ThemeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_RESOLUTION, $resolutionFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -1103,7 +1103,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testVideosBySource(): void + public function test_videos_by_source(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -1129,7 +1129,7 @@ class ThemeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_SOURCE, $sourceFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -1150,7 +1150,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testVideosBySubbed(): void + public function test_videos_by_subbed(): void { $subbedFilter = $this->faker->boolean(); @@ -1176,7 +1176,7 @@ class ThemeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_SUBBED, $subbedFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); @@ -1197,7 +1197,7 @@ class ThemeIndexTest extends TestCase * * @return void */ - public function testVideosByUncen(): void + public function test_videos_by_uncen(): void { $uncenFilter = $this->faker->boolean(); @@ -1223,7 +1223,7 @@ class ThemeIndexTest extends TestCase $query->where(Video::ATTRIBUTE_UNCEN, $uncenFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.animetheme.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeRestoreTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeRestoreTest.php index 7f9022548..d5ec78f9f 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeRestoreTest.php @@ -21,7 +21,7 @@ class ThemeRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $theme = AnimeTheme::factory() ->trashed() @@ -38,7 +38,7 @@ class ThemeRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $theme = AnimeTheme::factory() ->trashed() @@ -59,7 +59,7 @@ class ThemeRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); @@ -77,7 +77,7 @@ class ThemeRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $theme = AnimeTheme::factory() ->trashed() diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeShowTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeShowTest.php index f76922399..ded1d12e3 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeShowTest.php @@ -43,7 +43,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -70,7 +70,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $theme = AnimeTheme::factory() ->trashed() @@ -98,7 +98,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ThemeSchema(); @@ -143,7 +143,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ThemeSchema(); @@ -183,7 +183,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -223,7 +223,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -263,7 +263,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -309,7 +309,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -352,7 +352,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testEntriesByNsfw(): void + public function test_entries_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -393,7 +393,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testEntriesBySpoiler(): void + public function test_entries_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -434,7 +434,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testEntriesByVersion(): void + public function test_entries_by_version(): void { $versionFilter = $this->faker->randomDigitNotNull(); $excludedVersion = $versionFilter + 1; @@ -483,7 +483,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testVideosByLyrics(): void + public function test_videos_by_lyrics(): void { $lyricsFilter = $this->faker->boolean(); @@ -528,7 +528,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testVideosByNc(): void + public function test_videos_by_nc(): void { $ncFilter = $this->faker->boolean(); @@ -573,7 +573,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testVideosByOverlap(): void + public function test_videos_by_overlap(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -618,7 +618,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testVideosByResolution(): void + public function test_videos_by_resolution(): void { $resolutionFilter = $this->faker->randomNumber(); $excludedResolution = $resolutionFilter + 1; @@ -671,7 +671,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testVideosBySource(): void + public function test_videos_by_source(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -716,7 +716,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testVideosBySubbed(): void + public function test_videos_by_subbed(): void { $subbedFilter = $this->faker->boolean(); @@ -761,7 +761,7 @@ class ThemeShowTest extends TestCase * * @return void */ - public function testVideosByUncen(): void + public function test_videos_by_uncen(): void { $uncenFilter = $this->faker->boolean(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeStoreTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeStoreTest.php index 989763938..2bde6a05c 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeStoreTest.php @@ -23,7 +23,7 @@ class ThemeStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->makeOne(); @@ -37,7 +37,7 @@ class ThemeStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->makeOne(); @@ -55,7 +55,7 @@ class ThemeStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(AnimeTheme::class))->createOne(); @@ -75,7 +75,7 @@ class ThemeStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $anime = Anime::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeUpdateTest.php b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeUpdateTest.php index 8e1e382cf..8fb14a83a 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/Theme/ThemeUpdateTest.php @@ -23,7 +23,7 @@ class ThemeUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); @@ -44,7 +44,7 @@ class ThemeUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); @@ -69,7 +69,7 @@ class ThemeUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $theme = AnimeTheme::factory() ->trashed() @@ -97,7 +97,7 @@ class ThemeUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $theme = AnimeTheme::factory()->for(Anime::factory())->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Anime/YearIndexTest.php b/tests/Feature/Http/Api/Wiki/Anime/YearIndexTest.php index 173fccd40..598154180 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/YearIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/YearIndexTest.php @@ -20,7 +20,7 @@ class YearIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $anime = Anime::factory() ->count($this->faker->randomDigitNotNull()) diff --git a/tests/Feature/Http/Api/Wiki/Anime/YearShowTest.php b/tests/Feature/Http/Api/Wiki/Anime/YearShowTest.php index b74033364..26a156a70 100644 --- a/tests/Feature/Http/Api/Wiki/Anime/YearShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Anime/YearShowTest.php @@ -30,7 +30,7 @@ class YearShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $year = intval($this->faker->year()); @@ -85,7 +85,7 @@ class YearShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $year = intval($this->faker->year()); @@ -156,7 +156,7 @@ class YearShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $year = intval($this->faker->year()); diff --git a/tests/Feature/Http/Api/Wiki/Artist/ArtistDestroyTest.php b/tests/Feature/Http/Api/Wiki/Artist/ArtistDestroyTest.php index 2afbe6f1d..bd5ecf77b 100644 --- a/tests/Feature/Http/Api/Wiki/Artist/ArtistDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Artist/ArtistDestroyTest.php @@ -20,7 +20,7 @@ class ArtistDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->createOne(); @@ -34,7 +34,7 @@ class ArtistDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->createOne(); @@ -52,7 +52,7 @@ class ArtistDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $artist = Artist::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class ArtistDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $artist = Artist::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Artist/ArtistForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Artist/ArtistForceDeleteTest.php index 545b0eb3b..f4071655c 100644 --- a/tests/Feature/Http/Api/Wiki/Artist/ArtistForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Artist/ArtistForceDeleteTest.php @@ -20,7 +20,7 @@ class ArtistForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->createOne(); @@ -34,7 +34,7 @@ class ArtistForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->createOne(); @@ -52,7 +52,7 @@ class ArtistForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $artist = Artist::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Artist/ArtistIndexTest.php b/tests/Feature/Http/Api/Wiki/Artist/ArtistIndexTest.php index 036a4a5d9..dd7ac5db7 100644 --- a/tests/Feature/Http/Api/Wiki/Artist/ArtistIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Artist/ArtistIndexTest.php @@ -57,7 +57,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $artists = Artist::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -80,7 +80,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Artist::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -98,7 +98,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistSchema(); @@ -137,7 +137,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistSchema(); @@ -172,7 +172,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ArtistSchema(); @@ -211,7 +211,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -254,7 +254,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -297,7 +297,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -333,7 +333,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -369,7 +369,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -405,7 +405,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -449,7 +449,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -483,7 +483,7 @@ class ArtistIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_SEQUENCE, $sequenceFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.artist.index', $parameters)); @@ -504,7 +504,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -533,7 +533,7 @@ class ArtistIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_TYPE, $typeFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.artist.index', $parameters)); @@ -554,7 +554,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -583,7 +583,7 @@ class ArtistIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.artist.index', $parameters)); @@ -604,7 +604,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -633,7 +633,7 @@ class ArtistIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.artist.index', $parameters)); @@ -654,7 +654,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -689,7 +689,7 @@ class ArtistIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.artist.index', $parameters)); @@ -710,7 +710,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -731,7 +731,7 @@ class ArtistIndexTest extends TestCase $query->where(ExternalResource::ATTRIBUTE_SITE, $siteFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.artist.index', $parameters)); @@ -752,7 +752,7 @@ class ArtistIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -773,7 +773,7 @@ class ArtistIndexTest extends TestCase $query->where(Image::ATTRIBUTE_FACET, $facetFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.artist.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Artist/ArtistRestoreTest.php b/tests/Feature/Http/Api/Wiki/Artist/ArtistRestoreTest.php index 95232a183..e20118392 100644 --- a/tests/Feature/Http/Api/Wiki/Artist/ArtistRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Artist/ArtistRestoreTest.php @@ -20,7 +20,7 @@ class ArtistRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class ArtistRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class ArtistRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $artist = Artist::factory()->createOne(); @@ -70,7 +70,7 @@ class ArtistRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $artist = Artist::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Artist/ArtistShowTest.php b/tests/Feature/Http/Api/Wiki/Artist/ArtistShowTest.php index 84c894f4c..be1412d7a 100644 --- a/tests/Feature/Http/Api/Wiki/Artist/ArtistShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Artist/ArtistShowTest.php @@ -43,7 +43,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $artist = Artist::factory()->create(); @@ -66,7 +66,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $artist = Artist::factory()->trashed()->createOne(); @@ -91,7 +91,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ArtistSchema(); @@ -126,7 +126,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ArtistSchema(); @@ -161,7 +161,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -214,7 +214,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -262,7 +262,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -310,7 +310,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -358,7 +358,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -412,7 +412,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -452,7 +452,7 @@ class ArtistShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); diff --git a/tests/Feature/Http/Api/Wiki/Artist/ArtistStoreTest.php b/tests/Feature/Http/Api/Wiki/Artist/ArtistStoreTest.php index e53e0a8f1..f774ce466 100644 --- a/tests/Feature/Http/Api/Wiki/Artist/ArtistStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Artist/ArtistStoreTest.php @@ -20,7 +20,7 @@ class ArtistStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->makeOne(); @@ -34,7 +34,7 @@ class ArtistStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->makeOne(); @@ -52,7 +52,7 @@ class ArtistStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Artist::class))->createOne(); @@ -71,7 +71,7 @@ class ArtistStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Artist::factory()->raw(); diff --git a/tests/Feature/Http/Api/Wiki/Artist/ArtistUpdateTest.php b/tests/Feature/Http/Api/Wiki/Artist/ArtistUpdateTest.php index 5fe2b32ea..6e58e812b 100644 --- a/tests/Feature/Http/Api/Wiki/Artist/ArtistUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Artist/ArtistUpdateTest.php @@ -20,7 +20,7 @@ class ArtistUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $artist = Artist::factory()->createOne(); @@ -36,7 +36,7 @@ class ArtistUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $artist = Artist::factory()->createOne(); @@ -56,7 +56,7 @@ class ArtistUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $artist = Artist::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class ArtistUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $artist = Artist::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Audio/AudioDestroyTest.php b/tests/Feature/Http/Api/Wiki/Audio/AudioDestroyTest.php index 0c6cf300d..704ef35ff 100644 --- a/tests/Feature/Http/Api/Wiki/Audio/AudioDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Audio/AudioDestroyTest.php @@ -20,7 +20,7 @@ class AudioDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $audio = Audio::factory()->createOne(); @@ -34,7 +34,7 @@ class AudioDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $audio = Audio::factory()->createOne(); @@ -52,7 +52,7 @@ class AudioDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $audio = Audio::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class AudioDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $audio = Audio::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Audio/AudioForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Audio/AudioForceDeleteTest.php index b1b267176..36c87460c 100644 --- a/tests/Feature/Http/Api/Wiki/Audio/AudioForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Audio/AudioForceDeleteTest.php @@ -20,7 +20,7 @@ class AudioForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $audio = Audio::factory()->createOne(); @@ -34,7 +34,7 @@ class AudioForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $audio = Audio::factory()->createOne(); @@ -52,7 +52,7 @@ class AudioForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $audio = Audio::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Audio/AudioIndexTest.php b/tests/Feature/Http/Api/Wiki/Audio/AudioIndexTest.php index 16ad27bf2..098c6c6b5 100644 --- a/tests/Feature/Http/Api/Wiki/Audio/AudioIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Audio/AudioIndexTest.php @@ -44,7 +44,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $audios = Audio::factory() ->count($this->faker->randomDigitNotNull()) @@ -69,7 +69,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Audio::factory() ->count($this->faker->randomDigitNotNull()) @@ -89,7 +89,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AudioSchema(); @@ -129,7 +129,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AudioSchema(); @@ -166,7 +166,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new AudioSchema(); @@ -207,7 +207,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -250,7 +250,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -293,7 +293,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -329,7 +329,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -365,7 +365,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -401,7 +401,7 @@ class AudioIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); diff --git a/tests/Feature/Http/Api/Wiki/Audio/AudioRestoreTest.php b/tests/Feature/Http/Api/Wiki/Audio/AudioRestoreTest.php index b21f0b8ad..1c349a8b2 100644 --- a/tests/Feature/Http/Api/Wiki/Audio/AudioRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Audio/AudioRestoreTest.php @@ -20,7 +20,7 @@ class AudioRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $audio = Audio::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class AudioRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $audio = Audio::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class AudioRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $audio = Audio::factory()->createOne(); @@ -70,7 +70,7 @@ class AudioRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $audio = Audio::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Audio/AudioShowTest.php b/tests/Feature/Http/Api/Wiki/Audio/AudioShowTest.php index 315c915fc..6ff279028 100644 --- a/tests/Feature/Http/Api/Wiki/Audio/AudioShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Audio/AudioShowTest.php @@ -28,7 +28,7 @@ class AudioShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $audio = Audio::factory()->create(); @@ -51,7 +51,7 @@ class AudioShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $audio = Audio::factory()->trashed()->createOne(); @@ -74,7 +74,7 @@ class AudioShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new AudioSchema(); @@ -111,7 +111,7 @@ class AudioShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new AudioSchema(); diff --git a/tests/Feature/Http/Api/Wiki/Audio/AudioStoreTest.php b/tests/Feature/Http/Api/Wiki/Audio/AudioStoreTest.php index 62034f85e..bbeb62014 100644 --- a/tests/Feature/Http/Api/Wiki/Audio/AudioStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Audio/AudioStoreTest.php @@ -20,7 +20,7 @@ class AudioStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $audio = Audio::factory()->makeOne(); @@ -34,7 +34,7 @@ class AudioStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $audio = Audio::factory()->makeOne(); @@ -52,7 +52,7 @@ class AudioStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Audio::class))->createOne(); @@ -74,7 +74,7 @@ class AudioStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Audio::factory()->raw(); diff --git a/tests/Feature/Http/Api/Wiki/Audio/AudioUpdateTest.php b/tests/Feature/Http/Api/Wiki/Audio/AudioUpdateTest.php index aac6668ea..5a3f83b9c 100644 --- a/tests/Feature/Http/Api/Wiki/Audio/AudioUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Audio/AudioUpdateTest.php @@ -20,7 +20,7 @@ class AudioUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $audio = Audio::factory()->createOne(); @@ -36,7 +36,7 @@ class AudioUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $audio = Audio::factory()->createOne(); @@ -56,7 +56,7 @@ class AudioUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $audio = Audio::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class AudioUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $audio = Audio::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceDestroyTest.php b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceDestroyTest.php index 26133c635..6fa6e3e5a 100644 --- a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceDestroyTest.php @@ -20,7 +20,7 @@ class ExternalResourceDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $resource = ExternalResource::factory()->createOne(); @@ -34,7 +34,7 @@ class ExternalResourceDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $resource = ExternalResource::factory()->createOne(); @@ -52,7 +52,7 @@ class ExternalResourceDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $resource = ExternalResource::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class ExternalResourceDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceForceDeleteTest.php index e85dfdb57..1a62db835 100644 --- a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceForceDeleteTest.php @@ -20,7 +20,7 @@ class ExternalResourceForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $resource = ExternalResource::factory()->createOne(); @@ -34,7 +34,7 @@ class ExternalResourceForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $resource = ExternalResource::factory()->createOne(); @@ -52,7 +52,7 @@ class ExternalResourceForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceIndexTest.php b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceIndexTest.php index a94482817..86fed099f 100644 --- a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceIndexTest.php @@ -49,7 +49,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $resources = ExternalResource::factory() ->count($this->faker->randomDigitNotNull()) @@ -74,7 +74,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { ExternalResource::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -92,7 +92,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ExternalResourceSchema(); @@ -133,7 +133,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ExternalResourceSchema(); @@ -170,7 +170,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ExternalResourceSchema(); @@ -209,7 +209,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -252,7 +252,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -295,7 +295,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -331,7 +331,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -367,7 +367,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -403,7 +403,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -447,7 +447,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testSiteFilter(): void + public function test_site_filter(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -482,7 +482,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -503,7 +503,7 @@ class ExternalResourceIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.resource.index', $parameters)); @@ -524,7 +524,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -545,7 +545,7 @@ class ExternalResourceIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.resource.index', $parameters)); @@ -566,7 +566,7 @@ class ExternalResourceIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -581,10 +581,10 @@ class ExternalResourceIndexTest extends TestCase ExternalResource::factory() ->has( Anime::factory() - ->count($this->faker->randomDigitNotNull()) - ->state([ - Anime::ATTRIBUTE_YEAR => $this->faker->boolean() ? $yearFilter : $excludedYear, - ]) + ->count($this->faker->randomDigitNotNull()) + ->state([ + Anime::ATTRIBUTE_YEAR => $this->faker->boolean() ? $yearFilter : $excludedYear, + ]) ) ->count($this->faker->randomDigitNotNull()) ->create(); @@ -594,7 +594,7 @@ class ExternalResourceIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.resource.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceRestoreTest.php b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceRestoreTest.php index 03e7edde3..2bbe69b80 100644 --- a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceRestoreTest.php @@ -20,7 +20,7 @@ class ExternalResourceRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $resource = ExternalResource::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class ExternalResourceRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $resource = ExternalResource::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class ExternalResourceRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $resource = ExternalResource::factory()->createOne(); @@ -70,7 +70,7 @@ class ExternalResourceRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $resource = ExternalResource::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceShowTest.php b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceShowTest.php index 39a28fea7..70375e35c 100644 --- a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceShowTest.php +++ b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceShowTest.php @@ -34,7 +34,7 @@ class ExternalResourceShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $resource = ExternalResource::factory()->create(); @@ -57,7 +57,7 @@ class ExternalResourceShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $resource = ExternalResource::factory()->trashed()->createOne(); @@ -82,7 +82,7 @@ class ExternalResourceShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ExternalResourceSchema(); @@ -120,7 +120,7 @@ class ExternalResourceShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ExternalResourceSchema(); @@ -155,7 +155,7 @@ class ExternalResourceShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -195,7 +195,7 @@ class ExternalResourceShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -235,7 +235,7 @@ class ExternalResourceShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -250,10 +250,10 @@ class ExternalResourceShowTest extends TestCase $resource = ExternalResource::factory() ->has( Anime::factory() - ->count($this->faker->randomDigitNotNull()) - ->state([ - Anime::ATTRIBUTE_YEAR => $this->faker->boolean() ? $yearFilter : $excludedYear, - ]) + ->count($this->faker->randomDigitNotNull()) + ->state([ + Anime::ATTRIBUTE_YEAR => $this->faker->boolean() ? $yearFilter : $excludedYear, + ]) ) ->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceStoreTest.php b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceStoreTest.php index 7d1545a2a..c83350c68 100644 --- a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceStoreTest.php @@ -21,7 +21,7 @@ class ExternalResourceStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $resource = ExternalResource::factory()->makeOne(); @@ -35,7 +35,7 @@ class ExternalResourceStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $resource = ExternalResource::factory()->makeOne(); @@ -53,7 +53,7 @@ class ExternalResourceStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(ExternalResource::class))->createOne(); @@ -72,7 +72,7 @@ class ExternalResourceStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = array_merge( ExternalResource::factory()->raw(), diff --git a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceUpdateTest.php b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceUpdateTest.php index 4fcf32cb5..85f2eb39c 100644 --- a/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/ExternalResource/ExternalResourceUpdateTest.php @@ -21,7 +21,7 @@ class ExternalResourceUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $resource = ExternalResource::factory()->createOne(); @@ -40,7 +40,7 @@ class ExternalResourceUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $resource = ExternalResource::factory()->createOne(); @@ -63,7 +63,7 @@ class ExternalResourceUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $resource = ExternalResource::factory() ->trashed() @@ -90,7 +90,7 @@ class ExternalResourceUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $resource = ExternalResource::factory()->createOne([ ExternalResource::ATTRIBUTE_SITE => ResourceSite::OFFICIAL_SITE, diff --git a/tests/Feature/Http/Api/Wiki/Group/GroupDestroyTest.php b/tests/Feature/Http/Api/Wiki/Group/GroupDestroyTest.php index 352711a27..81ce12d76 100644 --- a/tests/Feature/Http/Api/Wiki/Group/GroupDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Group/GroupDestroyTest.php @@ -20,7 +20,7 @@ class GroupDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $group = Group::factory()->createOne(); @@ -34,7 +34,7 @@ class GroupDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $group = Group::factory()->createOne(); @@ -52,7 +52,7 @@ class GroupDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $group = Group::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class GroupDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $group = Group::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Group/GroupForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Group/GroupForceDeleteTest.php index 19c81f34c..6dd12a5dd 100644 --- a/tests/Feature/Http/Api/Wiki/Group/GroupForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Group/GroupForceDeleteTest.php @@ -20,7 +20,7 @@ class GroupForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $group = Group::factory()->createOne(); @@ -34,7 +34,7 @@ class GroupForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $group = Group::factory()->createOne(); @@ -52,7 +52,7 @@ class GroupForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $group = Group::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Group/GroupIndexTest.php b/tests/Feature/Http/Api/Wiki/Group/GroupIndexTest.php index da4ec053b..8d0cd529b 100644 --- a/tests/Feature/Http/Api/Wiki/Group/GroupIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Group/GroupIndexTest.php @@ -51,7 +51,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $groups = Group::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -74,7 +74,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Group::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -92,7 +92,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new GroupSchema(); @@ -132,7 +132,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new GroupSchema(); @@ -167,7 +167,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new GroupSchema(); @@ -206,7 +206,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -249,7 +249,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -292,7 +292,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -328,7 +328,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -364,7 +364,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -400,7 +400,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -444,7 +444,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -474,7 +474,7 @@ class GroupIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_SEQUENCE, $sequenceFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.group.index', $parameters)); @@ -495,7 +495,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -516,7 +516,7 @@ class GroupIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_TYPE, $typeFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.group.index', $parameters)); @@ -537,7 +537,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -558,7 +558,7 @@ class GroupIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.group.index', $parameters)); @@ -579,7 +579,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -600,7 +600,7 @@ class GroupIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.group.index', $parameters)); @@ -621,7 +621,7 @@ class GroupIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -652,7 +652,7 @@ class GroupIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.group.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Group/GroupRestoreTest.php b/tests/Feature/Http/Api/Wiki/Group/GroupRestoreTest.php index baeb8b8be..2e6346605 100644 --- a/tests/Feature/Http/Api/Wiki/Group/GroupRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Group/GroupRestoreTest.php @@ -20,7 +20,7 @@ class GroupRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $group = Group::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class GroupRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $group = Group::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class GroupRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $group = Group::factory()->createOne(); @@ -70,7 +70,7 @@ class GroupRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $group = Group::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Group/GroupShowTest.php b/tests/Feature/Http/Api/Wiki/Group/GroupShowTest.php index da015968f..1b117f28a 100644 --- a/tests/Feature/Http/Api/Wiki/Group/GroupShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Group/GroupShowTest.php @@ -37,7 +37,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $group = Group::factory()->create(); @@ -60,7 +60,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $group = Group::factory()->trashed()->createOne(); @@ -85,7 +85,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new GroupSchema(); @@ -122,7 +122,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new GroupSchema(); @@ -157,7 +157,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -206,7 +206,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -246,7 +246,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -286,7 +286,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -326,7 +326,7 @@ class GroupShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Wiki/Group/GroupStoreTest.php b/tests/Feature/Http/Api/Wiki/Group/GroupStoreTest.php index 46d12c1ae..fb14b205d 100644 --- a/tests/Feature/Http/Api/Wiki/Group/GroupStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Group/GroupStoreTest.php @@ -20,7 +20,7 @@ class GroupStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $group = Group::factory()->makeOne(); @@ -34,7 +34,7 @@ class GroupStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $group = Group::factory()->makeOne(); @@ -52,7 +52,7 @@ class GroupStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Group::factory()->raw(); diff --git a/tests/Feature/Http/Api/Wiki/Group/GroupUpdateTest.php b/tests/Feature/Http/Api/Wiki/Group/GroupUpdateTest.php index be09aaf80..f8f268ee2 100644 --- a/tests/Feature/Http/Api/Wiki/Group/GroupUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Group/GroupUpdateTest.php @@ -20,7 +20,7 @@ class GroupUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $group = Group::factory()->createOne(); @@ -36,7 +36,7 @@ class GroupUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $group = Group::factory()->createOne(); @@ -56,7 +56,7 @@ class GroupUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $group = Group::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class GroupUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $group = Group::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Image/ImageDestroyTest.php b/tests/Feature/Http/Api/Wiki/Image/ImageDestroyTest.php index e9f056365..e7220e347 100644 --- a/tests/Feature/Http/Api/Wiki/Image/ImageDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Image/ImageDestroyTest.php @@ -20,7 +20,7 @@ class ImageDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $image = Image::factory()->createOne(); @@ -34,7 +34,7 @@ class ImageDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $image = Image::factory()->createOne(); @@ -52,7 +52,7 @@ class ImageDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $image = Image::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class ImageDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $image = Image::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Image/ImageForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Image/ImageForceDeleteTest.php index 58607e5e9..380720bc4 100644 --- a/tests/Feature/Http/Api/Wiki/Image/ImageForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Image/ImageForceDeleteTest.php @@ -20,7 +20,7 @@ class ImageForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $image = Image::factory()->createOne(); @@ -34,7 +34,7 @@ class ImageForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $image = Image::factory()->createOne(); @@ -52,7 +52,7 @@ class ImageForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $image = Image::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Image/ImageIndexTest.php b/tests/Feature/Http/Api/Wiki/Image/ImageIndexTest.php index 75faf81a1..86c08c785 100644 --- a/tests/Feature/Http/Api/Wiki/Image/ImageIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Image/ImageIndexTest.php @@ -49,7 +49,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $images = Image::factory() ->count($this->faker->randomDigitNotNull()) @@ -74,7 +74,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Image::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -92,7 +92,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ImageSchema(); @@ -133,7 +133,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ImageSchema(); @@ -170,7 +170,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ImageSchema(); @@ -209,7 +209,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -252,7 +252,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -295,7 +295,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -331,7 +331,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -367,7 +367,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -403,7 +403,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -447,7 +447,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testFacetFilter(): void + public function test_facet_filter(): void { $facetFilter = Arr::random(ImageFacet::cases()); @@ -482,7 +482,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -503,7 +503,7 @@ class ImageIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.image.index', $parameters)); @@ -524,7 +524,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -545,7 +545,7 @@ class ImageIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.image.index', $parameters)); @@ -566,7 +566,7 @@ class ImageIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -581,10 +581,10 @@ class ImageIndexTest extends TestCase Image::factory() ->has( Anime::factory() - ->count($this->faker->randomDigitNotNull()) - ->state([ - Anime::ATTRIBUTE_YEAR => $this->faker->boolean() ? $yearFilter : $excludedYear, - ]) + ->count($this->faker->randomDigitNotNull()) + ->state([ + Anime::ATTRIBUTE_YEAR => $this->faker->boolean() ? $yearFilter : $excludedYear, + ]) ) ->count($this->faker->randomDigitNotNull()) ->create(); @@ -594,7 +594,7 @@ class ImageIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.image.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Image/ImageRestoreTest.php b/tests/Feature/Http/Api/Wiki/Image/ImageRestoreTest.php index 60f21d185..418e7c7b6 100644 --- a/tests/Feature/Http/Api/Wiki/Image/ImageRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Image/ImageRestoreTest.php @@ -20,7 +20,7 @@ class ImageRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $image = Image::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class ImageRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $image = Image::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class ImageRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $image = Image::factory()->createOne(); @@ -70,7 +70,7 @@ class ImageRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $image = Image::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Image/ImageShowTest.php b/tests/Feature/Http/Api/Wiki/Image/ImageShowTest.php index 98860b2a8..897762726 100644 --- a/tests/Feature/Http/Api/Wiki/Image/ImageShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Image/ImageShowTest.php @@ -34,7 +34,7 @@ class ImageShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $image = Image::factory()->create(); @@ -57,7 +57,7 @@ class ImageShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $image = Image::factory()->trashed()->createOne(); @@ -82,7 +82,7 @@ class ImageShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ImageSchema(); @@ -120,7 +120,7 @@ class ImageShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ImageSchema(); @@ -155,7 +155,7 @@ class ImageShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -195,7 +195,7 @@ class ImageShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -235,7 +235,7 @@ class ImageShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -250,10 +250,10 @@ class ImageShowTest extends TestCase $image = Image::factory() ->has( Anime::factory() - ->count($this->faker->randomDigitNotNull()) - ->state([ - Anime::ATTRIBUTE_YEAR => $this->faker->boolean() ? $yearFilter : $excludedYear, - ]) + ->count($this->faker->randomDigitNotNull()) + ->state([ + Anime::ATTRIBUTE_YEAR => $this->faker->boolean() ? $yearFilter : $excludedYear, + ]) ) ->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Image/ImageStoreTest.php b/tests/Feature/Http/Api/Wiki/Image/ImageStoreTest.php index 3bde8b6e3..cdd9434b4 100644 --- a/tests/Feature/Http/Api/Wiki/Image/ImageStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Image/ImageStoreTest.php @@ -29,7 +29,7 @@ class ImageStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $image = Image::factory()->makeOne(); @@ -43,7 +43,7 @@ class ImageStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $image = Image::factory()->makeOne(); @@ -61,7 +61,7 @@ class ImageStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Image::class))->createOne(); @@ -79,7 +79,7 @@ class ImageStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $fs = Storage::fake(Config::get('image.disk')); diff --git a/tests/Feature/Http/Api/Wiki/Image/ImageUpdateTest.php b/tests/Feature/Http/Api/Wiki/Image/ImageUpdateTest.php index 5b4ed80c3..5e6a355ca 100644 --- a/tests/Feature/Http/Api/Wiki/Image/ImageUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Image/ImageUpdateTest.php @@ -22,7 +22,7 @@ class ImageUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $image = Image::factory()->createOne(); @@ -43,7 +43,7 @@ class ImageUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $image = Image::factory()->createOne(); @@ -68,7 +68,7 @@ class ImageUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $image = Image::factory()->trashed()->createOne(); @@ -93,7 +93,7 @@ class ImageUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $image = Image::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Series/SeriesDestroyTest.php b/tests/Feature/Http/Api/Wiki/Series/SeriesDestroyTest.php index f37ef1db0..cb053f2ae 100644 --- a/tests/Feature/Http/Api/Wiki/Series/SeriesDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Series/SeriesDestroyTest.php @@ -20,7 +20,7 @@ class SeriesDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $series = Series::factory()->createOne(); @@ -34,7 +34,7 @@ class SeriesDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $series = Series::factory()->createOne(); @@ -52,7 +52,7 @@ class SeriesDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $series = Series::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class SeriesDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $series = Series::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Series/SeriesForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Series/SeriesForceDeleteTest.php index dccc542d2..0572be586 100644 --- a/tests/Feature/Http/Api/Wiki/Series/SeriesForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Series/SeriesForceDeleteTest.php @@ -20,7 +20,7 @@ class SeriesForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $series = Series::factory()->createOne(); @@ -34,7 +34,7 @@ class SeriesForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $series = Series::factory()->createOne(); @@ -52,7 +52,7 @@ class SeriesForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $series = Series::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Series/SeriesIndexTest.php b/tests/Feature/Http/Api/Wiki/Series/SeriesIndexTest.php index 64462df0a..47cc8d325 100644 --- a/tests/Feature/Http/Api/Wiki/Series/SeriesIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Series/SeriesIndexTest.php @@ -48,7 +48,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $series = Series::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -71,7 +71,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Series::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -89,7 +89,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new SeriesSchema(); @@ -129,7 +129,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new SeriesSchema(); @@ -164,7 +164,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new SeriesSchema(); @@ -203,7 +203,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -246,7 +246,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -289,7 +289,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -325,7 +325,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -361,7 +361,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -397,7 +397,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -441,7 +441,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -462,7 +462,7 @@ class SeriesIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.series.index', $parameters)); @@ -483,7 +483,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -504,7 +504,7 @@ class SeriesIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.series.index', $parameters)); @@ -525,7 +525,7 @@ class SeriesIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = $this->faker->numberBetween(2000, 2002); @@ -554,7 +554,7 @@ class SeriesIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.series.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Series/SeriesRestoreTest.php b/tests/Feature/Http/Api/Wiki/Series/SeriesRestoreTest.php index 4a58b820a..aa083a44d 100644 --- a/tests/Feature/Http/Api/Wiki/Series/SeriesRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Series/SeriesRestoreTest.php @@ -20,7 +20,7 @@ class SeriesRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $series = Series::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class SeriesRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $series = Series::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class SeriesRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $series = Series::factory()->createOne(); @@ -70,7 +70,7 @@ class SeriesRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $series = Series::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Series/SeriesShowTest.php b/tests/Feature/Http/Api/Wiki/Series/SeriesShowTest.php index 917595078..eeb3db735 100644 --- a/tests/Feature/Http/Api/Wiki/Series/SeriesShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Series/SeriesShowTest.php @@ -34,7 +34,7 @@ class SeriesShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $series = Series::factory()->create(); @@ -57,7 +57,7 @@ class SeriesShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $series = Series::factory()->trashed()->createOne(); @@ -82,7 +82,7 @@ class SeriesShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new SeriesSchema(); @@ -119,7 +119,7 @@ class SeriesShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new SeriesSchema(); @@ -154,7 +154,7 @@ class SeriesShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -194,7 +194,7 @@ class SeriesShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -234,7 +234,7 @@ class SeriesShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = $this->faker->numberBetween(2000, 2002); diff --git a/tests/Feature/Http/Api/Wiki/Series/SeriesStoreTest.php b/tests/Feature/Http/Api/Wiki/Series/SeriesStoreTest.php index 4dfad7a5b..526946485 100644 --- a/tests/Feature/Http/Api/Wiki/Series/SeriesStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Series/SeriesStoreTest.php @@ -20,7 +20,7 @@ class SeriesStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $series = Series::factory()->makeOne(); @@ -34,7 +34,7 @@ class SeriesStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $series = Series::factory()->makeOne(); @@ -52,7 +52,7 @@ class SeriesStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Series::class))->createOne(); @@ -71,7 +71,7 @@ class SeriesStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Series::factory()->raw(); diff --git a/tests/Feature/Http/Api/Wiki/Series/SeriesUpdateTest.php b/tests/Feature/Http/Api/Wiki/Series/SeriesUpdateTest.php index c0c3572ef..0ea6f7b40 100644 --- a/tests/Feature/Http/Api/Wiki/Series/SeriesUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Series/SeriesUpdateTest.php @@ -20,7 +20,7 @@ class SeriesUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $series = Series::factory()->createOne(); @@ -36,7 +36,7 @@ class SeriesUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $series = Series::factory()->createOne(); @@ -56,7 +56,7 @@ class SeriesUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $series = Series::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class SeriesUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $series = Series::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Song/SongDestroyTest.php b/tests/Feature/Http/Api/Wiki/Song/SongDestroyTest.php index 15daaee6b..642be7fe6 100644 --- a/tests/Feature/Http/Api/Wiki/Song/SongDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Song/SongDestroyTest.php @@ -20,7 +20,7 @@ class SongDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $song = Song::factory()->createOne(); @@ -34,7 +34,7 @@ class SongDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $song = Song::factory()->createOne(); @@ -52,7 +52,7 @@ class SongDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $song = Song::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class SongDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $song = Song::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Song/SongForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Song/SongForceDeleteTest.php index f5c2e982b..4608d0ec4 100644 --- a/tests/Feature/Http/Api/Wiki/Song/SongForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Song/SongForceDeleteTest.php @@ -20,7 +20,7 @@ class SongForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $song = Song::factory()->createOne(); @@ -34,7 +34,7 @@ class SongForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $song = Song::factory()->createOne(); @@ -52,7 +52,7 @@ class SongForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $song = Song::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Song/SongIndexTest.php b/tests/Feature/Http/Api/Wiki/Song/SongIndexTest.php index edcd4d629..5e09bb11f 100644 --- a/tests/Feature/Http/Api/Wiki/Song/SongIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Song/SongIndexTest.php @@ -52,7 +52,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $songs = Song::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -75,7 +75,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Song::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -93,7 +93,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new SongSchema(); @@ -134,7 +134,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new SongSchema(); @@ -169,7 +169,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new SongSchema(); @@ -208,7 +208,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -251,7 +251,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -294,7 +294,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -330,7 +330,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -366,7 +366,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -402,7 +402,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -446,7 +446,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -476,7 +476,7 @@ class SongIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_SEQUENCE, $sequenceFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.song.index', $parameters)); @@ -497,7 +497,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -518,7 +518,7 @@ class SongIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_TYPE, $typeFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.song.index', $parameters)); @@ -539,7 +539,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -560,7 +560,7 @@ class SongIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.song.index', $parameters)); @@ -581,7 +581,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -602,7 +602,7 @@ class SongIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.song.index', $parameters)); @@ -623,7 +623,7 @@ class SongIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -654,7 +654,7 @@ class SongIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.song.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Song/SongRestoreTest.php b/tests/Feature/Http/Api/Wiki/Song/SongRestoreTest.php index f0db134e6..b711ff0e3 100644 --- a/tests/Feature/Http/Api/Wiki/Song/SongRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Song/SongRestoreTest.php @@ -20,7 +20,7 @@ class SongRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $song = Song::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class SongRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $song = Song::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class SongRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $song = Song::factory()->createOne(); @@ -70,7 +70,7 @@ class SongRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $song = Song::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Song/SongShowTest.php b/tests/Feature/Http/Api/Wiki/Song/SongShowTest.php index dc4c61930..bd4fd4087 100644 --- a/tests/Feature/Http/Api/Wiki/Song/SongShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Song/SongShowTest.php @@ -38,7 +38,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $song = Song::factory()->create(); @@ -61,7 +61,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $song = Song::factory()->trashed()->createOne(); @@ -86,7 +86,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new SongSchema(); @@ -124,7 +124,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new SongSchema(); @@ -159,7 +159,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -208,7 +208,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -248,7 +248,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -288,7 +288,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -328,7 +328,7 @@ class SongShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Wiki/Song/SongStoreTest.php b/tests/Feature/Http/Api/Wiki/Song/SongStoreTest.php index 956411b92..2010b6a9e 100644 --- a/tests/Feature/Http/Api/Wiki/Song/SongStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Song/SongStoreTest.php @@ -20,7 +20,7 @@ class SongStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $song = Song::factory()->makeOne(); @@ -34,7 +34,7 @@ class SongStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $song = Song::factory()->makeOne(); @@ -52,7 +52,7 @@ class SongStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Song::factory()->raw(); diff --git a/tests/Feature/Http/Api/Wiki/Song/SongUpdateTest.php b/tests/Feature/Http/Api/Wiki/Song/SongUpdateTest.php index d84e3f738..fe23ded2f 100644 --- a/tests/Feature/Http/Api/Wiki/Song/SongUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Song/SongUpdateTest.php @@ -20,7 +20,7 @@ class SongUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $song = Song::factory()->createOne(); @@ -36,7 +36,7 @@ class SongUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $song = Song::factory()->createOne(); @@ -56,7 +56,7 @@ class SongUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $song = Song::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class SongUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $song = Song::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Studio/StudioDestroyTest.php b/tests/Feature/Http/Api/Wiki/Studio/StudioDestroyTest.php index 79039b51e..b7cfe7583 100644 --- a/tests/Feature/Http/Api/Wiki/Studio/StudioDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Studio/StudioDestroyTest.php @@ -20,7 +20,7 @@ class StudioDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studio = Studio::factory()->createOne(); @@ -34,7 +34,7 @@ class StudioDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studio = Studio::factory()->createOne(); @@ -52,7 +52,7 @@ class StudioDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $studio = Studio::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class StudioDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $studio = Studio::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Studio/StudioForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Studio/StudioForceDeleteTest.php index 5b6d90d78..0dcaf0874 100644 --- a/tests/Feature/Http/Api/Wiki/Studio/StudioForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Studio/StudioForceDeleteTest.php @@ -20,7 +20,7 @@ class StudioForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studio = Studio::factory()->createOne(); @@ -34,7 +34,7 @@ class StudioForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studio = Studio::factory()->createOne(); @@ -52,7 +52,7 @@ class StudioForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $studio = Studio::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Studio/StudioIndexTest.php b/tests/Feature/Http/Api/Wiki/Studio/StudioIndexTest.php index 1e8ec9e44..804f8394f 100644 --- a/tests/Feature/Http/Api/Wiki/Studio/StudioIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Studio/StudioIndexTest.php @@ -52,7 +52,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $studio = Studio::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -75,7 +75,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Studio::factory()->count($this->faker->randomDigitNotNull())->create(); @@ -93,7 +93,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new StudioSchema(); @@ -133,7 +133,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new StudioSchema(); @@ -168,7 +168,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new StudioSchema(); @@ -207,7 +207,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -250,7 +250,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -293,7 +293,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -329,7 +329,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -365,7 +365,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -401,7 +401,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -445,7 +445,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -466,7 +466,7 @@ class StudioIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.studio.index', $parameters)); @@ -487,7 +487,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -508,7 +508,7 @@ class StudioIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.studio.index', $parameters)); @@ -529,7 +529,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = $this->faker->numberBetween(2000, 2002); @@ -558,7 +558,7 @@ class StudioIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.studio.index', $parameters)); @@ -579,7 +579,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -621,7 +621,7 @@ class StudioIndexTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); diff --git a/tests/Feature/Http/Api/Wiki/Studio/StudioRestoreTest.php b/tests/Feature/Http/Api/Wiki/Studio/StudioRestoreTest.php index eec3b1b28..949dbd3f1 100644 --- a/tests/Feature/Http/Api/Wiki/Studio/StudioRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Studio/StudioRestoreTest.php @@ -20,7 +20,7 @@ class StudioRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studio = Studio::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class StudioRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studio = Studio::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class StudioRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $studio = Studio::factory()->createOne(); @@ -70,7 +70,7 @@ class StudioRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $studio = Studio::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Studio/StudioShowTest.php b/tests/Feature/Http/Api/Wiki/Studio/StudioShowTest.php index 133fb2908..28595ce37 100644 --- a/tests/Feature/Http/Api/Wiki/Studio/StudioShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Studio/StudioShowTest.php @@ -38,7 +38,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $studio = Studio::factory()->create(); @@ -61,7 +61,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $studio = Studio::factory()->trashed()->createOne(); @@ -86,7 +86,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new StudioSchema(); @@ -123,7 +123,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new StudioSchema(); @@ -158,7 +158,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -198,7 +198,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -238,7 +238,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = $this->faker->numberBetween(2000, 2002); @@ -286,7 +286,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testResourcesBySite(): void + public function test_resources_by_site(): void { $siteFilter = Arr::random(ResourceSite::cases()); @@ -326,7 +326,7 @@ class StudioShowTest extends TestCase * * @return void */ - public function testImagesByFacet(): void + public function test_images_by_facet(): void { $facetFilter = Arr::random(ImageFacet::cases()); diff --git a/tests/Feature/Http/Api/Wiki/Studio/StudioStoreTest.php b/tests/Feature/Http/Api/Wiki/Studio/StudioStoreTest.php index 1c91170a9..14e361fa2 100644 --- a/tests/Feature/Http/Api/Wiki/Studio/StudioStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Studio/StudioStoreTest.php @@ -20,7 +20,7 @@ class StudioStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studio = Studio::factory()->makeOne(); @@ -34,7 +34,7 @@ class StudioStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studio = Studio::factory()->makeOne(); @@ -52,7 +52,7 @@ class StudioStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Studio::class))->createOne(); @@ -71,7 +71,7 @@ class StudioStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = Studio::factory()->raw(); diff --git a/tests/Feature/Http/Api/Wiki/Studio/StudioUpdateTest.php b/tests/Feature/Http/Api/Wiki/Studio/StudioUpdateTest.php index bb2070fc3..f3442624f 100644 --- a/tests/Feature/Http/Api/Wiki/Studio/StudioUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Studio/StudioUpdateTest.php @@ -20,7 +20,7 @@ class StudioUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $studio = Studio::factory()->createOne(); @@ -36,7 +36,7 @@ class StudioUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $studio = Studio::factory()->createOne(); @@ -56,7 +56,7 @@ class StudioUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $studio = Studio::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class StudioUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $studio = Studio::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptDestroyTest.php b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptDestroyTest.php index c70f562e6..ed4d05073 100644 --- a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptDestroyTest.php @@ -20,7 +20,7 @@ class ScriptDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $script = VideoScript::factory()->createOne(); @@ -34,7 +34,7 @@ class ScriptDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $script = VideoScript::factory()->createOne(); @@ -52,7 +52,7 @@ class ScriptDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $script = VideoScript::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class ScriptDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $script = VideoScript::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptForceDeleteTest.php index e9ac52516..aaba08b55 100644 --- a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptForceDeleteTest.php @@ -20,7 +20,7 @@ class ScriptForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $script = VideoScript::factory()->createOne(); @@ -34,7 +34,7 @@ class ScriptForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $script = VideoScript::factory()->createOne(); @@ -52,7 +52,7 @@ class ScriptForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $script = VideoScript::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptIndexTest.php b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptIndexTest.php index 727437af9..c3de9fa70 100644 --- a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptIndexTest.php @@ -47,7 +47,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $scripts = VideoScript::factory() ->count($this->faker->randomDigitNotNull()) @@ -72,7 +72,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { VideoScript::factory() ->count($this->faker->randomDigitNotNull()) @@ -92,7 +92,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ScriptSchema(); @@ -132,7 +132,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ScriptSchema(); @@ -169,7 +169,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new ScriptSchema(); @@ -210,7 +210,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -253,7 +253,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -296,7 +296,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -332,7 +332,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -368,7 +368,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -404,7 +404,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -448,7 +448,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testVideosByLyrics(): void + public function test_videos_by_lyrics(): void { $lyricsFilter = $this->faker->boolean(); @@ -469,7 +469,7 @@ class ScriptIndexTest extends TestCase $query->where(Video::ATTRIBUTE_LYRICS, $lyricsFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.videoscript.index', $parameters)); @@ -490,7 +490,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testVideosByNc(): void + public function test_videos_by_nc(): void { $ncFilter = $this->faker->boolean(); @@ -511,7 +511,7 @@ class ScriptIndexTest extends TestCase $query->where(Video::ATTRIBUTE_NC, $ncFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.videoscript.index', $parameters)); @@ -532,7 +532,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testVideosByOverlap(): void + public function test_videos_by_overlap(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -553,7 +553,7 @@ class ScriptIndexTest extends TestCase $query->where(Video::ATTRIBUTE_OVERLAP, $overlapFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.videoscript.index', $parameters)); @@ -574,7 +574,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testVideosByResolution(): void + public function test_videos_by_resolution(): void { $resolutionFilter = $this->faker->randomNumber(); $excludedResolution = $resolutionFilter + 1; @@ -600,7 +600,7 @@ class ScriptIndexTest extends TestCase $query->where(Video::ATTRIBUTE_RESOLUTION, $resolutionFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.videoscript.index', $parameters)); @@ -621,7 +621,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testVideosBySource(): void + public function test_videos_by_source(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -642,7 +642,7 @@ class ScriptIndexTest extends TestCase $query->where(Video::ATTRIBUTE_SOURCE, $sourceFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.videoscript.index', $parameters)); @@ -663,7 +663,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testVideosBySubbed(): void + public function test_videos_by_subbed(): void { $subbedFilter = $this->faker->boolean(); @@ -684,7 +684,7 @@ class ScriptIndexTest extends TestCase $query->where(Video::ATTRIBUTE_SUBBED, $subbedFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.videoscript.index', $parameters)); @@ -705,7 +705,7 @@ class ScriptIndexTest extends TestCase * * @return void */ - public function testVideosByUncen(): void + public function test_videos_by_uncen(): void { $uncenFilter = $this->faker->boolean(); diff --git a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptRestoreTest.php b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptRestoreTest.php index d7a25cf3f..4fda7c71b 100644 --- a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptRestoreTest.php @@ -20,7 +20,7 @@ class ScriptRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $script = VideoScript::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class ScriptRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $script = VideoScript::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class ScriptRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $script = VideoScript::factory()->createOne(); @@ -70,7 +70,7 @@ class ScriptRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $script = VideoScript::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptShowTest.php b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptShowTest.php index 729590d35..84f642c0f 100644 --- a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptShowTest.php @@ -33,7 +33,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $script = VideoScript::factory()->create(); @@ -56,7 +56,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $script = VideoScript::factory()->trashed()->createOne(); @@ -79,7 +79,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new ScriptSchema(); @@ -116,7 +116,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new ScriptSchema(); @@ -151,7 +151,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testVideosByLyrics(): void + public function test_videos_by_lyrics(): void { $lyricsFilter = $this->faker->boolean(); @@ -191,7 +191,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testVideosByNc(): void + public function test_videos_by_nc(): void { $ncFilter = $this->faker->boolean(); @@ -231,7 +231,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testVideosByOverlap(): void + public function test_videos_by_overlap(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -271,7 +271,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testVideosByResolution(): void + public function test_videos_by_resolution(): void { $resolutionFilter = $this->faker->randomNumber(); $excludedResolution = $resolutionFilter + 1; @@ -316,7 +316,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testVideosBySource(): void + public function test_videos_by_source(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -356,7 +356,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testVideosBySubbed(): void + public function test_videos_by_subbed(): void { $subbedFilter = $this->faker->boolean(); @@ -396,7 +396,7 @@ class ScriptShowTest extends TestCase * * @return void */ - public function testVideosByUncen(): void + public function test_videos_by_uncen(): void { $uncenFilter = $this->faker->boolean(); diff --git a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptStoreTest.php b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptStoreTest.php index 20dbfa5c7..e73ea0019 100644 --- a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptStoreTest.php @@ -20,7 +20,7 @@ class ScriptStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $script = VideoScript::factory()->makeOne(); @@ -34,7 +34,7 @@ class ScriptStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $script = VideoScript::factory()->makeOne(); @@ -52,7 +52,7 @@ class ScriptStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(VideoScript::class))->createOne(); @@ -70,7 +70,7 @@ class ScriptStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $parameters = VideoScript::factory()->raw(); diff --git a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptUpdateTest.php b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptUpdateTest.php index 4859bffe6..16ec84ab8 100644 --- a/tests/Feature/Http/Api/Wiki/Video/Script/ScriptUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/Script/ScriptUpdateTest.php @@ -20,7 +20,7 @@ class ScriptUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $script = VideoScript::factory()->createOne(); @@ -36,7 +36,7 @@ class ScriptUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $script = VideoScript::factory()->createOne(); @@ -56,7 +56,7 @@ class ScriptUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $script = VideoScript::factory()->trashed()->createOne(); @@ -76,7 +76,7 @@ class ScriptUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $script = VideoScript::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Video/VideoDestroyTest.php b/tests/Feature/Http/Api/Wiki/Video/VideoDestroyTest.php index 231323dbb..7bbcece0a 100644 --- a/tests/Feature/Http/Api/Wiki/Video/VideoDestroyTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/VideoDestroyTest.php @@ -20,7 +20,7 @@ class VideoDestroyTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $video = Video::factory()->createOne(); @@ -34,7 +34,7 @@ class VideoDestroyTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $video = Video::factory()->createOne(); @@ -52,7 +52,7 @@ class VideoDestroyTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $video = Video::factory()->trashed()->createOne(); @@ -70,7 +70,7 @@ class VideoDestroyTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $video = Video::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Video/VideoForceDeleteTest.php b/tests/Feature/Http/Api/Wiki/Video/VideoForceDeleteTest.php index 31ad67f32..ecdc1db88 100644 --- a/tests/Feature/Http/Api/Wiki/Video/VideoForceDeleteTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/VideoForceDeleteTest.php @@ -20,7 +20,7 @@ class VideoForceDeleteTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $video = Video::factory()->createOne(); @@ -34,7 +34,7 @@ class VideoForceDeleteTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $video = Video::factory()->createOne(); @@ -52,7 +52,7 @@ class VideoForceDeleteTest extends TestCase * * @return void */ - public function testDeleted(): void + public function test_deleted(): void { $video = Video::factory()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Video/VideoIndexTest.php b/tests/Feature/Http/Api/Wiki/Video/VideoIndexTest.php index 90fdbf0ce..16db5ec9c 100644 --- a/tests/Feature/Http/Api/Wiki/Video/VideoIndexTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/VideoIndexTest.php @@ -56,7 +56,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $videos = Video::factory() ->count($this->faker->randomDigitNotNull()) @@ -81,7 +81,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testPaginated(): void + public function test_paginated(): void { Video::factory() ->count($this->faker->randomDigitNotNull()) @@ -101,7 +101,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new VideoSchema(); @@ -147,7 +147,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new VideoSchema(); @@ -184,7 +184,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testSorts(): void + public function test_sorts(): void { $schema = new VideoSchema(); @@ -225,7 +225,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testCreatedAtFilter(): void + public function test_created_at_filter(): void { $createdFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -268,7 +268,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testUpdatedAtFilter(): void + public function test_updated_at_filter(): void { $updatedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -311,7 +311,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testWithoutTrashedFilter(): void + public function test_without_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -347,7 +347,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testWithTrashedFilter(): void + public function test_with_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -383,7 +383,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testOnlyTrashedFilter(): void + public function test_only_trashed_filter(): void { $parameters = [ FilterParser::param() => [ @@ -419,7 +419,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testDeletedAtFilter(): void + public function test_deleted_at_filter(): void { $deletedFilter = $this->faker->date(); $excludedDate = $this->faker->date(); @@ -463,7 +463,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testLyricsFilter(): void + public function test_lyrics_filter(): void { $lyricsFilter = $this->faker->boolean(); @@ -498,7 +498,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testNcFilter(): void + public function test_nc_filter(): void { $ncFilter = $this->faker->boolean(); @@ -533,7 +533,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testOverlapFilter(): void + public function test_overlap_filter(): void { $overlapFilter = Arr::random(VideoOverlap::cases()); @@ -568,7 +568,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testResolutionFilter(): void + public function test_resolution_filter(): void { $resolutionFilter = $this->faker->randomNumber(); $excludedResolution = $resolutionFilter + 1; @@ -608,7 +608,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testSourceFilter(): void + public function test_source_filter(): void { $sourceFilter = Arr::random(VideoSource::cases()); @@ -643,7 +643,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testSubbedFilter(): void + public function test_subbed_filter(): void { $subbedFilter = $this->faker->boolean(); @@ -678,7 +678,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testUncenFilter(): void + public function test_uncen_filter(): void { $uncenFilter = $this->faker->boolean(); @@ -713,7 +713,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testEntriesByNsfw(): void + public function test_entries_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -738,7 +738,7 @@ class VideoIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_NSFW, $nsfwFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.video.index', $parameters)); @@ -759,7 +759,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testEntriesBySpoiler(): void + public function test_entries_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -784,7 +784,7 @@ class VideoIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_SPOILER, $spoilerFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.video.index', $parameters)); @@ -805,7 +805,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testEntriesByVersion(): void + public function test_entries_by_version(): void { $versionFilter = $this->faker->randomDigitNotNull(); $excludedVersion = $versionFilter + 1; @@ -835,7 +835,7 @@ class VideoIndexTest extends TestCase $query->where(AnimeThemeEntry::ATTRIBUTE_VERSION, $versionFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.video.index', $parameters)); @@ -856,7 +856,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -888,7 +888,7 @@ class VideoIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_SEQUENCE, $sequenceFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.video.index', $parameters)); @@ -909,7 +909,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -934,7 +934,7 @@ class VideoIndexTest extends TestCase $query->where(AnimeTheme::ATTRIBUTE_TYPE, $typeFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.video.index', $parameters)); @@ -955,7 +955,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -980,7 +980,7 @@ class VideoIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_MEDIA_FORMAT, $mediaFormatFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.video.index', $parameters)); @@ -1001,7 +1001,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -1026,7 +1026,7 @@ class VideoIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_SEASON, $seasonFilter->value); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.video.index', $parameters)); @@ -1047,7 +1047,7 @@ class VideoIndexTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; @@ -1081,7 +1081,7 @@ class VideoIndexTest extends TestCase $query->where(Anime::ATTRIBUTE_YEAR, $yearFilter); }, ]) - ->get(); + ->get(); $response = $this->get(route('api.video.index', $parameters)); diff --git a/tests/Feature/Http/Api/Wiki/Video/VideoRestoreTest.php b/tests/Feature/Http/Api/Wiki/Video/VideoRestoreTest.php index 2f9baaa9b..2b3529930 100644 --- a/tests/Feature/Http/Api/Wiki/Video/VideoRestoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/VideoRestoreTest.php @@ -20,7 +20,7 @@ class VideoRestoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $video = Video::factory()->trashed()->createOne(); @@ -34,7 +34,7 @@ class VideoRestoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $video = Video::factory()->trashed()->createOne(); @@ -52,7 +52,7 @@ class VideoRestoreTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $video = Video::factory()->createOne(); @@ -70,7 +70,7 @@ class VideoRestoreTest extends TestCase * * @return void */ - public function testRestored(): void + public function test_restored(): void { $video = Video::factory()->trashed()->createOne(); diff --git a/tests/Feature/Http/Api/Wiki/Video/VideoShowTest.php b/tests/Feature/Http/Api/Wiki/Video/VideoShowTest.php index be96e83ca..2ca43f695 100644 --- a/tests/Feature/Http/Api/Wiki/Video/VideoShowTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/VideoShowTest.php @@ -40,7 +40,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $video = Video::factory()->create(); @@ -63,7 +63,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testSoftDelete(): void + public function test_soft_delete(): void { $video = Video::factory()->trashed()->createOne(); @@ -86,7 +86,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testAllowedIncludePaths(): void + public function test_allowed_include_paths(): void { $schema = new VideoSchema(); @@ -129,7 +129,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testSparseFieldsets(): void + public function test_sparse_fieldsets(): void { $schema = new VideoSchema(); @@ -164,7 +164,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testEntriesByNsfw(): void + public function test_entries_by_nsfw(): void { $nsfwFilter = $this->faker->boolean(); @@ -208,7 +208,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testEntriesBySpoiler(): void + public function test_entries_by_spoiler(): void { $spoilerFilter = $this->faker->boolean(); @@ -252,7 +252,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testEntriesByVersion(): void + public function test_entries_by_version(): void { $versionFilter = $this->faker->randomDigitNotNull(); $excludedVersion = $versionFilter + 1; @@ -301,7 +301,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testThemesBySequence(): void + public function test_themes_by_sequence(): void { $sequenceFilter = $this->faker->randomDigitNotNull(); $excludedSequence = $sequenceFilter + 1; @@ -352,7 +352,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testThemesByType(): void + public function test_themes_by_type(): void { $typeFilter = Arr::random(ThemeType::cases()); @@ -396,7 +396,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testAnimeByMediaFormat(): void + public function test_anime_by_media_format(): void { $mediaFormatFilter = Arr::random(AnimeMediaFormat::cases()); @@ -440,7 +440,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testAnimeBySeason(): void + public function test_anime_by_season(): void { $seasonFilter = Arr::random(AnimeSeason::cases()); @@ -484,7 +484,7 @@ class VideoShowTest extends TestCase * * @return void */ - public function testAnimeByYear(): void + public function test_anime_by_year(): void { $yearFilter = intval($this->faker->year()); $excludedYear = $yearFilter + 1; diff --git a/tests/Feature/Http/Api/Wiki/Video/VideoStoreTest.php b/tests/Feature/Http/Api/Wiki/Video/VideoStoreTest.php index a8fdee83e..abfacfea0 100644 --- a/tests/Feature/Http/Api/Wiki/Video/VideoStoreTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/VideoStoreTest.php @@ -23,7 +23,7 @@ class VideoStoreTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $video = Video::factory()->makeOne(); @@ -37,7 +37,7 @@ class VideoStoreTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $video = Video::factory()->makeOne(); @@ -55,7 +55,7 @@ class VideoStoreTest extends TestCase * * @return void */ - public function testRequiredFields(): void + public function test_required_fields(): void { $user = User::factory()->withPermissions(CrudPermission::CREATE->format(Video::class))->createOne(); @@ -77,7 +77,7 @@ class VideoStoreTest extends TestCase * * @return void */ - public function testCreate(): void + public function test_create(): void { $overlap = Arr::random(VideoOverlap::cases()); $source = Arr::random(VideoSource::cases()); diff --git a/tests/Feature/Http/Api/Wiki/Video/VideoUpdateTest.php b/tests/Feature/Http/Api/Wiki/Video/VideoUpdateTest.php index c99196ab6..1a2c4ef23 100644 --- a/tests/Feature/Http/Api/Wiki/Video/VideoUpdateTest.php +++ b/tests/Feature/Http/Api/Wiki/Video/VideoUpdateTest.php @@ -23,7 +23,7 @@ class VideoUpdateTest extends TestCase * * @return void */ - public function testProtected(): void + public function test_protected(): void { $video = Video::factory()->createOne(); @@ -48,7 +48,7 @@ class VideoUpdateTest extends TestCase * * @return void */ - public function testForbidden(): void + public function test_forbidden(): void { $video = Video::factory()->createOne(); @@ -77,7 +77,7 @@ class VideoUpdateTest extends TestCase * * @return void */ - public function testTrashed(): void + public function test_trashed(): void { $video = Video::factory()->trashed()->createOne(); @@ -106,7 +106,7 @@ class VideoUpdateTest extends TestCase * * @return void */ - public function testUpdate(): void + public function test_update(): void { $video = Video::factory()->createOne(); diff --git a/tests/Feature/Http/Auth/EmailVerificationTest.php b/tests/Feature/Http/Auth/EmailVerificationTest.php index 37e95bf63..ec46e419f 100644 --- a/tests/Feature/Http/Auth/EmailVerificationTest.php +++ b/tests/Feature/Http/Auth/EmailVerificationTest.php @@ -28,7 +28,7 @@ class EmailVerificationTest extends TestCase * * @return void */ - public function testAssignsDefaultRoles(): void + public function test_assigns_default_roles(): void { Event::fakeExcept(Verified::class); diff --git a/tests/Feature/Http/Wiki/Audio/AudioTest.php b/tests/Feature/Http/Wiki/Audio/AudioTest.php index 63c23e0f5..711d8ff4f 100644 --- a/tests/Feature/Http/Wiki/Audio/AudioTest.php +++ b/tests/Feature/Http/Wiki/Audio/AudioTest.php @@ -34,7 +34,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioStreamingNotAllowedForbidden(): void + public function test_audio_streaming_not_allowed_forbidden(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -53,7 +53,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioStreamingPermittedForBypass(): void + public function test_audio_streaming_permitted_for_bypass(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -79,7 +79,7 @@ class AudioTest extends TestCase * * @return void */ - public function testCannotStreamSoftDeletedAudio(): void + public function test_cannot_stream_soft_deleted_audio(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -97,7 +97,7 @@ class AudioTest extends TestCase * * @return void */ - public function testViewRecordingNotAllowed(): void + public function test_view_recording_not_allowed(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -116,7 +116,7 @@ class AudioTest extends TestCase * * @return void */ - public function testViewRecordingIsAllowed(): void + public function test_view_recording_is_allowed(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -135,7 +135,7 @@ class AudioTest extends TestCase * * @return void */ - public function testViewRecordingCooldown(): void + public function test_view_recording_cooldown(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -156,7 +156,7 @@ class AudioTest extends TestCase * * @return void */ - public function testInvalidStreamingMethodError(): void + public function test_invalid_streaming_method_error(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -175,7 +175,7 @@ class AudioTest extends TestCase * * @return void */ - public function testStreamedThroughResponse(): void + public function test_streamed_through_response(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); @@ -194,7 +194,7 @@ class AudioTest extends TestCase * * @return void */ - public function testStreamedThroughNginxRedirect(): void + public function test_streamed_through_nginx_redirect(): void { Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); diff --git a/tests/Feature/Http/Wiki/Video/Script/ScriptTest.php b/tests/Feature/Http/Wiki/Video/Script/ScriptTest.php index df3180b19..530fb5d03 100644 --- a/tests/Feature/Http/Wiki/Video/Script/ScriptTest.php +++ b/tests/Feature/Http/Wiki/Video/Script/ScriptTest.php @@ -30,7 +30,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testScriptDownloadingNotAllowedForbidden(): void + public function test_script_downloading_not_allowed_forbidden(): void { Feature::deactivate(AllowScriptDownloading::class); @@ -47,7 +47,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoStreamingPermittedForBypass(): void + public function test_video_streaming_permitted_for_bypass(): void { Feature::activate(AllowScriptDownloading::class, $this->faker->boolean()); @@ -73,7 +73,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testCannotStreamSoftDeletedVideo(): void + public function test_cannot_stream_soft_deleted_video(): void { Feature::activate(AllowScriptDownloading::class); @@ -89,7 +89,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testDownloadedThroughResponse(): void + public function test_downloaded_through_response(): void { Feature::activate(AllowScriptDownloading::class); diff --git a/tests/Feature/Http/Wiki/Video/VideoTest.php b/tests/Feature/Http/Wiki/Video/VideoTest.php index 3c8a9f246..936eb8f82 100644 --- a/tests/Feature/Http/Wiki/Video/VideoTest.php +++ b/tests/Feature/Http/Wiki/Video/VideoTest.php @@ -38,7 +38,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoStreamingNotAllowedForbidden(): void + public function test_video_streaming_not_allowed_forbidden(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -56,7 +56,7 @@ class VideoTest extends TestCase * * @return void */ - public function testCannotStreamSoftDeletedVideo(): void + public function test_cannot_stream_soft_deleted_video(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -74,7 +74,7 @@ class VideoTest extends TestCase * * @return void */ - public function testViewRecordingNotAllowed(): void + public function test_view_recording_not_allowed(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -94,7 +94,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoStreamingPermittedForBypass(): void + public function test_video_streaming_permitted_for_bypass(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -120,7 +120,7 @@ class VideoTest extends TestCase * * @return void */ - public function testViewRecordingIsAllowed(): void + public function test_view_recording_is_allowed(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -139,7 +139,7 @@ class VideoTest extends TestCase * * @return void */ - public function testViewRecordingCooldown(): void + public function test_view_recording_cooldown(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -160,7 +160,7 @@ class VideoTest extends TestCase * * @return void */ - public function testInvalidStreamingMethodError(): void + public function test_invalid_streaming_method_error(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -179,7 +179,7 @@ class VideoTest extends TestCase * * @return void */ - public function testStreamedThroughResponse(): void + public function test_streamed_through_response(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -198,7 +198,7 @@ class VideoTest extends TestCase * * @return void */ - public function testStreamedThroughNginxRedirect(): void + public function test_streamed_through_nginx_redirect(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -217,7 +217,7 @@ class VideoTest extends TestCase * * @return void */ - public function testNotThrottled(): void + public function test_not_throttled(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -238,7 +238,7 @@ class VideoTest extends TestCase * * @return void */ - public function testRateLimited(): void + public function test_rate_limited(): void { Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); @@ -259,7 +259,7 @@ class VideoTest extends TestCase * * @return void */ - public function testThrottledEvent(): void + public function test_throttled_event(): void { $limit = $this->faker->randomDigitNotNull(); @@ -285,7 +285,7 @@ class VideoTest extends TestCase * * @return void */ - public function testThrottledNotification(): void + public function test_throttled_notification(): void { $limit = $this->faker->randomDigitNotNull(); diff --git a/tests/Feature/Jobs/Admin/AnnouncementTest.php b/tests/Feature/Jobs/Admin/AnnouncementTest.php index 435c5e844..56dce8401 100644 --- a/tests/Feature/Jobs/Admin/AnnouncementTest.php +++ b/tests/Feature/Jobs/Admin/AnnouncementTest.php @@ -26,7 +26,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementCreatedSendsDiscordNotification(): void + public function test_announcement_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementDeletedSendsDiscordNotification(): void + public function test_announcement_deleted_sends_discord_notification(): void { $announcement = Announcement::factory()->createOne(); @@ -60,7 +60,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementRestoredSendsDiscordNotification(): void + public function test_announcement_restored_sends_discord_notification(): void { $announcement = Announcement::factory()->createOne(); @@ -78,7 +78,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testAnnouncementUpdatedSendsDiscordNotification(): void + public function test_announcement_updated_sends_discord_notification(): void { $announcement = Announcement::factory()->createOne(); diff --git a/tests/Feature/Jobs/Admin/DumpTest.php b/tests/Feature/Jobs/Admin/DumpTest.php index c6f9c720d..576ca59b0 100644 --- a/tests/Feature/Jobs/Admin/DumpTest.php +++ b/tests/Feature/Jobs/Admin/DumpTest.php @@ -26,7 +26,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpCreatedSendsDiscordNotification(): void + public function test_dump_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpDeletedSendsDiscordNotification(): void + public function test_dump_deleted_sends_discord_notification(): void { $dump = Dump::factory()->createOne(); @@ -60,7 +60,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpRestoredSendsDiscordNotification(): void + public function test_dump_restored_sends_discord_notification(): void { $dump = Dump::factory()->createOne(); @@ -78,7 +78,7 @@ class DumpTest extends TestCase * * @return void */ - public function testDumpUpdatedSendsDiscordNotification(): void + public function test_dump_updated_sends_discord_notification(): void { $dump = Dump::factory()->createOne(); diff --git a/tests/Feature/Jobs/Admin/FeatureTest.php b/tests/Feature/Jobs/Admin/FeatureTest.php index b1abb809a..d37b9f0c6 100644 --- a/tests/Feature/Jobs/Admin/FeatureTest.php +++ b/tests/Feature/Jobs/Admin/FeatureTest.php @@ -25,7 +25,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testFeatureCreatedSendsDiscordNotification(): void + public function test_feature_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -41,7 +41,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testFeatureDeletedSendsDiscordNotification(): void + public function test_feature_deleted_sends_discord_notification(): void { $feature = FeatureModel::factory()->createOne(); @@ -59,7 +59,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testFeatureUpdatedSendsDiscordNotification(): void + public function test_feature_updated_sends_discord_notification(): void { $feature = FeatureModel::factory()->createOne(); diff --git a/tests/Feature/Jobs/Admin/FeaturedThemeTest.php b/tests/Feature/Jobs/Admin/FeaturedThemeTest.php index 4d4a97222..5cfe1047f 100644 --- a/tests/Feature/Jobs/Admin/FeaturedThemeTest.php +++ b/tests/Feature/Jobs/Admin/FeaturedThemeTest.php @@ -26,7 +26,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeCreatedSendsDiscordNotification(): void + public function test_featured_theme_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeDeletedSendsDiscordNotification(): void + public function test_featured_theme_deleted_sends_discord_notification(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -60,7 +60,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeRestoredSendsDiscordNotification(): void + public function test_featured_theme_restored_sends_discord_notification(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -78,7 +78,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testFeaturedThemeUpdatedSendsDiscordNotification(): void + public function test_featured_theme_updated_sends_discord_notification(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); diff --git a/tests/Feature/Jobs/Auth/UserTest.php b/tests/Feature/Jobs/Auth/UserTest.php index 8c30de43a..bc3a4a44d 100644 --- a/tests/Feature/Jobs/Auth/UserTest.php +++ b/tests/Feature/Jobs/Auth/UserTest.php @@ -26,7 +26,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserCreatedSendsDiscordNotification(): void + public function test_user_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserDeletedSendsDiscordNotification(): void + public function test_user_deleted_sends_discord_notification(): void { $user = User::factory()->createOne(); @@ -60,7 +60,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserRestoredSendsDiscordNotification(): void + public function test_user_restored_sends_discord_notification(): void { $user = User::factory()->createOne(); @@ -78,7 +78,7 @@ class UserTest extends TestCase * * @return void */ - public function testUserUpdatedSendsDiscordNotification(): void + public function test_user_updated_sends_discord_notification(): void { $user = User::factory()->createOne(); diff --git a/tests/Feature/Jobs/Discord/DiscordThreadTest.php b/tests/Feature/Jobs/Discord/DiscordThreadTest.php index 970868d3c..b721c95dc 100644 --- a/tests/Feature/Jobs/Discord/DiscordThreadTest.php +++ b/tests/Feature/Jobs/Discord/DiscordThreadTest.php @@ -26,7 +26,7 @@ class DiscordThreadTest extends TestCase * * @return void */ - public function testThreadDeletedSendsDiscordNotification(): void + public function test_thread_deleted_sends_discord_notification(): void { $thread = DiscordThread::factory() ->for(Anime::factory()) @@ -47,7 +47,7 @@ class DiscordThreadTest extends TestCase * * @return void */ - public function testThreadUpdatedSendsDiscordNotification(): void + public function test_thread_updated_sends_discord_notification(): void { $thread = DiscordThread::factory() ->for(Anime::factory()) @@ -67,4 +67,4 @@ class DiscordThreadTest extends TestCase Bus::assertDispatched(SendDiscordNotificationJob::class); } -} \ No newline at end of file +} diff --git a/tests/Feature/Jobs/Document/PageTest.php b/tests/Feature/Jobs/Document/PageTest.php index 79ae44ea2..2bda9ea7c 100644 --- a/tests/Feature/Jobs/Document/PageTest.php +++ b/tests/Feature/Jobs/Document/PageTest.php @@ -26,7 +26,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageCreatedSendsDiscordNotification(): void + public function test_page_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageDeletedSendsDiscordNotification(): void + public function test_page_deleted_sends_discord_notification(): void { $page = Page::factory()->createOne(); @@ -60,7 +60,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageRestoredSendsDiscordNotification(): void + public function test_page_restored_sends_discord_notification(): void { $page = Page::factory()->createOne(); @@ -78,7 +78,7 @@ class PageTest extends TestCase * * @return void */ - public function testPageUpdatedSendsDiscordNotification(): void + public function test_page_updated_sends_discord_notification(): void { $page = Page::factory()->createOne(); diff --git a/tests/Feature/Jobs/List/ExternalProfileTest.php b/tests/Feature/Jobs/List/ExternalProfileTest.php index ed859ee78..886257645 100644 --- a/tests/Feature/Jobs/List/ExternalProfileTest.php +++ b/tests/Feature/Jobs/List/ExternalProfileTest.php @@ -26,7 +26,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileCreatedSendsDiscordNotification(): void + public function test_external_profile_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileDeletedSendsDiscordNotification(): void + public function test_external_profile_deleted_sends_discord_notification(): void { $profile = ExternalProfile::factory()->createOne(); @@ -60,7 +60,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileRestoredSendsDiscordNotification(): void + public function test_external_profile_restored_sends_discord_notification(): void { $profile = ExternalProfile::factory()->createOne(); @@ -78,7 +78,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalProfileUpdatedSendsDiscordNotification(): void + public function test_external_profile_updated_sends_discord_notification(): void { $profile = ExternalProfile::factory()->createOne(); diff --git a/tests/Feature/Jobs/List/Playlist/TrackTest.php b/tests/Feature/Jobs/List/Playlist/TrackTest.php index 070e5c56f..d524e8872 100644 --- a/tests/Feature/Jobs/List/Playlist/TrackTest.php +++ b/tests/Feature/Jobs/List/Playlist/TrackTest.php @@ -28,7 +28,7 @@ class TrackTest extends TestCase * * @return void */ - public function testPlaylistCreatedSendsDiscordNotification(): void + public function test_playlist_created_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); @@ -48,7 +48,7 @@ class TrackTest extends TestCase * * @return void */ - public function testPlaylistDeletedSendsDiscordNotification(): void + public function test_playlist_deleted_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); @@ -70,7 +70,7 @@ class TrackTest extends TestCase * * @return void */ - public function testPlaylistRestoredSendsDiscordNotification(): void + public function test_playlist_restored_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); @@ -92,7 +92,7 @@ class TrackTest extends TestCase * * @return void */ - public function testPlaylistUpdatedSendsDiscordNotification(): void + public function test_playlist_updated_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); diff --git a/tests/Feature/Jobs/List/PlaylistTest.php b/tests/Feature/Jobs/List/PlaylistTest.php index 15f6f462b..bf6fbe41c 100644 --- a/tests/Feature/Jobs/List/PlaylistTest.php +++ b/tests/Feature/Jobs/List/PlaylistTest.php @@ -26,7 +26,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistCreatedSendsDiscordNotification(): void + public function test_playlist_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistDeletedSendsDiscordNotification(): void + public function test_playlist_deleted_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); @@ -60,7 +60,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistRestoredSendsDiscordNotification(): void + public function test_playlist_restored_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); @@ -78,7 +78,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testPlaylistUpdatedSendsDiscordNotification(): void + public function test_playlist_updated_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/List/PlaylistImageTest.php b/tests/Feature/Jobs/Pivot/List/PlaylistImageTest.php index f42956e24..4a7f4686b 100644 --- a/tests/Feature/Jobs/Pivot/List/PlaylistImageTest.php +++ b/tests/Feature/Jobs/Pivot/List/PlaylistImageTest.php @@ -25,7 +25,7 @@ class PlaylistImageTest extends TestCase * * @return void */ - public function testPlaylistImageCreatedSendsDiscordNotification(): void + public function test_playlist_image_created_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); $image = Image::factory()->createOne(); @@ -44,7 +44,7 @@ class PlaylistImageTest extends TestCase * * @return void */ - public function testPlaylistImageDeletedSendsDiscordNotification(): void + public function test_playlist_image_deleted_sends_discord_notification(): void { $playlist = Playlist::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/AnimeImageTest.php b/tests/Feature/Jobs/Pivot/Wiki/AnimeImageTest.php index 5a8db38a5..9d422cb7e 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/AnimeImageTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/AnimeImageTest.php @@ -25,7 +25,7 @@ class AnimeImageTest extends TestCase * * @return void */ - public function testAnimeImageCreatedSendsDiscordNotification(): void + public function test_anime_image_created_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); @@ -44,7 +44,7 @@ class AnimeImageTest extends TestCase * * @return void */ - public function testAnimeImageDeletedSendsDiscordNotification(): void + public function test_anime_image_deleted_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/AnimeResourceTest.php b/tests/Feature/Jobs/Pivot/Wiki/AnimeResourceTest.php index a8dc1e83d..723f42474 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/AnimeResourceTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/AnimeResourceTest.php @@ -27,7 +27,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testAnimeResourceCreatedSendsDiscordNotification(): void + public function test_anime_resource_created_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -46,7 +46,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testAnimeResourceDeletedSendsDiscordNotification(): void + public function test_anime_resource_deleted_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -67,7 +67,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testAnimeResourceUpdatedSendsDiscordNotification(): void + public function test_anime_resource_updated_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/AnimeSeriesTest.php b/tests/Feature/Jobs/Pivot/Wiki/AnimeSeriesTest.php index 6293ef71c..0be6a5358 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/AnimeSeriesTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/AnimeSeriesTest.php @@ -25,7 +25,7 @@ class AnimeSeriesTest extends TestCase * * @return void */ - public function testAnimeSeriesCreatedSendsDiscordNotification(): void + public function test_anime_series_created_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); @@ -44,7 +44,7 @@ class AnimeSeriesTest extends TestCase * * @return void */ - public function testAnimeSeriesDeletedSendsDiscordNotification(): void + public function test_anime_series_deleted_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $series = Series::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/AnimeStudioTest.php b/tests/Feature/Jobs/Pivot/Wiki/AnimeStudioTest.php index 9b00550dc..115025e85 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/AnimeStudioTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/AnimeStudioTest.php @@ -25,7 +25,7 @@ class AnimeStudioTest extends TestCase * * @return void */ - public function testAnimeStudioCreatedSendsDiscordNotification(): void + public function test_anime_studio_created_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); @@ -44,7 +44,7 @@ class AnimeStudioTest extends TestCase * * @return void */ - public function testAnimeStudioDeletedSendsDiscordNotification(): void + public function test_anime_studio_deleted_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); $studio = Studio::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/AnimeThemeEntryVideoTest.php b/tests/Feature/Jobs/Pivot/Wiki/AnimeThemeEntryVideoTest.php index bf414a527..41a9b57ca 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/AnimeThemeEntryVideoTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/AnimeThemeEntryVideoTest.php @@ -27,7 +27,7 @@ class AnimeThemeEntryVideoTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoCreatedSendsDiscordNotification(): void + public function test_anime_theme_entry_video_created_sends_discord_notification(): void { $video = Video::factory()->createOne(); $entry = AnimeThemeEntry::factory() @@ -48,7 +48,7 @@ class AnimeThemeEntryVideoTest extends TestCase * * @return void */ - public function testAnimeThemeEntryVideoDeletedSendsDiscordNotification(): void + public function test_anime_theme_entry_video_deleted_sends_discord_notification(): void { $video = Video::factory()->createOne(); $entry = AnimeThemeEntry::factory() diff --git a/tests/Feature/Jobs/Pivot/Wiki/ArtistImageTest.php b/tests/Feature/Jobs/Pivot/Wiki/ArtistImageTest.php index 7617ef956..0a906545e 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/ArtistImageTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/ArtistImageTest.php @@ -25,7 +25,7 @@ class ArtistImageTest extends TestCase * * @return void */ - public function testArtistImageCreatedSendsDiscordNotification(): void + public function test_artist_image_created_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); @@ -44,7 +44,7 @@ class ArtistImageTest extends TestCase * * @return void */ - public function testArtistImageDeletedSendsDiscordNotification(): void + public function test_artist_image_deleted_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/ArtistMemberTest.php b/tests/Feature/Jobs/Pivot/Wiki/ArtistMemberTest.php index c4c53b142..6a7dc6037 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/ArtistMemberTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/ArtistMemberTest.php @@ -26,7 +26,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testArtistMemberCreatedSendsDiscordNotification(): void + public function test_artist_member_created_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -45,7 +45,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testArtistMemberDeletedSendsDiscordNotification(): void + public function test_artist_member_deleted_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); @@ -66,7 +66,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testArtistMemberUpdatedSendsDiscordNotification(): void + public function test_artist_member_updated_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $member = Artist::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/ArtistResourceTest.php b/tests/Feature/Jobs/Pivot/Wiki/ArtistResourceTest.php index 07a10b251..e0e455e0e 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/ArtistResourceTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/ArtistResourceTest.php @@ -27,7 +27,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testArtistResourceCreatedSendsDiscordNotification(): void + public function test_artist_resource_created_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -46,7 +46,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testArtistResourceDeletedSendsDiscordNotification(): void + public function test_artist_resource_deleted_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -67,7 +67,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testArtistResourceUpdatedSendsDiscordNotification(): void + public function test_artist_resource_updated_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/ArtistSongTest.php b/tests/Feature/Jobs/Pivot/Wiki/ArtistSongTest.php index 76c133973..a402d32aa 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/ArtistSongTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/ArtistSongTest.php @@ -27,7 +27,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testArtistSongCreatedSendsDiscordNotification(): void + public function test_artist_song_created_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -46,7 +46,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testArtistSongDeletedSendsDiscordNotification(): void + public function test_artist_song_deleted_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); @@ -67,7 +67,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testArtistSongUpdatedSendsDiscordNotification(): void + public function test_artist_song_updated_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); $song = Song::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/SongResourceTest.php b/tests/Feature/Jobs/Pivot/Wiki/SongResourceTest.php index 0c23c73da..c18900f41 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/SongResourceTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/SongResourceTest.php @@ -9,8 +9,8 @@ use App\Events\Pivot\Wiki\SongResource\SongResourceCreated; use App\Events\Pivot\Wiki\SongResource\SongResourceDeleted; use App\Events\Pivot\Wiki\SongResource\SongResourceUpdated; use App\Jobs\SendDiscordNotificationJob; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; use Illuminate\Support\Facades\Bus; use Illuminate\Support\Facades\Event; @@ -27,7 +27,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testSongResourceCreatedSendsDiscordNotification(): void + public function test_song_resource_created_sends_discord_notification(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -46,7 +46,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testSongResourceDeletedSendsDiscordNotification(): void + public function test_song_resource_deleted_sends_discord_notification(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -67,7 +67,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testSongResourceUpdatedSendsDiscordNotification(): void + public function test_song_resource_updated_sends_discord_notification(): void { $song = Song::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/StudioImageTest.php b/tests/Feature/Jobs/Pivot/Wiki/StudioImageTest.php index dd581d84d..f269bdb44 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/StudioImageTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/StudioImageTest.php @@ -25,7 +25,7 @@ class StudioImageTest extends TestCase * * @return void */ - public function testStudioImageCreatedSendsDiscordNotification(): void + public function test_studio_image_created_sends_discord_notification(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); @@ -44,7 +44,7 @@ class StudioImageTest extends TestCase * * @return void */ - public function testStudioImageDeletedSendsDiscordNotification(): void + public function test_studio_image_deleted_sends_discord_notification(): void { $studio = Studio::factory()->createOne(); $image = Image::factory()->createOne(); diff --git a/tests/Feature/Jobs/Pivot/Wiki/StudioResourceTest.php b/tests/Feature/Jobs/Pivot/Wiki/StudioResourceTest.php index 2ab5abbde..b7c7543db 100644 --- a/tests/Feature/Jobs/Pivot/Wiki/StudioResourceTest.php +++ b/tests/Feature/Jobs/Pivot/Wiki/StudioResourceTest.php @@ -27,7 +27,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testStudioResourceCreatedSendsDiscordNotification(): void + public function test_studio_resource_created_sends_discord_notification(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -46,7 +46,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testStudioResourceDeletedSendsDiscordNotification(): void + public function test_studio_resource_deleted_sends_discord_notification(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); @@ -67,7 +67,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testStudioResourceUpdatedSendsDiscordNotification(): void + public function test_studio_resource_updated_sends_discord_notification(): void { $studio = Studio::factory()->createOne(); $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Jobs/SendDiscordNotificationTest.php b/tests/Feature/Jobs/SendDiscordNotificationTest.php index ae6ed374d..1519ae60e 100644 --- a/tests/Feature/Jobs/SendDiscordNotificationTest.php +++ b/tests/Feature/Jobs/SendDiscordNotificationTest.php @@ -26,7 +26,7 @@ class SendDiscordNotificationTest extends TestCase * * @return void */ - public function testSendDiscordNotificationJobSendsNotification(): void + public function test_send_discord_notification_job_sends_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Notification::fake(); @@ -81,7 +81,7 @@ class SendDiscordNotificationTest extends TestCase * * @return void */ - public function testRateLimited(): void + public function test_rate_limited(): void { $event = new class implements DiscordMessageEvent { diff --git a/tests/Feature/Jobs/Wiki/Anime/SynonymTest.php b/tests/Feature/Jobs/Wiki/Anime/SynonymTest.php index 2637711f5..dbc78f662 100644 --- a/tests/Feature/Jobs/Wiki/Anime/SynonymTest.php +++ b/tests/Feature/Jobs/Wiki/Anime/SynonymTest.php @@ -27,7 +27,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymCreatedSendsDiscordNotification(): void + public function test_synonym_created_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); @@ -45,7 +45,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymDeletedSendsDiscordNotification(): void + public function test_synonym_deleted_sends_discord_notification(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -65,7 +65,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymRestoredSendsDiscordNotification(): void + public function test_synonym_restored_sends_discord_notification(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -85,7 +85,7 @@ class SynonymTest extends TestCase * * @return void */ - public function testSynonymUpdatedSendsDiscordNotification(): void + public function test_synonym_updated_sends_discord_notification(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Jobs/Wiki/Anime/Theme/EntryTest.php b/tests/Feature/Jobs/Wiki/Anime/Theme/EntryTest.php index 2eef7bbf4..828c78ac4 100644 --- a/tests/Feature/Jobs/Wiki/Anime/Theme/EntryTest.php +++ b/tests/Feature/Jobs/Wiki/Anime/Theme/EntryTest.php @@ -28,7 +28,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryCreatedSendsDiscordNotification(): void + public function test_entry_created_sends_discord_notification(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -48,7 +48,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryDeletedSendsDiscordNotification(): void + public function test_entry_deleted_sends_discord_notification(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -68,7 +68,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryRestoredSendsDiscordNotification(): void + public function test_entry_restored_sends_discord_notification(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -88,7 +88,7 @@ class EntryTest extends TestCase * * @return void */ - public function testEntryUpdatedSendsDiscordNotification(): void + public function test_entry_updated_sends_discord_notification(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) diff --git a/tests/Feature/Jobs/Wiki/Anime/ThemeTest.php b/tests/Feature/Jobs/Wiki/Anime/ThemeTest.php index 4cbef5bb9..d8499323a 100644 --- a/tests/Feature/Jobs/Wiki/Anime/ThemeTest.php +++ b/tests/Feature/Jobs/Wiki/Anime/ThemeTest.php @@ -27,7 +27,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeCreatedSendsDiscordNotification(): void + public function test_theme_created_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); @@ -45,7 +45,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeDeletedSendsDiscordNotification(): void + public function test_theme_deleted_sends_discord_notification(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -65,7 +65,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeRestoredSendsDiscordNotification(): void + public function test_theme_restored_sends_discord_notification(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -85,7 +85,7 @@ class ThemeTest extends TestCase * * @return void */ - public function testThemeUpdatedSendsDiscordNotification(): void + public function test_theme_updated_sends_discord_notification(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) diff --git a/tests/Feature/Jobs/Wiki/AnimeTest.php b/tests/Feature/Jobs/Wiki/AnimeTest.php index 56bf4a86a..144cee52d 100644 --- a/tests/Feature/Jobs/Wiki/AnimeTest.php +++ b/tests/Feature/Jobs/Wiki/AnimeTest.php @@ -26,7 +26,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeCreatedSendsDiscordNotification(): void + public function test_anime_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeDeletedSendsDiscordNotification(): void + public function test_anime_deleted_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); @@ -60,7 +60,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeRestoredSendsDiscordNotification(): void + public function test_anime_restored_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); @@ -78,7 +78,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testAnimeUpdatedSendsDiscordNotification(): void + public function test_anime_updated_sends_discord_notification(): void { $anime = Anime::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/ArtistTest.php b/tests/Feature/Jobs/Wiki/ArtistTest.php index ecec43272..c467badeb 100644 --- a/tests/Feature/Jobs/Wiki/ArtistTest.php +++ b/tests/Feature/Jobs/Wiki/ArtistTest.php @@ -26,7 +26,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistCreatedSendsDiscordNotification(): void + public function test_artist_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistDeletedSendsDiscordNotification(): void + public function test_artist_deleted_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); @@ -60,7 +60,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistRestoredSendsDiscordNotification(): void + public function test_artist_restored_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); @@ -78,7 +78,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testArtistUpdatedSendsDiscordNotification(): void + public function test_artist_updated_sends_discord_notification(): void { $artist = Artist::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/AudioTest.php b/tests/Feature/Jobs/Wiki/AudioTest.php index 498c87410..3cb9ad417 100644 --- a/tests/Feature/Jobs/Wiki/AudioTest.php +++ b/tests/Feature/Jobs/Wiki/AudioTest.php @@ -26,7 +26,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioCreatedSendsDiscordNotification(): void + public function test_audio_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioDeletedSendsDiscordNotification(): void + public function test_audio_deleted_sends_discord_notification(): void { $audio = Audio::factory()->createOne(); @@ -60,7 +60,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioRestoredSendsDiscordNotification(): void + public function test_audio_restored_sends_discord_notification(): void { $audio = Audio::factory()->createOne(); @@ -78,7 +78,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioUpdatedSendsDiscordNotification(): void + public function test_audio_updated_sends_discord_notification(): void { $audio = Audio::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/ExternalResourceTest.php b/tests/Feature/Jobs/Wiki/ExternalResourceTest.php index d05dbcbd7..d71f558d8 100644 --- a/tests/Feature/Jobs/Wiki/ExternalResourceTest.php +++ b/tests/Feature/Jobs/Wiki/ExternalResourceTest.php @@ -26,7 +26,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testResourceCreatedSendsDiscordNotification(): void + public function test_resource_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testResourceDeletedSendsDiscordNotification(): void + public function test_resource_deleted_sends_discord_notification(): void { $resource = ExternalResource::factory()->createOne(); @@ -60,7 +60,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testResourceRestoredSendsDiscordNotification(): void + public function test_resource_restored_sends_discord_notification(): void { $resource = ExternalResource::factory()->createOne(); @@ -78,7 +78,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testResourceUpdatedSendsDiscordNotification(): void + public function test_resource_updated_sends_discord_notification(): void { $resource = ExternalResource::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/GroupTest.php b/tests/Feature/Jobs/Wiki/GroupTest.php index 07da23ed3..44493e5b3 100644 --- a/tests/Feature/Jobs/Wiki/GroupTest.php +++ b/tests/Feature/Jobs/Wiki/GroupTest.php @@ -26,7 +26,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupCreatedSendsDiscordNotification(): void + public function test_group_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupDeletedSendsDiscordNotification(): void + public function test_group_deleted_sends_discord_notification(): void { $group = Group::factory()->createOne(); @@ -60,7 +60,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupRestoredSendsDiscordNotification(): void + public function test_group_restored_sends_discord_notification(): void { $group = Group::factory()->createOne(); @@ -78,7 +78,7 @@ class GroupTest extends TestCase * * @return void */ - public function testGroupUpdatedSendsDiscordNotification(): void + public function test_group_updated_sends_discord_notification(): void { $group = Group::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/ImageTest.php b/tests/Feature/Jobs/Wiki/ImageTest.php index ed7d3697c..f6db30a08 100644 --- a/tests/Feature/Jobs/Wiki/ImageTest.php +++ b/tests/Feature/Jobs/Wiki/ImageTest.php @@ -26,7 +26,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageCreatedSendsDiscordNotification(): void + public function test_image_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageDeletedSendsDiscordNotification(): void + public function test_image_deleted_sends_discord_notification(): void { $image = Image::factory()->createOne(); @@ -60,7 +60,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageRestoredSendsDiscordNotification(): void + public function test_image_restored_sends_discord_notification(): void { $image = Image::factory()->createOne(); @@ -78,7 +78,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageUpdatedSendsDiscordNotification(): void + public function test_image_updated_sends_discord_notification(): void { $image = Image::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/SeriesTest.php b/tests/Feature/Jobs/Wiki/SeriesTest.php index 5f0dca4ce..59ef0b644 100644 --- a/tests/Feature/Jobs/Wiki/SeriesTest.php +++ b/tests/Feature/Jobs/Wiki/SeriesTest.php @@ -26,7 +26,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesCreatedSendsDiscordNotification(): void + public function test_series_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesDeletedSendsDiscordNotification(): void + public function test_series_deleted_sends_discord_notification(): void { $series = Series::factory()->createOne(); @@ -60,7 +60,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesRestoredSendsDiscordNotification(): void + public function test_series_restored_sends_discord_notification(): void { $series = Series::factory()->createOne(); @@ -78,7 +78,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSeriesUpdatedSendsDiscordNotification(): void + public function test_series_updated_sends_discord_notification(): void { $series = Series::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/SongTest.php b/tests/Feature/Jobs/Wiki/SongTest.php index d95954242..e6bcfa23a 100644 --- a/tests/Feature/Jobs/Wiki/SongTest.php +++ b/tests/Feature/Jobs/Wiki/SongTest.php @@ -26,7 +26,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongCreatedSendsDiscordNotification(): void + public function test_song_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongDeletedSendsDiscordNotification(): void + public function test_song_deleted_sends_discord_notification(): void { $song = Song::factory()->createOne(); @@ -60,7 +60,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongRestoredSendsDiscordNotification(): void + public function test_song_restored_sends_discord_notification(): void { $song = Song::factory()->createOne(); @@ -78,7 +78,7 @@ class SongTest extends TestCase * * @return void */ - public function testSongUpdatedSendsDiscordNotification(): void + public function test_song_updated_sends_discord_notification(): void { $song = Song::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/StudioTest.php b/tests/Feature/Jobs/Wiki/StudioTest.php index 72a63050c..170ed6fad 100644 --- a/tests/Feature/Jobs/Wiki/StudioTest.php +++ b/tests/Feature/Jobs/Wiki/StudioTest.php @@ -26,7 +26,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioCreatedSendsDiscordNotification(): void + public function test_studio_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioDeletedSendsDiscordNotification(): void + public function test_studio_deleted_sends_discord_notification(): void { $studio = Studio::factory()->createOne(); @@ -60,7 +60,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioRestoredSendsDiscordNotification(): void + public function test_studio_restored_sends_discord_notification(): void { $studio = Studio::factory()->createOne(); @@ -78,7 +78,7 @@ class StudioTest extends TestCase * * @return void */ - public function testStudioUpdatedSendsDiscordNotification(): void + public function test_studio_updated_sends_discord_notification(): void { $studio = Studio::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/Video/ScriptTest.php b/tests/Feature/Jobs/Wiki/Video/ScriptTest.php index 7b2934c5f..542c29d3b 100644 --- a/tests/Feature/Jobs/Wiki/Video/ScriptTest.php +++ b/tests/Feature/Jobs/Wiki/Video/ScriptTest.php @@ -26,7 +26,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoCreatedSendsDiscordNotification(): void + public function test_video_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoDeletedSendsDiscordNotification(): void + public function test_video_deleted_sends_discord_notification(): void { $script = VideoScript::factory()->createOne(); @@ -60,7 +60,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoRestoredSendsDiscordNotification(): void + public function test_video_restored_sends_discord_notification(): void { $script = VideoScript::factory()->createOne(); @@ -78,7 +78,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideoUpdatedSendsDiscordNotification(): void + public function test_video_updated_sends_discord_notification(): void { $script = VideoScript::factory()->createOne(); diff --git a/tests/Feature/Jobs/Wiki/VideoTest.php b/tests/Feature/Jobs/Wiki/VideoTest.php index b27387b84..8a02606c4 100644 --- a/tests/Feature/Jobs/Wiki/VideoTest.php +++ b/tests/Feature/Jobs/Wiki/VideoTest.php @@ -26,7 +26,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoCreatedSendsDiscordNotification(): void + public function test_video_created_sends_discord_notification(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -42,7 +42,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoDeletedSendsDiscordNotification(): void + public function test_video_deleted_sends_discord_notification(): void { $video = Video::factory()->createOne(); @@ -60,7 +60,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoRestoredSendsDiscordNotification(): void + public function test_video_restored_sends_discord_notification(): void { $video = Video::factory()->createOne(); @@ -78,7 +78,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoUpdatedSendsDiscordNotification(): void + public function test_video_updated_sends_discord_notification(): void { $video = Video::factory()->createOne(); diff --git a/tests/Feature/Listeners/SendDiscordNotificationTest.php b/tests/Feature/Listeners/SendDiscordNotificationTest.php index df372a913..e81f81474 100644 --- a/tests/Feature/Listeners/SendDiscordNotificationTest.php +++ b/tests/Feature/Listeners/SendDiscordNotificationTest.php @@ -25,7 +25,7 @@ class SendDiscordNotificationTest extends TestCase * * @return void */ - public function testDiscordNotificationsNotAllowed(): void + public function test_discord_notifications_not_allowed(): void { Feature::deactivate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); @@ -78,7 +78,7 @@ class SendDiscordNotificationTest extends TestCase * * @return void */ - public function testDiscordNotificationsAllowed(): void + public function test_discord_notifications_allowed(): void { Feature::activate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS); Bus::fake(SendDiscordNotificationJob::class); diff --git a/tests/Unit/Actions/ActionResultTest.php b/tests/Unit/Actions/ActionResultTest.php index 72359d98d..608f0bc32 100644 --- a/tests/Unit/Actions/ActionResultTest.php +++ b/tests/Unit/Actions/ActionResultTest.php @@ -19,7 +19,7 @@ class ActionResultTest extends TestCase * * @return void */ - public function testHasFailed(): void + public function test_has_failed(): void { $result = new ActionResult(ActionStatus::FAILED); @@ -31,13 +31,13 @@ class ActionResultTest extends TestCase * * @return void */ - public function testHasNotFailed(): void + public function test_has_not_failed(): void { $status = null; while ($status === null) { $statusCandidate = Arr::random(ActionStatus::cases()); - if (ActionStatus::FAILED !== $statusCandidate) { + if ($statusCandidate !== ActionStatus::FAILED) { $status = $statusCandidate; } } diff --git a/tests/Unit/Actions/Repositories/ReconcileResultsTest.php b/tests/Unit/Actions/Repositories/ReconcileResultsTest.php index 9d1d43736..745d2f02f 100644 --- a/tests/Unit/Actions/Repositories/ReconcileResultsTest.php +++ b/tests/Unit/Actions/Repositories/ReconcileResultsTest.php @@ -19,7 +19,7 @@ class ReconcileResultsTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $reconcileResults = new class extends ReconcileResults { @@ -34,6 +34,6 @@ class ReconcileResultsTest extends TestCase } }; - static::assertTrue(ActionStatus::PASSED === $reconcileResults->getStatus()); + static::assertTrue($reconcileResults->getStatus() === ActionStatus::PASSED); } } diff --git a/tests/Unit/Actions/Storage/Base/DeleteResultsTest.php b/tests/Unit/Actions/Storage/Base/DeleteResultsTest.php index 5a73cd779..8941282b9 100644 --- a/tests/Unit/Actions/Storage/Base/DeleteResultsTest.php +++ b/tests/Unit/Actions/Storage/Base/DeleteResultsTest.php @@ -22,7 +22,7 @@ class DeleteResultsTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $video = Video::factory()->createOne(); @@ -38,7 +38,7 @@ class DeleteResultsTest extends TestCase * * @return void */ - public function testFailed(): void + public function test_failed(): void { $video = Video::factory()->createOne(); @@ -64,7 +64,7 @@ class DeleteResultsTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { $video = Video::factory()->createOne(); @@ -78,6 +78,6 @@ class DeleteResultsTest extends TestCase $result = $deleteResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } } diff --git a/tests/Unit/Actions/Storage/Base/MoveResultsTest.php b/tests/Unit/Actions/Storage/Base/MoveResultsTest.php index 36447f8c2..9bbd068e2 100644 --- a/tests/Unit/Actions/Storage/Base/MoveResultsTest.php +++ b/tests/Unit/Actions/Storage/Base/MoveResultsTest.php @@ -22,7 +22,7 @@ class MoveResultsTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $video = Video::factory()->createOne(); @@ -38,7 +38,7 @@ class MoveResultsTest extends TestCase * * @return void */ - public function testFailed(): void + public function test_failed(): void { $video = Video::factory()->createOne(); @@ -64,7 +64,7 @@ class MoveResultsTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { $video = Video::factory()->createOne(); @@ -78,6 +78,6 @@ class MoveResultsTest extends TestCase $result = $moveResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } } diff --git a/tests/Unit/Actions/Storage/Base/PruneResultsTest.php b/tests/Unit/Actions/Storage/Base/PruneResultsTest.php index 326ae600c..bc761ea0c 100644 --- a/tests/Unit/Actions/Storage/Base/PruneResultsTest.php +++ b/tests/Unit/Actions/Storage/Base/PruneResultsTest.php @@ -21,7 +21,7 @@ class PruneResultsTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $pruneResults = new PruneResults($this->faker->word()); @@ -35,7 +35,7 @@ class PruneResultsTest extends TestCase * * @return void */ - public function testFailed(): void + public function test_failed(): void { $prunings = []; @@ -59,7 +59,7 @@ class PruneResultsTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { $prunings = []; @@ -71,6 +71,6 @@ class PruneResultsTest extends TestCase $result = $pruneResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } } diff --git a/tests/Unit/Actions/Storage/Base/UploadResultsTest.php b/tests/Unit/Actions/Storage/Base/UploadResultsTest.php index bbef07e6c..63aa2935e 100644 --- a/tests/Unit/Actions/Storage/Base/UploadResultsTest.php +++ b/tests/Unit/Actions/Storage/Base/UploadResultsTest.php @@ -21,7 +21,7 @@ class UploadResultsTest extends TestCase * * @return void */ - public function testDefault(): void + public function test_default(): void { $uploadResults = new UploadResults(); @@ -35,7 +35,7 @@ class UploadResultsTest extends TestCase * * @return void */ - public function testFailed(): void + public function test_failed(): void { $uploads = []; @@ -59,7 +59,7 @@ class UploadResultsTest extends TestCase * * @return void */ - public function testPassed(): void + public function test_passed(): void { $uploads = []; @@ -71,6 +71,6 @@ class UploadResultsTest extends TestCase $result = $uploadResults->toActionResult(); - static::assertTrue(ActionStatus::PASSED === $result->getStatus()); + static::assertTrue($result->getStatus() === ActionStatus::PASSED); } } diff --git a/tests/Unit/Discord/DiscordEmbedFieldTest.php b/tests/Unit/Discord/DiscordEmbedFieldTest.php index 691dcbf52..d881774a5 100644 --- a/tests/Unit/Discord/DiscordEmbedFieldTest.php +++ b/tests/Unit/Discord/DiscordEmbedFieldTest.php @@ -25,7 +25,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatEnum(): void + public function test_discord_embed_format_enum(): void { $enum = Arr::random(LocalizedEnum::cases()); @@ -39,7 +39,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatDate(): void + public function test_discord_embed_format_date(): void { $date = Date::now()->subDays($this->faker->randomDigitNotNull()); @@ -53,7 +53,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatBoolean(): void + public function test_discord_embed_format_boolean(): void { $boolean = $this->faker->boolean(); @@ -67,7 +67,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatNumber(): void + public function test_discord_embed_format_number(): void { $number = $this->faker->randomNumber(); @@ -81,7 +81,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatFloat(): void + public function test_discord_embed_format_float(): void { $float = $this->faker->randomFloat(); @@ -95,7 +95,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatString(): void + public function test_discord_embed_format_string(): void { $string = $this->faker->word(); @@ -109,7 +109,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatEmptyString(): void + public function test_discord_embed_format_empty_string(): void { $field = new DiscordEmbedField($this->faker->word(), ''); @@ -121,7 +121,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatNull(): void + public function test_discord_embed_format_null(): void { $field = new DiscordEmbedField($this->faker->word(), null); @@ -133,7 +133,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatArray(): void + public function test_discord_embed_format_array(): void { $field = new DiscordEmbedField($this->faker->word(), []); @@ -145,7 +145,7 @@ class DiscordEmbedFieldTest extends TestCase * * @return void */ - public function testDiscordEmbedFormatObject(): void + public function test_discord_embed_format_object(): void { $field = new DiscordEmbedField($this->faker->word(), new stdClass()); diff --git a/tests/Unit/Enums/Models/Wiki/ResourceSiteTest.php b/tests/Unit/Enums/Models/Wiki/ResourceSiteTest.php index 847f7fd45..b0b01a8f5 100644 --- a/tests/Unit/Enums/Models/Wiki/ResourceSiteTest.php +++ b/tests/Unit/Enums/Models/Wiki/ResourceSiteTest.php @@ -9,8 +9,8 @@ use App\Models\Wiki\Anime; use App\Models\Wiki\Studio; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Arr; -use Illuminate\Support\Str; use Illuminate\Support\Facades\Http; +use Illuminate\Support\Str; use Tests\TestCase; /** @@ -25,7 +25,7 @@ class ResourceSiteTest extends TestCase * * @return void */ - public function testParseIdFromAnimeResource(): void + public function test_parse_id_from_anime_resource(): void { $animeId = $this->faker->randomDigitNotNull(); @@ -48,7 +48,7 @@ class ResourceSiteTest extends TestCase * * @return void */ - public function testParseIdFromStudioResource(): void + public function test_parse_id_from_studio_resource(): void { $studioId = $this->faker->randomDigitNotNull(); @@ -70,9 +70,10 @@ class ResourceSiteTest extends TestCase * * @return void */ - public function testFailParseAnimePlanetIdFromStudioResource(): void + public function test_fail_parse_anime_planet_id_from_studio_resource(): void { - $link = ResourceSite::ANIME_PLANET->formatResourceLink(Studio::class, + $link = ResourceSite::ANIME_PLANET->formatResourceLink( + Studio::class, $this->faker->randomDigitNotNull(), $this->faker->slug() ); @@ -86,7 +87,7 @@ class ResourceSiteTest extends TestCase * * @return void */ - public function testFailParseAnimePlanetIdFromAnimeResource(): void + public function test_fail_parse_anime_planet_id_from_anime_resource(): void { Http::fake([ 'https://www.anime-planet.com/anime/*' => Http::response([ @@ -94,7 +95,8 @@ class ResourceSiteTest extends TestCase ]), ]); - $link = ResourceSite::ANIME_PLANET->formatResourceLink(Anime::class, + $link = ResourceSite::ANIME_PLANET->formatResourceLink( + Anime::class, $this->faker->randomDigitNotNull(), $this->faker->slug() ); @@ -108,7 +110,7 @@ class ResourceSiteTest extends TestCase * * @return void */ - public function testParseAnimePlanetIdFromAnimeResource(): void + public function test_parse_anime_planet_id_from_anime_resource(): void { $id = $this->faker->randomDigitNotNull(); @@ -139,7 +141,7 @@ class ResourceSiteTest extends TestCase * * @return void */ - public function testParseKitsuIdForIdFromAnimeResource(): void + public function test_parse_kitsu_id_for_id_from_anime_resource(): void { $id = $this->faker->randomDigitNotNull(); @@ -153,7 +155,7 @@ class ResourceSiteTest extends TestCase * * @return void */ - public function testParseKitsuIdForSlugFromAnimeResource(): void + public function test_parse_kitsu_id_for_slug_from_anime_resource(): void { $id = $this->faker->randomDigitNotNull(); $slug = $this->faker->slug(); diff --git a/tests/Unit/Events/AssignHashidsTest.php b/tests/Unit/Events/AssignHashidsTest.php index 240277b8c..1079fb18d 100644 --- a/tests/Unit/Events/AssignHashidsTest.php +++ b/tests/Unit/Events/AssignHashidsTest.php @@ -19,7 +19,7 @@ class AssignHashidsTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(AssignHashidsEvent::class, AssignHashids::class); } diff --git a/tests/Unit/Events/CascadesDeletesTest.php b/tests/Unit/Events/CascadesDeletesTest.php index 64622e6c8..1cd3a3284 100644 --- a/tests/Unit/Events/CascadesDeletesTest.php +++ b/tests/Unit/Events/CascadesDeletesTest.php @@ -19,7 +19,7 @@ class CascadesDeletesTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(CascadesDeletesEvent::class, CascadesDeletes::class); } diff --git a/tests/Unit/Events/CascadesRestoresTest.php b/tests/Unit/Events/CascadesRestoresTest.php index 34b46677a..d80132f16 100644 --- a/tests/Unit/Events/CascadesRestoresTest.php +++ b/tests/Unit/Events/CascadesRestoresTest.php @@ -19,7 +19,7 @@ class CascadesRestoresTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(CascadesRestoresEvent::class, CascadesRestores::class); } diff --git a/tests/Unit/Events/ManagesTrackTest.php b/tests/Unit/Events/ManagesTrackTest.php index 5ead3a5c5..57b65209b 100644 --- a/tests/Unit/Events/ManagesTrackTest.php +++ b/tests/Unit/Events/ManagesTrackTest.php @@ -19,7 +19,7 @@ class ManagesTrackTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(ManagesTrackEvent::class, ManagesTrack::class); } diff --git a/tests/Unit/Events/NotifiesFilamentUsersTest.php b/tests/Unit/Events/NotifiesFilamentUsersTest.php index 37950e1ce..8b178c029 100644 --- a/tests/Unit/Events/NotifiesFilamentUsersTest.php +++ b/tests/Unit/Events/NotifiesFilamentUsersTest.php @@ -19,7 +19,7 @@ class NotifiesFilamentUsersTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(FilamentNotificationEvent::class, NotifiesFilamentUsers::class); } diff --git a/tests/Unit/Events/NotifiesUsersTest.php b/tests/Unit/Events/NotifiesUsersTest.php index 9a2707211..b9f9fed71 100644 --- a/tests/Unit/Events/NotifiesUsersTest.php +++ b/tests/Unit/Events/NotifiesUsersTest.php @@ -19,7 +19,7 @@ class NotifiesUsersTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(NotifiesUsersEvent::class, NotifiesUsers::class); } diff --git a/tests/Unit/Events/RemoveFromStorageTest.php b/tests/Unit/Events/RemoveFromStorageTest.php index f86ad5c81..eb2771458 100644 --- a/tests/Unit/Events/RemoveFromStorageTest.php +++ b/tests/Unit/Events/RemoveFromStorageTest.php @@ -19,7 +19,7 @@ class RemoveFromStorageTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(RemoveFromStorageEvent::class, RemoveFromStorage::class); } diff --git a/tests/Unit/Events/SyncArtistSongTest.php b/tests/Unit/Events/SyncArtistSongTest.php index 6eca55c52..a39cf038e 100644 --- a/tests/Unit/Events/SyncArtistSongTest.php +++ b/tests/Unit/Events/SyncArtistSongTest.php @@ -19,7 +19,7 @@ class SyncArtistSongTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(SyncArtistSongEvent::class, SyncArtistSong::class); } diff --git a/tests/Unit/Events/UpdatePlaylistTracksTest.php b/tests/Unit/Events/UpdatePlaylistTracksTest.php index 82e02d88c..64cb89540 100644 --- a/tests/Unit/Events/UpdatePlaylistTracksTest.php +++ b/tests/Unit/Events/UpdatePlaylistTracksTest.php @@ -19,7 +19,7 @@ class UpdatePlaylistTracksTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(UpdatePlaylistTracksEvent::class, UpdatePlaylistTracks::class); } diff --git a/tests/Unit/Events/UpdateRelatedIndicesTest.php b/tests/Unit/Events/UpdateRelatedIndicesTest.php index 1a39b7134..b49a75e73 100644 --- a/tests/Unit/Events/UpdateRelatedIndicesTest.php +++ b/tests/Unit/Events/UpdateRelatedIndicesTest.php @@ -19,7 +19,7 @@ class UpdateRelatedIndicesTest extends TestCase * * @return void */ - public function testListening(): void + public function test_listening(): void { Event::assertListening(UpdateRelatedIndicesEvent::class, UpdateRelatedIndices::class); } diff --git a/tests/Unit/Filament/Resources/Admin/AnnouncementTest.php b/tests/Unit/Filament/Resources/Admin/AnnouncementTest.php index 6fa9d62d5..07485596e 100644 --- a/tests/Unit/Filament/Resources/Admin/AnnouncementTest.php +++ b/tests/Unit/Filament/Resources/Admin/AnnouncementTest.php @@ -39,7 +39,7 @@ class AnnouncementTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -64,7 +64,7 @@ class AnnouncementTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -75,7 +75,7 @@ class AnnouncementTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = AnnouncementModel::factory()->createOne(); @@ -88,7 +88,7 @@ class AnnouncementTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = AnnouncementModel::factory()->createOne(); @@ -101,7 +101,7 @@ class AnnouncementTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = AnnouncementModel::factory()->createOne(); @@ -114,7 +114,7 @@ class AnnouncementTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = AnnouncementModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Admin/DumpTest.php b/tests/Unit/Filament/Resources/Admin/DumpTest.php index f13feade8..808f5e9f9 100644 --- a/tests/Unit/Filament/Resources/Admin/DumpTest.php +++ b/tests/Unit/Filament/Resources/Admin/DumpTest.php @@ -38,7 +38,7 @@ class DumpTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -63,7 +63,7 @@ class DumpTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = DumpModel::factory()->createOne(); @@ -76,7 +76,7 @@ class DumpTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = DumpModel::factory()->createOne(); @@ -89,7 +89,7 @@ class DumpTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = DumpModel::factory()->createOne(); @@ -102,7 +102,7 @@ class DumpTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = DumpModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Admin/FeatureTest.php b/tests/Unit/Filament/Resources/Admin/FeatureTest.php index c23751b30..4306c5493 100644 --- a/tests/Unit/Filament/Resources/Admin/FeatureTest.php +++ b/tests/Unit/Filament/Resources/Admin/FeatureTest.php @@ -38,7 +38,7 @@ class FeatureTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -63,7 +63,7 @@ class FeatureTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = FeatureModel::factory()->createOne(); @@ -76,7 +76,7 @@ class FeatureTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = FeatureModel::factory()->createOne(); @@ -89,7 +89,7 @@ class FeatureTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = FeatureModel::factory()->createOne(); @@ -102,7 +102,7 @@ class FeatureTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = FeatureModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Admin/FeaturedThemeTest.php b/tests/Unit/Filament/Resources/Admin/FeaturedThemeTest.php index 9c3fc3302..044a0fd10 100644 --- a/tests/Unit/Filament/Resources/Admin/FeaturedThemeTest.php +++ b/tests/Unit/Filament/Resources/Admin/FeaturedThemeTest.php @@ -54,7 +54,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -101,7 +101,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -122,7 +122,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -145,7 +145,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -156,7 +156,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = FeaturedThemeModel::factory()->createOne(); @@ -169,7 +169,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = FeaturedThemeModel::factory()->createOne(); @@ -185,7 +185,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = FeaturedThemeModel::factory()->createOne(); @@ -203,7 +203,7 @@ class FeaturedThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = FeaturedThemeModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Discord/DiscordThreadTest.php b/tests/Unit/Filament/Resources/Discord/DiscordThreadTest.php index f0aa19a45..f19454867 100644 --- a/tests/Unit/Filament/Resources/Discord/DiscordThreadTest.php +++ b/tests/Unit/Filament/Resources/Discord/DiscordThreadTest.php @@ -51,7 +51,7 @@ class DiscordThreadTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class DiscordThreadTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -103,7 +103,7 @@ class DiscordThreadTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -124,7 +124,7 @@ class DiscordThreadTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -149,7 +149,7 @@ class DiscordThreadTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -160,7 +160,7 @@ class DiscordThreadTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = DiscordThreadModel::factory() ->for(Anime::factory()) @@ -175,7 +175,7 @@ class DiscordThreadTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = DiscordThreadModel::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Filament/Resources/Document/PageTest.php b/tests/Unit/Filament/Resources/Document/PageTest.php index e21b8853d..6c6f9e0d7 100644 --- a/tests/Unit/Filament/Resources/Document/PageTest.php +++ b/tests/Unit/Filament/Resources/Document/PageTest.php @@ -54,7 +54,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -101,7 +101,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -122,7 +122,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -145,7 +145,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -156,7 +156,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = PageModel::factory()->createOne(); @@ -169,7 +169,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = PageModel::factory()->createOne(); @@ -185,7 +185,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = PageModel::factory()->createOne(); @@ -203,7 +203,7 @@ class PageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = PageModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/List/External/ExternalEntryTest.php b/tests/Unit/Filament/Resources/List/External/ExternalEntryTest.php index 21dd9de01..a3306a91a 100644 --- a/tests/Unit/Filament/Resources/List/External/ExternalEntryTest.php +++ b/tests/Unit/Filament/Resources/List/External/ExternalEntryTest.php @@ -61,7 +61,7 @@ class ExternalEntryTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withAdmin() @@ -89,7 +89,7 @@ class ExternalEntryTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withAdmin() @@ -101,7 +101,6 @@ class ExternalEntryTest extends BaseResourceTestCase $this->actingAs($user); - $profile = ExternalProfile::factory()->entries(3)->createOne(); $record = $profile->externalentries->first(); @@ -115,7 +114,7 @@ class ExternalEntryTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withAdmin() diff --git a/tests/Unit/Filament/Resources/List/ExternalProfileTest.php b/tests/Unit/Filament/Resources/List/ExternalProfileTest.php index dafb3287c..cc649691e 100644 --- a/tests/Unit/Filament/Resources/List/ExternalProfileTest.php +++ b/tests/Unit/Filament/Resources/List/ExternalProfileTest.php @@ -61,7 +61,7 @@ class ExternalProfileTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withAdmin() @@ -84,7 +84,7 @@ class ExternalProfileTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withAdmin() @@ -110,7 +110,7 @@ class ExternalProfileTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withAdmin() @@ -132,7 +132,7 @@ class ExternalProfileTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withAdmin() diff --git a/tests/Unit/Filament/Resources/List/Playlist/TrackTest.php b/tests/Unit/Filament/Resources/List/Playlist/TrackTest.php index af78bf5eb..6e3df94d0 100644 --- a/tests/Unit/Filament/Resources/List/Playlist/TrackTest.php +++ b/tests/Unit/Filament/Resources/List/Playlist/TrackTest.php @@ -62,7 +62,7 @@ class TrackTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withAdmin() @@ -90,7 +90,7 @@ class TrackTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withAdmin() @@ -115,7 +115,7 @@ class TrackTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withAdmin() @@ -137,7 +137,7 @@ class TrackTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withAdmin() diff --git a/tests/Unit/Filament/Resources/List/PlaylistTest.php b/tests/Unit/Filament/Resources/List/PlaylistTest.php index e0478d631..0e2f81e30 100644 --- a/tests/Unit/Filament/Resources/List/PlaylistTest.php +++ b/tests/Unit/Filament/Resources/List/PlaylistTest.php @@ -61,7 +61,7 @@ class PlaylistTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withAdmin() @@ -87,7 +87,7 @@ class PlaylistTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withAdmin() @@ -110,7 +110,7 @@ class PlaylistTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withAdmin() @@ -132,7 +132,7 @@ class PlaylistTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withAdmin() diff --git a/tests/Unit/Filament/Resources/Wiki/Anime/Theme/EntryTest.php b/tests/Unit/Filament/Resources/Wiki/Anime/Theme/EntryTest.php index 9ac8959da..629a9b2b9 100644 --- a/tests/Unit/Filament/Resources/Wiki/Anime/Theme/EntryTest.php +++ b/tests/Unit/Filament/Resources/Wiki/Anime/Theme/EntryTest.php @@ -54,7 +54,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -81,7 +81,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -105,7 +105,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -126,7 +126,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -151,7 +151,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -162,7 +162,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = AnimeThemeEntryModel::factory() ->forAnime() @@ -177,7 +177,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = AnimeThemeEntryModel::factory() ->forAnime() @@ -195,7 +195,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = AnimeThemeEntryModel::factory() ->forAnime() @@ -215,7 +215,7 @@ class EntryTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = AnimeThemeEntryModel::factory() ->forAnime() diff --git a/tests/Unit/Filament/Resources/Wiki/Anime/ThemeTest.php b/tests/Unit/Filament/Resources/Wiki/Anime/ThemeTest.php index e88d19671..a90242efb 100644 --- a/tests/Unit/Filament/Resources/Wiki/Anime/ThemeTest.php +++ b/tests/Unit/Filament/Resources/Wiki/Anime/ThemeTest.php @@ -55,7 +55,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -82,7 +82,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -106,7 +106,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -127,7 +127,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -152,7 +152,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -163,7 +163,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = AnimeThemeModel::factory() ->for(Anime::factory()) @@ -178,7 +178,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = AnimeThemeModel::factory() ->for(Anime::factory()) @@ -196,7 +196,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = AnimeThemeModel::factory() ->for(Anime::factory()) @@ -216,7 +216,7 @@ class ThemeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = AnimeThemeModel::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Filament/Resources/Wiki/AnimeTest.php b/tests/Unit/Filament/Resources/Wiki/AnimeTest.php index 1c11e8392..409ba8101 100644 --- a/tests/Unit/Filament/Resources/Wiki/AnimeTest.php +++ b/tests/Unit/Filament/Resources/Wiki/AnimeTest.php @@ -54,7 +54,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -101,7 +101,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -122,7 +122,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -145,7 +145,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -156,7 +156,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = AnimeModel::factory()->createOne(); @@ -169,7 +169,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = AnimeModel::factory()->createOne(); @@ -185,7 +185,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = AnimeModel::factory()->createOne(); @@ -203,7 +203,7 @@ class AnimeTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = AnimeModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/ArtistTest.php b/tests/Unit/Filament/Resources/Wiki/ArtistTest.php index 940d65e36..180df6259 100644 --- a/tests/Unit/Filament/Resources/Wiki/ArtistTest.php +++ b/tests/Unit/Filament/Resources/Wiki/ArtistTest.php @@ -54,7 +54,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -101,7 +101,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -122,7 +122,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -145,7 +145,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -156,7 +156,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = ArtistModel::factory()->createOne(); @@ -169,7 +169,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = ArtistModel::factory()->createOne(); @@ -185,7 +185,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = ArtistModel::factory()->createOne(); @@ -203,7 +203,7 @@ class ArtistTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = ArtistModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/AudioTest.php b/tests/Unit/Filament/Resources/Wiki/AudioTest.php index caf3159cf..338e18514 100644 --- a/tests/Unit/Filament/Resources/Wiki/AudioTest.php +++ b/tests/Unit/Filament/Resources/Wiki/AudioTest.php @@ -53,7 +53,7 @@ class AudioTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -78,7 +78,7 @@ class AudioTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -100,7 +100,7 @@ class AudioTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -123,7 +123,7 @@ class AudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = AudioModel::factory()->createOne(); @@ -136,7 +136,7 @@ class AudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = AudioModel::factory()->createOne(); @@ -152,7 +152,7 @@ class AudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = AudioModel::factory()->createOne(); @@ -170,7 +170,7 @@ class AudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = AudioModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/ExternalResourceTest.php b/tests/Unit/Filament/Resources/Wiki/ExternalResourceTest.php index 43b105f19..45f7a6fc9 100644 --- a/tests/Unit/Filament/Resources/Wiki/ExternalResourceTest.php +++ b/tests/Unit/Filament/Resources/Wiki/ExternalResourceTest.php @@ -53,7 +53,7 @@ class ExternalResourceTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -78,7 +78,7 @@ class ExternalResourceTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -100,7 +100,7 @@ class ExternalResourceTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -123,7 +123,7 @@ class ExternalResourceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = ExternalResourceModel::factory()->createOne(); @@ -136,7 +136,7 @@ class ExternalResourceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = ExternalResourceModel::factory()->createOne(); @@ -152,7 +152,7 @@ class ExternalResourceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = ExternalResourceModel::factory()->createOne(); @@ -170,7 +170,7 @@ class ExternalResourceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = ExternalResourceModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/GroupTest.php b/tests/Unit/Filament/Resources/Wiki/GroupTest.php index 5459b38fd..57d3ab2c0 100644 --- a/tests/Unit/Filament/Resources/Wiki/GroupTest.php +++ b/tests/Unit/Filament/Resources/Wiki/GroupTest.php @@ -54,7 +54,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -101,7 +101,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -122,7 +122,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -145,7 +145,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -156,7 +156,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = GroupModel::factory()->createOne(); @@ -169,7 +169,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = GroupModel::factory()->createOne(); @@ -185,7 +185,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = GroupModel::factory()->createOne(); @@ -203,7 +203,7 @@ class GroupTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = GroupModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/ImageTest.php b/tests/Unit/Filament/Resources/Wiki/ImageTest.php index b01774c33..a6664c4eb 100644 --- a/tests/Unit/Filament/Resources/Wiki/ImageTest.php +++ b/tests/Unit/Filament/Resources/Wiki/ImageTest.php @@ -65,7 +65,7 @@ class ImageTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -90,7 +90,7 @@ class ImageTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -112,7 +112,7 @@ class ImageTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -135,7 +135,7 @@ class ImageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = ImageModel::factory()->createOne(); @@ -148,7 +148,7 @@ class ImageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = ImageModel::factory()->createOne(); @@ -164,7 +164,7 @@ class ImageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = ImageModel::factory()->createOne(); @@ -182,7 +182,7 @@ class ImageTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = ImageModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/SeriesTest.php b/tests/Unit/Filament/Resources/Wiki/SeriesTest.php index cd8208bfb..9fdcc2ecb 100644 --- a/tests/Unit/Filament/Resources/Wiki/SeriesTest.php +++ b/tests/Unit/Filament/Resources/Wiki/SeriesTest.php @@ -54,7 +54,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -101,7 +101,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -122,7 +122,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -145,7 +145,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -156,7 +156,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = SeriesModel::factory()->createOne(); @@ -169,7 +169,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = SeriesModel::factory()->createOne(); @@ -185,7 +185,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = SeriesModel::factory()->createOne(); @@ -203,7 +203,7 @@ class SeriesTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = SeriesModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/Song/MembershipTest.php b/tests/Unit/Filament/Resources/Wiki/Song/MembershipTest.php index 44aaa02d0..dbdcbf0e7 100644 --- a/tests/Unit/Filament/Resources/Wiki/Song/MembershipTest.php +++ b/tests/Unit/Filament/Resources/Wiki/Song/MembershipTest.php @@ -55,7 +55,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -84,7 +84,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -109,7 +109,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -130,7 +130,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -156,7 +156,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -167,7 +167,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = MembershipModel::factory() ->for(Artist::factory(), MembershipModel::RELATION_ARTIST) @@ -183,7 +183,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = MembershipModel::factory() ->for(Artist::factory(), MembershipModel::RELATION_ARTIST) @@ -202,7 +202,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = MembershipModel::factory() ->for(Artist::factory(), MembershipModel::RELATION_ARTIST) @@ -223,7 +223,7 @@ class MembershipTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = MembershipModel::factory() ->for(Artist::factory(), MembershipModel::RELATION_ARTIST) diff --git a/tests/Unit/Filament/Resources/Wiki/Song/PerformanceTest.php b/tests/Unit/Filament/Resources/Wiki/Song/PerformanceTest.php index 78c310199..a56d03ec7 100644 --- a/tests/Unit/Filament/Resources/Wiki/Song/PerformanceTest.php +++ b/tests/Unit/Filament/Resources/Wiki/Song/PerformanceTest.php @@ -10,7 +10,6 @@ use App\Filament\Actions\Base\DeleteAction; use App\Filament\Actions\Base\EditAction; use App\Filament\Actions\Base\ForceDeleteAction; use App\Filament\Actions\Base\RestoreAction; -use App\Filament\HeaderActions\Base\CreateHeaderAction; use App\Filament\HeaderActions\Base\DeleteHeaderAction; use App\Filament\HeaderActions\Base\ForceDeleteHeaderAction; use App\Filament\HeaderActions\Base\RestoreHeaderAction; @@ -56,7 +55,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -84,7 +83,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -109,7 +108,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -130,7 +129,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -156,7 +155,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden('new performance'); @@ -167,7 +166,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = PerformanceModel::factory() ->for(Song::factory()) @@ -183,7 +182,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = PerformanceModel::factory() ->for(Song::factory()) @@ -202,7 +201,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = PerformanceModel::factory() ->for(Song::factory()) @@ -223,7 +222,7 @@ class PerformanceTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = PerformanceModel::factory() ->for(Song::factory()) diff --git a/tests/Unit/Filament/Resources/Wiki/SongTest.php b/tests/Unit/Filament/Resources/Wiki/SongTest.php index 7b0241082..011a8656d 100644 --- a/tests/Unit/Filament/Resources/Wiki/SongTest.php +++ b/tests/Unit/Filament/Resources/Wiki/SongTest.php @@ -54,7 +54,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -101,7 +101,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -122,7 +122,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -145,7 +145,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -156,7 +156,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = SongModel::factory()->createOne(); @@ -169,7 +169,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = SongModel::factory()->createOne(); @@ -185,7 +185,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = SongModel::factory()->createOne(); @@ -203,7 +203,7 @@ class SongTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = SongModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/StudioTest.php b/tests/Unit/Filament/Resources/Wiki/StudioTest.php index 30bad40fe..228ce94ad 100644 --- a/tests/Unit/Filament/Resources/Wiki/StudioTest.php +++ b/tests/Unit/Filament/Resources/Wiki/StudioTest.php @@ -54,7 +54,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -79,7 +79,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -101,7 +101,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testMountCreateAction(): void + public function test_mount_create_action(): void { $user = User::factory() ->withPermissions( @@ -122,7 +122,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -145,7 +145,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotCreateRecord(): void + public function test_user_cannot_create_record(): void { Livewire::test(static::getIndexPage()) ->assertActionHidden(CreateHeaderAction::class); @@ -156,7 +156,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = StudioModel::factory()->createOne(); @@ -169,7 +169,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = StudioModel::factory()->createOne(); @@ -185,7 +185,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = StudioModel::factory()->createOne(); @@ -203,7 +203,7 @@ class StudioTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = StudioModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/Video/ScriptTest.php b/tests/Unit/Filament/Resources/Wiki/Video/ScriptTest.php index 323a423ca..b60d13fb6 100644 --- a/tests/Unit/Filament/Resources/Wiki/Video/ScriptTest.php +++ b/tests/Unit/Filament/Resources/Wiki/Video/ScriptTest.php @@ -53,7 +53,7 @@ class ScriptTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -78,7 +78,7 @@ class ScriptTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -100,7 +100,7 @@ class ScriptTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -123,7 +123,7 @@ class ScriptTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = VideoScriptModel::factory()->createOne(); @@ -136,7 +136,7 @@ class ScriptTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = VideoScriptModel::factory()->createOne(); @@ -152,7 +152,7 @@ class ScriptTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = VideoScriptModel::factory()->createOne(); @@ -170,7 +170,7 @@ class ScriptTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = VideoScriptModel::factory()->createOne(); diff --git a/tests/Unit/Filament/Resources/Wiki/VideoTest.php b/tests/Unit/Filament/Resources/Wiki/VideoTest.php index 607f8df94..8aca4c20e 100644 --- a/tests/Unit/Filament/Resources/Wiki/VideoTest.php +++ b/tests/Unit/Filament/Resources/Wiki/VideoTest.php @@ -65,7 +65,7 @@ class VideoTest extends BaseResourceTestCase * * @return void */ - public function testRenderIndexPage(): void + public function test_render_index_page(): void { $user = User::factory() ->withPermissions( @@ -90,7 +90,7 @@ class VideoTest extends BaseResourceTestCase * * @return void */ - public function testRenderViewPage(): void + public function test_render_view_page(): void { $user = User::factory() ->withPermissions( @@ -112,7 +112,7 @@ class VideoTest extends BaseResourceTestCase * * @return void */ - public function testMountEditAction(): void + public function test_mount_edit_action(): void { $user = User::factory() ->withPermissions( @@ -135,7 +135,7 @@ class VideoTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotEditRecord(): void + public function test_user_cannot_edit_record(): void { $record = VideoModel::factory()->createOne(); @@ -148,7 +148,7 @@ class VideoTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotDeleteRecord(): void + public function test_user_cannot_delete_record(): void { $record = VideoModel::factory()->createOne(); @@ -164,7 +164,7 @@ class VideoTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotRestoreRecord(): void + public function test_user_cannot_restore_record(): void { $record = VideoModel::factory()->createOne(); @@ -182,7 +182,7 @@ class VideoTest extends BaseResourceTestCase * * @return void */ - public function testUserCannotForceDeleteRecord(): void + public function test_user_cannot_force_delete_record(): void { $record = VideoModel::factory()->createOne(); diff --git a/tests/Unit/Http/Api/Criteria/Field/CriteriaTest.php b/tests/Unit/Http/Api/Criteria/Field/CriteriaTest.php index 84ef40055..0d7691dbe 100644 --- a/tests/Unit/Http/Api/Criteria/Field/CriteriaTest.php +++ b/tests/Unit/Http/Api/Criteria/Field/CriteriaTest.php @@ -21,7 +21,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testIsAllowedField(): void + public function test_is_allowed_field(): void { $fields = collect($this->faker->words($this->faker->randomDigitNotNull())); @@ -35,7 +35,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testIsNotAllowed(): void + public function test_is_not_allowed(): void { $fields = collect($this->faker->words($this->faker->randomDigitNotNull())); diff --git a/tests/Unit/Http/Api/Criteria/Filter/CriteriaTest.php b/tests/Unit/Http/Api/Criteria/Filter/CriteriaTest.php index 7f7b777e4..61d09b901 100644 --- a/tests/Unit/Http/Api/Criteria/Filter/CriteriaTest.php +++ b/tests/Unit/Http/Api/Criteria/Filter/CriteriaTest.php @@ -28,7 +28,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testShouldNotFilterIfKeyMismatch(): void + public function test_should_not_filter_if_key_mismatch(): void { $expression = new Expression($this->faker->word()); $comparisonOperator = Arr::random(ComparisonOperator::cases()); @@ -103,7 +103,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testShouldFilterIfKeyMatch(): void + public function test_should_filter_if_key_match(): void { $key = $this->faker->word(); @@ -180,7 +180,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testShouldNotFilterIfNotWithinScope(): void + public function test_should_not_filter_if_not_within_scope(): void { $key = $this->faker->word(); @@ -257,7 +257,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testShouldFilterIfWithinScope(): void + public function test_should_filter_if_within_scope(): void { $key = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Criteria/Filter/HasCriteriaTest.php b/tests/Unit/Http/Api/Criteria/Filter/HasCriteriaTest.php index ca46daf20..3ca420763 100644 --- a/tests/Unit/Http/Api/Criteria/Filter/HasCriteriaTest.php +++ b/tests/Unit/Http/Api/Criteria/Filter/HasCriteriaTest.php @@ -26,7 +26,7 @@ class HasCriteriaTest extends TestCase * * @return void */ - public function testField(): void + public function test_field(): void { $criteria = HasCriteria::make(new GlobalScope(), HasCriteria::PARAM_VALUE, $this->faker->word()); @@ -38,7 +38,7 @@ class HasCriteriaTest extends TestCase * * @return void */ - public function testDefaultComparisonOperator(): void + public function test_default_comparison_operator(): void { $criteria = HasCriteria::make(new GlobalScope(), HasCriteria::PARAM_VALUE, $this->faker->word()); @@ -50,7 +50,7 @@ class HasCriteriaTest extends TestCase * * @return void */ - public function testComparisonOperator(): void + public function test_comparison_operator(): void { $operator = Arr::random(ComparisonOperator::cases()); @@ -66,7 +66,7 @@ class HasCriteriaTest extends TestCase * * @return void */ - public function testDefaultCount(): void + public function test_default_count(): void { $criteria = HasCriteria::make(new GlobalScope(), HasCriteria::PARAM_VALUE, $this->faker->word()); @@ -78,7 +78,7 @@ class HasCriteriaTest extends TestCase * * @return void */ - public function testCount(): void + public function test_count(): void { $count = $this->faker->randomDigitNotNull(); @@ -94,7 +94,7 @@ class HasCriteriaTest extends TestCase * * @return void */ - public function testDefaultLogicalOperator(): void + public function test_default_logical_operator(): void { $criteria = HasCriteria::make(new GlobalScope(), $this->faker->word(), $this->faker->word()); @@ -106,7 +106,7 @@ class HasCriteriaTest extends TestCase * * @return void */ - public function testLogicalOperator(): void + public function test_logical_operator(): void { $operator = Arr::random(BinaryLogicalOperator::cases()); diff --git a/tests/Unit/Http/Api/Criteria/Filter/TrashedCriteriaTest.php b/tests/Unit/Http/Api/Criteria/Filter/TrashedCriteriaTest.php index 205dcdaaa..bf35002c1 100644 --- a/tests/Unit/Http/Api/Criteria/Filter/TrashedCriteriaTest.php +++ b/tests/Unit/Http/Api/Criteria/Filter/TrashedCriteriaTest.php @@ -21,7 +21,7 @@ class TrashedCriteriaTest extends TestCase * * @return void */ - public function testField(): void + public function test_field(): void { $criteria = TrashedCriteria::make(new GlobalScope(), TrashedCriteria::PARAM_VALUE, $this->faker->word()); diff --git a/tests/Unit/Http/Api/Criteria/Filter/WhereCriteriaTest.php b/tests/Unit/Http/Api/Criteria/Filter/WhereCriteriaTest.php index 8517671fd..2ee2658a3 100644 --- a/tests/Unit/Http/Api/Criteria/Filter/WhereCriteriaTest.php +++ b/tests/Unit/Http/Api/Criteria/Filter/WhereCriteriaTest.php @@ -26,7 +26,7 @@ class WhereCriteriaTest extends TestCase * * @return void */ - public function testField(): void + public function test_field(): void { $field = $this->faker->word(); @@ -40,7 +40,7 @@ class WhereCriteriaTest extends TestCase * * @return void */ - public function testDefaultComparisonOperator(): void + public function test_default_comparison_operator(): void { $criteria = WhereCriteria::make(new GlobalScope(), $this->faker->word(), $this->faker->word()); @@ -52,7 +52,7 @@ class WhereCriteriaTest extends TestCase * * @return void */ - public function testComparisonOperator(): void + public function test_comparison_operator(): void { $operator = Arr::random(ComparisonOperator::cases()); @@ -68,7 +68,7 @@ class WhereCriteriaTest extends TestCase * * @return void */ - public function testDefaultLogicalOperator(): void + public function test_default_logical_operator(): void { $criteria = WhereCriteria::make(new GlobalScope(), $this->faker->word(), $this->faker->word()); @@ -80,7 +80,7 @@ class WhereCriteriaTest extends TestCase * * @return void */ - public function testLogicalOperator(): void + public function test_logical_operator(): void { $operator = Arr::random(BinaryLogicalOperator::cases()); diff --git a/tests/Unit/Http/Api/Criteria/Filter/WhereInCriteriaTest.php b/tests/Unit/Http/Api/Criteria/Filter/WhereInCriteriaTest.php index 5185e3a78..3eab1c80f 100644 --- a/tests/Unit/Http/Api/Criteria/Filter/WhereInCriteriaTest.php +++ b/tests/Unit/Http/Api/Criteria/Filter/WhereInCriteriaTest.php @@ -27,7 +27,7 @@ class WhereInCriteriaTest extends TestCase * * @return void */ - public function testField(): void + public function test_field(): void { $field = $this->faker->word(); @@ -41,7 +41,7 @@ class WhereInCriteriaTest extends TestCase * * @return void */ - public function testComparisonOperator(): void + public function test_comparison_operator(): void { $operator = Arr::random(ComparisonOperator::cases()); @@ -62,7 +62,7 @@ class WhereInCriteriaTest extends TestCase * * @return void */ - public function testDefaultLogicalOperator(): void + public function test_default_logical_operator(): void { $criteria = WhereInCriteria::make(new GlobalScope(), $this->faker->word(), $this->faker->word()); @@ -74,7 +74,7 @@ class WhereInCriteriaTest extends TestCase * * @return void */ - public function testLogicalOperator(): void + public function test_logical_operator(): void { $operator = Arr::random(BinaryLogicalOperator::cases()); @@ -90,7 +90,7 @@ class WhereInCriteriaTest extends TestCase * * @return void */ - public function testDefaultUnaryOperator(): void + public function test_default_unary_operator(): void { $criteria = WhereInCriteria::make(new GlobalScope(), $this->faker->word(), $this->faker->word()); @@ -102,7 +102,7 @@ class WhereInCriteriaTest extends TestCase * * @return void */ - public function testUnaryOperator(): void + public function test_unary_operator(): void { $filterParam = Str::of($this->faker->word()) ->append(Criteria::PARAM_SEPARATOR) diff --git a/tests/Unit/Http/Api/Criteria/Paging/CriteriaTest.php b/tests/Unit/Http/Api/Criteria/Paging/CriteriaTest.php index da8a35eb1..b09396b25 100644 --- a/tests/Unit/Http/Api/Criteria/Paging/CriteriaTest.php +++ b/tests/Unit/Http/Api/Criteria/Paging/CriteriaTest.php @@ -24,7 +24,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testDefaultSize(): void + public function test_default_size(): void { $resultSize = $this->faker->numberBetween(1, Criteria::MAX_RESULTS); @@ -60,7 +60,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testUpperBoundSize(): void + public function test_upper_bound_size(): void { $resultSize = Criteria::MAX_RESULTS + $this->faker->randomDigitNotNull(); @@ -96,7 +96,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testLowerBoundSize(): void + public function test_lower_bound_size(): void { $resultSize = $this->faker->randomDigit() * -1; diff --git a/tests/Unit/Http/Api/Criteria/Sort/CriteriaTest.php b/tests/Unit/Http/Api/Criteria/Sort/CriteriaTest.php index a654a5c7d..1bbfe3198 100644 --- a/tests/Unit/Http/Api/Criteria/Sort/CriteriaTest.php +++ b/tests/Unit/Http/Api/Criteria/Sort/CriteriaTest.php @@ -25,7 +25,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testShouldNotSortIfKeyMismatch(): void + public function test_should_not_sort_if_key_mismatch(): void { $criteria = new class(new GlobalScope(), $this->faker->word()) extends Criteria { @@ -52,7 +52,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testShouldSortIfKeyMatch(): void + public function test_should_sort_if_key_match(): void { $key = $this->faker->word(); @@ -81,7 +81,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testShouldNotSortIfNotWithinScope(): void + public function test_should_not_sort_if_not_within_scope(): void { $key = $this->faker->word(); @@ -112,7 +112,7 @@ class CriteriaTest extends TestCase * * @return void */ - public function testShouldSortIfWithinScope(): void + public function test_should_sort_if_within_scope(): void { $key = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Filter/BooleanFilterTest.php b/tests/Unit/Http/Api/Filter/BooleanFilterTest.php index b096736b7..8e877c01b 100644 --- a/tests/Unit/Http/Api/Filter/BooleanFilterTest.php +++ b/tests/Unit/Http/Api/Filter/BooleanFilterTest.php @@ -24,7 +24,7 @@ class BooleanFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfNoBooleans(): void + public function test_should_not_apply_if_no_booleans(): void { $filterField = $this->faker->word(); @@ -40,7 +40,7 @@ class BooleanFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfAllBooleans(): void + public function test_should_not_apply_if_all_booleans(): void { $filterField = $this->faker->word(); @@ -56,7 +56,7 @@ class BooleanFilterTest extends TestCase * * @return void */ - public function testConvertsValidatedBoolean(): void + public function test_converts_validated_boolean(): void { $booleanValue = $this->faker->boolean(); diff --git a/tests/Unit/Http/Api/Filter/DateFilterTest.php b/tests/Unit/Http/Api/Filter/DateFilterTest.php index 6ce8218a8..c5e3d7979 100644 --- a/tests/Unit/Http/Api/Filter/DateFilterTest.php +++ b/tests/Unit/Http/Api/Filter/DateFilterTest.php @@ -27,7 +27,7 @@ class DateFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfNoDates(): void + public function test_should_not_apply_if_no_dates(): void { $filterField = $this->faker->word(); @@ -43,7 +43,7 @@ class DateFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfWrongFormat(): void + public function test_should_not_apply_if_wrong_format(): void { $filterField = $this->faker->word(); @@ -59,7 +59,7 @@ class DateFilterTest extends TestCase * * @return void */ - public function testShouldApplyIfAcceptedFormat(): void + public function test_should_apply_if_accepted_format(): void { $filterField = $this->faker->word(); @@ -77,7 +77,7 @@ class DateFilterTest extends TestCase * * @return void */ - public function testConvertsDatesToCanonicalFormat(): void + public function test_converts_dates_to_canonical_format(): void { $filterField = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Filter/EnumFilterTest.php b/tests/Unit/Http/Api/Filter/EnumFilterTest.php index 6712f36e4..c30f21ba5 100644 --- a/tests/Unit/Http/Api/Filter/EnumFilterTest.php +++ b/tests/Unit/Http/Api/Filter/EnumFilterTest.php @@ -24,7 +24,7 @@ class EnumFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfNoEnums(): void + public function test_should_not_apply_if_no_enums(): void { $filterField = $this->faker->word(); @@ -40,7 +40,7 @@ class EnumFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfAllEnums(): void + public function test_should_not_apply_if_all_enums(): void { $filterField = $this->faker->word(); @@ -60,7 +60,7 @@ class EnumFilterTest extends TestCase * * @return void */ - public function testEnumKeyConvertedToValue(): void + public function test_enum_key_converted_to_value(): void { $filterField = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Filter/FilterTest.php b/tests/Unit/Http/Api/Filter/FilterTest.php index b77e5443d..45a6100ef 100644 --- a/tests/Unit/Http/Api/Filter/FilterTest.php +++ b/tests/Unit/Http/Api/Filter/FilterTest.php @@ -21,7 +21,7 @@ class FilterTest extends TestCase * * @return void */ - public function testDefaultColumn(): void + public function test_default_column(): void { $filter = new class($this->faker->word()) extends Filter { diff --git a/tests/Unit/Http/Api/Filter/FloatFilterTest.php b/tests/Unit/Http/Api/Filter/FloatFilterTest.php index 34200755d..145db0e9c 100644 --- a/tests/Unit/Http/Api/Filter/FloatFilterTest.php +++ b/tests/Unit/Http/Api/Filter/FloatFilterTest.php @@ -22,7 +22,7 @@ class FloatFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfNoFloats(): void + public function test_should_not_apply_if_no_floats(): void { $filterField = $this->faker->word(); @@ -38,7 +38,7 @@ class FloatFilterTest extends TestCase * * @return void */ - public function testConvertsValidatedFloats(): void + public function test_converts_validated_floats(): void { $filterField = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Filter/HasFilterTest.php b/tests/Unit/Http/Api/Filter/HasFilterTest.php index 04b683760..d22258250 100644 --- a/tests/Unit/Http/Api/Filter/HasFilterTest.php +++ b/tests/Unit/Http/Api/Filter/HasFilterTest.php @@ -28,7 +28,7 @@ class HasFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfNoAllowedPaths(): void + public function test_should_not_apply_if_no_allowed_paths(): void { $criteria = FakeCriteria::make(new GlobalScope(), HasCriteria::PARAM_VALUE, Str::random()); @@ -82,7 +82,7 @@ class HasFilterTest extends TestCase * * @return void */ - public function testShouldApplyIfAllowedPaths(): void + public function test_should_apply_if_allowed_paths(): void { $schema = new class() extends Schema { diff --git a/tests/Unit/Http/Api/Filter/IntFilterTest.php b/tests/Unit/Http/Api/Filter/IntFilterTest.php index 8a14a7426..1b5947dba 100644 --- a/tests/Unit/Http/Api/Filter/IntFilterTest.php +++ b/tests/Unit/Http/Api/Filter/IntFilterTest.php @@ -22,7 +22,7 @@ class IntFilterTest extends TestCase * * @return void */ - public function testShouldNotApplyIfNoIntegers(): void + public function test_should_not_apply_if_no_integers(): void { $filterField = $this->faker->word(); @@ -38,7 +38,7 @@ class IntFilterTest extends TestCase * * @return void */ - public function testConvertsValidatedIntegers(): void + public function test_converts_validated_integers(): void { $filterField = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Parser/FieldParserTest.php b/tests/Unit/Http/Api/Parser/FieldParserTest.php index 9e30e3ca0..ac30a7551 100644 --- a/tests/Unit/Http/Api/Parser/FieldParserTest.php +++ b/tests/Unit/Http/Api/Parser/FieldParserTest.php @@ -21,7 +21,7 @@ class FieldParserTest extends TestCase * * @return void */ - public function testNoCriteriaByDefault(): void + public function test_no_criteria_by_default(): void { $parameters = []; @@ -33,7 +33,7 @@ class FieldParserTest extends TestCase * * @return void */ - public function testParseCriteria(): void + public function test_parse_criteria(): void { $fields = collect($this->faker()->words($this->faker->randomDigitNotNull())); @@ -53,7 +53,7 @@ class FieldParserTest extends TestCase * * @return void */ - public function testParseType(): void + public function test_parse_type(): void { $type = $this->faker->word(); @@ -75,7 +75,7 @@ class FieldParserTest extends TestCase * * @return void */ - public function testParseFields(): void + public function test_parse_fields(): void { $fields = $this->faker()->words($this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Http/Api/Parser/FilterParserTest.php b/tests/Unit/Http/Api/Parser/FilterParserTest.php index 5efad7026..bac1e0b4b 100644 --- a/tests/Unit/Http/Api/Parser/FilterParserTest.php +++ b/tests/Unit/Http/Api/Parser/FilterParserTest.php @@ -27,7 +27,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testNoCriteriaByDefault(): void + public function test_no_criteria_by_default(): void { $parameters = []; @@ -39,7 +39,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testParseTrashedCriteria(): void + public function test_parse_trashed_criteria(): void { $parameters = [ FilterParser::param() => [ @@ -57,7 +57,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testParseWhereInCriteria(): void + public function test_parse_where_in_criteria(): void { $fields = collect($this->faker()->words()); @@ -77,7 +77,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testParseHasCriteria(): void + public function test_parse_has_criteria(): void { $parameters = [ FilterParser::param() => [ @@ -95,7 +95,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testParseWhereCriteria(): void + public function test_parse_where_criteria(): void { $parameters = [ FilterParser::param() => [ @@ -113,7 +113,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testParseGlobalScope(): void + public function test_parse_global_scope(): void { $parameters = [ FilterParser::param() => [ @@ -131,7 +131,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testParseTypeScope(): void + public function test_parse_type_scope(): void { $type = Str::singular($this->faker->word()); diff --git a/tests/Unit/Http/Api/Parser/IncludeParserTest.php b/tests/Unit/Http/Api/Parser/IncludeParserTest.php index 1d812203a..1a5b4c1e0 100644 --- a/tests/Unit/Http/Api/Parser/IncludeParserTest.php +++ b/tests/Unit/Http/Api/Parser/IncludeParserTest.php @@ -22,7 +22,7 @@ class IncludeParserTest extends TestCase * * @return void */ - public function testNoCriteriaByDefault(): void + public function test_no_criteria_by_default(): void { $parameters = []; @@ -34,7 +34,7 @@ class IncludeParserTest extends TestCase * * @return void */ - public function testParseCriteria(): void + public function test_parse_criteria(): void { $fields = collect($this->faker()->words($this->faker->randomDigitNotNull())); @@ -52,7 +52,7 @@ class IncludeParserTest extends TestCase * * @return void */ - public function testParseCriteriaPaths(): void + public function test_parse_criteria_paths(): void { $fields = $this->faker()->words($this->faker->randomDigitNotNull()); @@ -70,7 +70,7 @@ class IncludeParserTest extends TestCase * * @return void */ - public function testParseResourceCriteria(): void + public function test_parse_resource_criteria(): void { $fields = collect($this->faker()->words($this->faker->randomDigitNotNull())); @@ -90,7 +90,7 @@ class IncludeParserTest extends TestCase * * @return void */ - public function testParseResourceCriteriaType(): void + public function test_parse_resource_criteria_type(): void { $type = $this->faker->word(); @@ -115,7 +115,7 @@ class IncludeParserTest extends TestCase * * @return void */ - public function testParseResourceCriteriaPaths(): void + public function test_parse_resource_criteria_paths(): void { $fields = $this->faker()->words($this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Http/Api/Parser/PagingParserTest.php b/tests/Unit/Http/Api/Parser/PagingParserTest.php index c807312ca..886d18754 100644 --- a/tests/Unit/Http/Api/Parser/PagingParserTest.php +++ b/tests/Unit/Http/Api/Parser/PagingParserTest.php @@ -24,12 +24,12 @@ class PagingParserTest extends TestCase * * @return void */ - public function testParseLimitCriteriaByDefault(): void + public function test_parse_limit_criteria_by_default(): void { $parameters = []; $criteria = collect(PagingParser::parse($parameters))->first(function (Criteria $criteria) { - return PaginationStrategy::LIMIT === $criteria->getStrategy(); + return $criteria->getStrategy() === PaginationStrategy::LIMIT; }); static::assertInstanceOf(LimitCriteria::class, $criteria); @@ -40,7 +40,7 @@ class PagingParserTest extends TestCase * * @return void */ - public function testParseInvalidLimitCriteria(): void + public function test_parse_invalid_limit_criteria(): void { $limit = $this->faker->word(); @@ -51,7 +51,7 @@ class PagingParserTest extends TestCase ]; $criteria = collect(PagingParser::parse($parameters))->first(function (Criteria $criteria) { - return PaginationStrategy::LIMIT === $criteria->getStrategy(); + return $criteria->getStrategy() === PaginationStrategy::LIMIT; }); static::assertTrue( @@ -65,7 +65,7 @@ class PagingParserTest extends TestCase * * @return void */ - public function testParseValidLimitCriteria(): void + public function test_parse_valid_limit_criteria(): void { $limit = $this->faker->numberBetween(1, Criteria::DEFAULT_SIZE); @@ -76,7 +76,7 @@ class PagingParserTest extends TestCase ]; $criteria = collect(PagingParser::parse($parameters))->first(function (Criteria $criteria) { - return PaginationStrategy::LIMIT === $criteria->getStrategy(); + return $criteria->getStrategy() === PaginationStrategy::LIMIT; }); static::assertTrue( @@ -90,12 +90,12 @@ class PagingParserTest extends TestCase * * @return void */ - public function testParseOffsetCriteriaByDefault(): void + public function test_parse_offset_criteria_by_default(): void { $parameters = []; $criteria = collect(PagingParser::parse($parameters))->first(function (Criteria $criteria) { - return PaginationStrategy::OFFSET === $criteria->getStrategy(); + return $criteria->getStrategy() === PaginationStrategy::OFFSET; }); static::assertInstanceOf(OffsetCriteria::class, $criteria); @@ -106,7 +106,7 @@ class PagingParserTest extends TestCase * * @return void */ - public function testParseInvalidOffsetCriteria(): void + public function test_parse_invalid_offset_criteria(): void { $size = $this->faker->word(); @@ -117,7 +117,7 @@ class PagingParserTest extends TestCase ]; $criteria = collect(PagingParser::parse($parameters))->first(function (Criteria $criteria) { - return PaginationStrategy::OFFSET === $criteria->getStrategy(); + return $criteria->getStrategy() === PaginationStrategy::OFFSET; }); static::assertTrue( @@ -131,7 +131,7 @@ class PagingParserTest extends TestCase * * @return void */ - public function testParseValidOffsetCriteria(): void + public function test_parse_valid_offset_criteria(): void { $size = $this->faker->numberBetween(1, Criteria::MAX_RESULTS); @@ -142,7 +142,7 @@ class PagingParserTest extends TestCase ]; $criteria = collect(PagingParser::parse($parameters))->first(function (Criteria $criteria) { - return PaginationStrategy::OFFSET === $criteria->getStrategy(); + return $criteria->getStrategy() === PaginationStrategy::OFFSET; }); static::assertTrue( diff --git a/tests/Unit/Http/Api/Parser/SearchParserTest.php b/tests/Unit/Http/Api/Parser/SearchParserTest.php index 053ddf893..949c79c24 100644 --- a/tests/Unit/Http/Api/Parser/SearchParserTest.php +++ b/tests/Unit/Http/Api/Parser/SearchParserTest.php @@ -21,7 +21,7 @@ class SearchParserTest extends TestCase * * @return void */ - public function testNoCriteriaByDefault(): void + public function test_no_criteria_by_default(): void { $parameters = []; @@ -33,7 +33,7 @@ class SearchParserTest extends TestCase * * @return void */ - public function testParseSearchCriteria(): void + public function test_parse_search_criteria(): void { $parameters = [ SearchParser::param() => $this->faker->word(), @@ -49,7 +49,7 @@ class SearchParserTest extends TestCase * * @return void */ - public function testParseSearchCriteriaTerm(): void + public function test_parse_search_criteria_term(): void { $term = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Parser/SortParserTest.php b/tests/Unit/Http/Api/Parser/SortParserTest.php index 3a189a581..2e961d078 100644 --- a/tests/Unit/Http/Api/Parser/SortParserTest.php +++ b/tests/Unit/Http/Api/Parser/SortParserTest.php @@ -27,7 +27,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testNoCriteriaByDefault(): void + public function test_no_criteria_by_default(): void { $parameters = []; @@ -39,7 +39,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testParseRandomCriteria(): void + public function test_parse_random_criteria(): void { $parameters = [ SortParser::param() => RandomCriteria::PARAM_VALUE, @@ -55,7 +55,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testParseRelationCriteria(): void + public function test_parse_relation_criteria(): void { $parameters = [ SortParser::param() => collect($this->faker->words())->join('.'), @@ -71,7 +71,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testParseFieldCriteria(): void + public function test_parse_field_criteria(): void { $parameters = [ SortParser::param() => $this->faker->word(), @@ -87,7 +87,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testParseCriteriaField(): void + public function test_parse_criteria_field(): void { $field = $this->faker->word(); @@ -105,7 +105,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testParseDefaultDirection(): void + public function test_parse_default_direction(): void { $parameters = [ SortParser::param() => $this->faker->word(), @@ -115,7 +115,7 @@ class SortParserTest extends TestCase static::assertTrue( $criteria instanceof FieldCriteria - && Direction::ASCENDING === $criteria->getDirection() + && $criteria->getDirection() === Direction::ASCENDING ); } @@ -124,7 +124,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testParseDescendingDirection(): void + public function test_parse_descending_direction(): void { $field = Str::of('-')->append($this->faker->word())->__toString(); @@ -136,7 +136,7 @@ class SortParserTest extends TestCase static::assertTrue( $criteria instanceof FieldCriteria - && Direction::DESCENDING === $criteria->getDirection() + && $criteria->getDirection() === Direction::DESCENDING ); } @@ -145,7 +145,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testParseGlobalScope(): void + public function test_parse_global_scope(): void { $parameters = [ SortParser::param() => $this->faker->word(), @@ -161,7 +161,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testParseTypeScope(): void + public function test_parse_type_scope(): void { $type = Str::singular($this->faker->word()); diff --git a/tests/Unit/Http/Api/Query/QueryTest.php b/tests/Unit/Http/Api/Query/QueryTest.php index dafe11c8e..813d79767 100644 --- a/tests/Unit/Http/Api/Query/QueryTest.php +++ b/tests/Unit/Http/Api/Query/QueryTest.php @@ -33,7 +33,7 @@ class QueryTest extends TestCase * * @return void */ - public function testGetFieldCriteria(): void + public function test_get_field_criteria(): void { $type = $this->faker->word(); @@ -53,7 +53,7 @@ class QueryTest extends TestCase * * @return void */ - public function testGetIncludeCriteria(): void + public function test_get_include_criteria(): void { $parameters = [ IncludeParser::param() => $this->faker->word(), @@ -69,7 +69,7 @@ class QueryTest extends TestCase * * @return void */ - public function testGetIncludeResourceCriteria(): void + public function test_get_include_resource_criteria(): void { $type = $this->faker->word(); @@ -89,7 +89,7 @@ class QueryTest extends TestCase * * @return void */ - public function testGetSortCriteria(): void + public function test_get_sort_criteria(): void { $fields = collect($this->faker()->words($this->faker->randomDigitNotNull())); @@ -107,7 +107,7 @@ class QueryTest extends TestCase * * @return void */ - public function testGetFilterCriteria(): void + public function test_get_filter_criteria(): void { $filterCount = $this->faker->randomDigitNotNull(); @@ -126,7 +126,7 @@ class QueryTest extends TestCase * * @return void */ - public function testDoesNotHaveSearch(): void + public function test_does_not_have_search(): void { $parameters = []; @@ -140,7 +140,7 @@ class QueryTest extends TestCase * * @return void */ - public function testHasSearch(): void + public function test_has_search(): void { $parameters = [ SearchParser::param() => $this->faker->word(), @@ -156,7 +156,7 @@ class QueryTest extends TestCase * * @return void */ - public function testNullSearch(): void + public function test_null_search(): void { $parameters = []; @@ -170,7 +170,7 @@ class QueryTest extends TestCase * * @return void */ - public function testGetSearch(): void + public function test_get_search(): void { $parameters = [ SearchParser::param() => $this->faker->word(), @@ -186,7 +186,7 @@ class QueryTest extends TestCase * * @return void */ - public function testGetLimitCriteria(): void + public function test_get_limit_criteria(): void { $parameters = []; @@ -200,7 +200,7 @@ class QueryTest extends TestCase * * @return void */ - public function testGetOffsetCriteria(): void + public function test_get_offset_criteria(): void { $parameters = []; diff --git a/tests/Unit/Http/Api/Scope/GlobalScopeTest.php b/tests/Unit/Http/Api/Scope/GlobalScopeTest.php index 0361f2b14..5686d878d 100644 --- a/tests/Unit/Http/Api/Scope/GlobalScopeTest.php +++ b/tests/Unit/Http/Api/Scope/GlobalScopeTest.php @@ -22,7 +22,7 @@ class GlobalScopeTest extends TestCase * * @return void */ - public function testGlobalScopeIsWithinScope(): void + public function test_global_scope_is_within_scope(): void { $scope = new GlobalScope(); @@ -36,7 +36,7 @@ class GlobalScopeTest extends TestCase * * @return void */ - public function testTypeScopeIsWithinScope(): void + public function test_type_scope_is_within_scope(): void { $scope = new GlobalScope(); @@ -50,7 +50,7 @@ class GlobalScopeTest extends TestCase * * @return void */ - public function testRelationScopeIsWithinScope(): void + public function test_relation_scope_is_within_scope(): void { $scope = new GlobalScope(); diff --git a/tests/Unit/Http/Api/Scope/RelationScopeTest.php b/tests/Unit/Http/Api/Scope/RelationScopeTest.php index 5eec9a2b3..3dc2882fe 100644 --- a/tests/Unit/Http/Api/Scope/RelationScopeTest.php +++ b/tests/Unit/Http/Api/Scope/RelationScopeTest.php @@ -22,7 +22,7 @@ class RelationScopeTest extends TestCase * * @return void */ - public function testGlobalScopeIsNotWithinScope(): void + public function test_global_scope_is_not_within_scope(): void { $scope = new RelationScope($this->faker->word()); @@ -36,7 +36,7 @@ class RelationScopeTest extends TestCase * * @return void */ - public function testTypeScopeIsNotWithinScope(): void + public function test_type_scope_is_not_within_scope(): void { $scope = new RelationScope($this->faker->word()); @@ -50,7 +50,7 @@ class RelationScopeTest extends TestCase * * @return void */ - public function testUnequalRelationIsNotWithinScope(): void + public function test_unequal_relation_is_not_within_scope(): void { $scope = new RelationScope($this->faker->word()); @@ -64,7 +64,7 @@ class RelationScopeTest extends TestCase * * @return void */ - public function testRelationIsWithinScope(): void + public function test_relation_is_within_scope(): void { $relation = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Scope/ScopeParserTest.php b/tests/Unit/Http/Api/Scope/ScopeParserTest.php index e5c225919..6c67bfcb6 100644 --- a/tests/Unit/Http/Api/Scope/ScopeParserTest.php +++ b/tests/Unit/Http/Api/Scope/ScopeParserTest.php @@ -23,7 +23,7 @@ class ScopeParserTest extends TestCase * * @return void */ - public function testParseGlobalScope(): void + public function test_parse_global_scope(): void { static::assertInstanceOf(GlobalScope::class, ScopeParser::parse('')); } @@ -33,7 +33,7 @@ class ScopeParserTest extends TestCase * * @return void */ - public function testParseTypeScope(): void + public function test_parse_type_scope(): void { static::assertInstanceOf(TypeScope::class, ScopeParser::parse($this->faker->word())); } @@ -43,7 +43,7 @@ class ScopeParserTest extends TestCase * * @return void */ - public function testParseRelationScope(): void + public function test_parse_relation_scope(): void { $relation = collect($this->faker->words())->join('.'); diff --git a/tests/Unit/Http/Api/Scope/TypeScopeTest.php b/tests/Unit/Http/Api/Scope/TypeScopeTest.php index a83551317..9a99bdb87 100644 --- a/tests/Unit/Http/Api/Scope/TypeScopeTest.php +++ b/tests/Unit/Http/Api/Scope/TypeScopeTest.php @@ -22,7 +22,7 @@ class TypeScopeTest extends TestCase * * @return void */ - public function testGlobalScopeIsNotWithinScope(): void + public function test_global_scope_is_not_within_scope(): void { $scope = new TypeScope($this->faker->word()); @@ -36,7 +36,7 @@ class TypeScopeTest extends TestCase * * @return void */ - public function testTypeScopeIsNotWithinScope(): void + public function test_type_scope_is_not_within_scope(): void { $scope = new TypeScope($this->faker->word()); @@ -50,7 +50,7 @@ class TypeScopeTest extends TestCase * * @return void */ - public function testTypeScopeIsWithinScope(): void + public function test_type_scope_is_within_scope(): void { $type = $this->faker->word(); @@ -66,7 +66,7 @@ class TypeScopeTest extends TestCase * * @return void */ - public function testRelationScopeIsNotWithinScope(): void + public function test_relation_scope_is_not_within_scope(): void { $scope = new TypeScope($this->faker->word()); @@ -80,7 +80,7 @@ class TypeScopeTest extends TestCase * * @return void */ - public function testRelationScopeIsWithinScope(): void + public function test_relation_scope_is_within_scope(): void { $type = $this->faker->word(); diff --git a/tests/Unit/Http/Api/Sort/RandomSortTest.php b/tests/Unit/Http/Api/Sort/RandomSortTest.php index 036b78a51..c47bea750 100644 --- a/tests/Unit/Http/Api/Sort/RandomSortTest.php +++ b/tests/Unit/Http/Api/Sort/RandomSortTest.php @@ -23,7 +23,7 @@ class RandomSortTest extends TestCase * * @return void */ - public function testFormat(): void + public function test_format(): void { $sort = new RandomSort(); diff --git a/tests/Unit/Http/Api/Sort/SortTest.php b/tests/Unit/Http/Api/Sort/SortTest.php index 0662b2be6..5f605a682 100644 --- a/tests/Unit/Http/Api/Sort/SortTest.php +++ b/tests/Unit/Http/Api/Sort/SortTest.php @@ -21,7 +21,7 @@ class SortTest extends TestCase * * @return void */ - public function testDefaultColumn(): void + public function test_default_column(): void { $sort = new Sort($this->faker->word()); @@ -33,7 +33,7 @@ class SortTest extends TestCase * * @return void */ - public function testFormatAsc(): void + public function test_format_asc(): void { $sortField = $this->faker->word(); @@ -47,7 +47,7 @@ class SortTest extends TestCase * * @return void */ - public function testFormatDesc(): void + public function test_format_desc(): void { $sortField = $this->faker->word(); diff --git a/tests/Unit/Models/Admin/AnnouncementTest.php b/tests/Unit/Models/Admin/AnnouncementTest.php index 949f419ff..918505dab 100644 --- a/tests/Unit/Models/Admin/AnnouncementTest.php +++ b/tests/Unit/Models/Admin/AnnouncementTest.php @@ -17,7 +17,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $announcement = Announcement::factory()->createOne(); @@ -29,7 +29,7 @@ class AnnouncementTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $announcement = Announcement::factory()->createOne(); diff --git a/tests/Unit/Models/Admin/DumpTest.php b/tests/Unit/Models/Admin/DumpTest.php index edd1dba6a..ef16b51af 100644 --- a/tests/Unit/Models/Admin/DumpTest.php +++ b/tests/Unit/Models/Admin/DumpTest.php @@ -17,7 +17,7 @@ class DumpTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $dump = Dump::factory()->createOne(); @@ -29,7 +29,7 @@ class DumpTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $dump = Dump::factory()->createOne(); diff --git a/tests/Unit/Models/Admin/FeatureTest.php b/tests/Unit/Models/Admin/FeatureTest.php index a4b8426e3..1b6ca59dc 100644 --- a/tests/Unit/Models/Admin/FeatureTest.php +++ b/tests/Unit/Models/Admin/FeatureTest.php @@ -20,7 +20,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $feature = Feature::factory()->createOne(); @@ -32,7 +32,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $feature = Feature::factory()->createOne(); @@ -44,7 +44,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testNullableScope(): void + public function test_nullable_scope(): void { $feature = Feature::factory()->createOne(); @@ -56,7 +56,7 @@ class FeatureTest extends TestCase * * @return void */ - public function testNonNullScope(): void + public function test_non_null_scope(): void { $feature = Feature::factory()->createOne([ Feature::ATTRIBUTE_SCOPE => $this->faker->word(), diff --git a/tests/Unit/Models/Admin/FeaturedThemeTest.php b/tests/Unit/Models/Admin/FeaturedThemeTest.php index 4c6cb396c..fb26cf5fe 100644 --- a/tests/Unit/Models/Admin/FeaturedThemeTest.php +++ b/tests/Unit/Models/Admin/FeaturedThemeTest.php @@ -24,7 +24,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -36,7 +36,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $featuredTheme = FeaturedTheme::factory() ->for(AnimeThemeEntry::factory()->for(AnimeTheme::factory()->for(Anime::factory()))) @@ -50,7 +50,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testCastsEndAt(): void + public function test_casts_end_at(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -62,7 +62,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testCastsStartAt(): void + public function test_casts_start_at(): void { $featuredTheme = FeaturedTheme::factory()->createOne(); @@ -74,7 +74,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testUser(): void + public function test_user(): void { $featuredTheme = FeaturedTheme::factory() ->for(User::factory()) @@ -89,7 +89,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testVideo(): void + public function test_video(): void { $featuredTheme = FeaturedTheme::factory() ->for(Video::factory()) @@ -104,7 +104,7 @@ class FeaturedThemeTest extends TestCase * * @return void */ - public function testEntry(): void + public function test_entry(): void { $featuredTheme = FeaturedTheme::factory() ->for(AnimeThemeEntry::factory()->for(AnimeTheme::factory()->for(Anime::factory()))) diff --git a/tests/Unit/Models/Auth/UserTest.php b/tests/Unit/Models/Auth/UserTest.php index 48016d271..7b83f159a 100644 --- a/tests/Unit/Models/Auth/UserTest.php +++ b/tests/Unit/Models/Auth/UserTest.php @@ -26,7 +26,7 @@ class UserTest extends TestCase * * @return void */ - public function testTokens(): void + public function test_tokens(): void { $user = User::factory()->createOne(); @@ -42,7 +42,7 @@ class UserTest extends TestCase * * @return void */ - public function testVerificationEmailNotification(): void + public function test_verification_email_notification(): void { $user = User::factory()->createOne(); @@ -56,7 +56,7 @@ class UserTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $user = User::factory()->createOne(); @@ -68,7 +68,7 @@ class UserTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $user = User::factory()->createOne(); @@ -80,7 +80,7 @@ class UserTest extends TestCase * * @return void */ - public function testPlaylists(): void + public function test_playlists(): void { $playlistCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/Discord/DiscordThreadTest.php b/tests/Unit/Models/Discord/DiscordThreadTest.php index abc3e516a..5f517fc12 100644 --- a/tests/Unit/Models/Discord/DiscordThreadTest.php +++ b/tests/Unit/Models/Discord/DiscordThreadTest.php @@ -22,7 +22,7 @@ class DiscordThreadTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $thread = DiscordThread::factory() ->for(Anime::factory()) @@ -36,7 +36,7 @@ class DiscordThreadTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $thread = DiscordThread::factory() ->for(Anime::factory()) @@ -50,7 +50,7 @@ class DiscordThreadTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $thread = DiscordThread::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Models/Document/PageTest.php b/tests/Unit/Models/Document/PageTest.php index 553ee7422..b37960859 100644 --- a/tests/Unit/Models/Document/PageTest.php +++ b/tests/Unit/Models/Document/PageTest.php @@ -17,7 +17,7 @@ class PageTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $page = Page::factory()->createOne(); @@ -29,7 +29,7 @@ class PageTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $page = Page::factory()->createOne(); diff --git a/tests/Unit/Models/List/External/ExternalEntryTest.php b/tests/Unit/Models/List/External/ExternalEntryTest.php index ed05b7cae..c9b68239f 100644 --- a/tests/Unit/Models/List/External/ExternalEntryTest.php +++ b/tests/Unit/Models/List/External/ExternalEntryTest.php @@ -21,7 +21,7 @@ class ExternalEntryTest extends TestCase * * @return void */ - public function testCastsWatchStatusToEnum(): void + public function test_casts_watch_status_to_enum(): void { $entry = ExternalEntry::factory() ->for(ExternalProfile::factory()) @@ -37,7 +37,7 @@ class ExternalEntryTest extends TestCase * * @return void */ - public function testCastsIsFavoriteToBool(): void + public function test_casts_is_favorite_to_bool(): void { $entry = ExternalEntry::factory() ->for(ExternalProfile::factory()) @@ -53,7 +53,7 @@ class ExternalEntryTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $entry = ExternalEntry::factory() ->for(ExternalProfile::factory()) @@ -67,7 +67,7 @@ class ExternalEntryTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $entry = ExternalEntry::factory() ->for(ExternalProfile::factory()) @@ -82,7 +82,7 @@ class ExternalEntryTest extends TestCase * * @return void */ - public function testProfile(): void + public function test_profile(): void { $entry = ExternalEntry::factory() ->for(ExternalProfile::factory()) @@ -97,7 +97,7 @@ class ExternalEntryTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $entry = ExternalEntry::factory() ->for(ExternalProfile::factory()) diff --git a/tests/Unit/Models/List/External/ExternalTokenTest.php b/tests/Unit/Models/List/External/ExternalTokenTest.php index b48187431..9c9deceb3 100644 --- a/tests/Unit/Models/List/External/ExternalTokenTest.php +++ b/tests/Unit/Models/List/External/ExternalTokenTest.php @@ -21,7 +21,7 @@ class ExternalTokenTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $token = ExternalToken::factory() ->createOne(); @@ -34,7 +34,7 @@ class ExternalTokenTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $token = ExternalToken::factory() ->for(ExternalProfile::factory()) @@ -48,7 +48,7 @@ class ExternalTokenTest extends TestCase * * @return void */ - public function testProfile(): void + public function test_profile(): void { $token = ExternalToken::factory() ->for(ExternalProfile::factory()) @@ -63,7 +63,7 @@ class ExternalTokenTest extends TestCase * * @return void */ - public function testUser(): void + public function test_user(): void { $token = ExternalToken::factory() ->for(ExternalProfile::factory()->for(User::factory())) diff --git a/tests/Unit/Models/List/ExternalProfileTest.php b/tests/Unit/Models/List/ExternalProfileTest.php index 193d90969..5778f8756 100644 --- a/tests/Unit/Models/List/ExternalProfileTest.php +++ b/tests/Unit/Models/List/ExternalProfileTest.php @@ -29,7 +29,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testCastsSiteToEnum(): void + public function test_casts_site_to_enum(): void { $profile = ExternalProfile::factory()->createOne(); @@ -43,7 +43,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testCastsVisibilityToEnum(): void + public function test_casts_visibility_to_enum(): void { $profile = ExternalProfile::factory()->createOne(); @@ -57,7 +57,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $profile = ExternalProfile::factory()->createOne(); @@ -69,7 +69,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $profile = ExternalProfile::factory() ->for(User::factory()) @@ -83,7 +83,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testSearchableIfPublic(): void + public function test_searchable_if_public(): void { $profile = ExternalProfile::factory() ->createOne([ @@ -98,13 +98,13 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testNotSearchableIfNotPublic(): void + public function test_not_searchable_if_not_public(): void { $visibility = null; while ($visibility == null) { $candidate = Arr::random(ExternalProfileVisibility::cases()); - if (ExternalProfileVisibility::PUBLIC !== $candidate) { + if ($candidate !== ExternalProfileVisibility::PUBLIC) { $visibility = $candidate; } } @@ -122,7 +122,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testClaimed(): void + public function test_claimed(): void { $claimedProfile = ExternalProfile::factory() ->for(User::factory()) @@ -140,7 +140,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testUser(): void + public function test_user(): void { $profile = ExternalProfile::factory() ->for(User::factory()) @@ -155,7 +155,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalToken(): void + public function test_external_token(): void { $profile = ExternalProfile::factory() ->has(ExternalToken::factory(), ExternalProfile::RELATION_EXTERNAL_TOKEN) @@ -170,7 +170,7 @@ class ExternalProfileTest extends TestCase * * @return void */ - public function testExternalEntries(): void + public function test_external_entries(): void { $entryCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/List/Playlist/TrackTest.php b/tests/Unit/Models/List/Playlist/TrackTest.php index 462de25dc..c6e426903 100644 --- a/tests/Unit/Models/List/Playlist/TrackTest.php +++ b/tests/Unit/Models/List/Playlist/TrackTest.php @@ -21,7 +21,7 @@ class TrackTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()) @@ -35,7 +35,7 @@ class TrackTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()->for(User::factory())) @@ -49,7 +49,7 @@ class TrackTest extends TestCase * * @return void */ - public function testHashids(): void + public function test_hashids(): void { $playlist = Playlist::factory()->createOne(); @@ -66,7 +66,7 @@ class TrackTest extends TestCase * * @return void */ - public function testPlaylist(): void + public function test_playlist(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()) @@ -81,7 +81,7 @@ class TrackTest extends TestCase * * @return void */ - public function testPrevious(): void + public function test_previous(): void { $playlist = Playlist::factory()->createOne(); @@ -104,7 +104,7 @@ class TrackTest extends TestCase * * @return void */ - public function testNext(): void + public function test_next(): void { $playlist = Playlist::factory()->createOne(); @@ -127,7 +127,7 @@ class TrackTest extends TestCase * * @return void */ - public function testVideo(): void + public function test_video(): void { $track = PlaylistTrack::factory() ->for(Playlist::factory()) diff --git a/tests/Unit/Models/List/PlaylistTest.php b/tests/Unit/Models/List/PlaylistTest.php index 41b438c84..a6d369813 100644 --- a/tests/Unit/Models/List/PlaylistTest.php +++ b/tests/Unit/Models/List/PlaylistTest.php @@ -31,7 +31,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testCastsSeasonToEnum(): void + public function test_casts_season_to_enum(): void { $playlist = Playlist::factory()->createOne(); @@ -45,7 +45,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $playlist = Playlist::factory()->createOne(); @@ -57,7 +57,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $playlist = Playlist::factory() ->for(User::factory()) @@ -71,7 +71,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testSearchableIfPublic(): void + public function test_searchable_if_public(): void { $playlist = Playlist::factory() ->createOne([ @@ -86,13 +86,13 @@ class PlaylistTest extends TestCase * * @return void */ - public function testNotSearchableIfNotPublic(): void + public function test_not_searchable_if_not_public(): void { $visibility = null; while ($visibility == null) { $candidate = Arr::random(PlaylistVisibility::cases()); - if (PlaylistVisibility::PUBLIC !== $candidate) { + if ($candidate !== PlaylistVisibility::PUBLIC) { $visibility = $candidate; } } @@ -110,7 +110,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testHashidsNullableUser(): void + public function test_hashids_nullable_user(): void { $playlist = Playlist::factory()->createOne(); @@ -123,7 +123,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testHashidsNonNullUser(): void + public function test_hashids_non_null_user(): void { $user = User::factory()->createOne(); @@ -140,7 +140,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testViews(): void + public function test_views(): void { $playlist = Playlist::factory()->createOne(); @@ -156,7 +156,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testUser(): void + public function test_user(): void { $playlist = Playlist::factory() ->for(User::factory()) @@ -171,7 +171,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testFirst(): void + public function test_first(): void { $playlist = Playlist::factory() ->createOne(); @@ -191,7 +191,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testLast(): void + public function test_last(): void { $playlist = Playlist::factory()->createOne(); @@ -210,7 +210,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testImages(): void + public function test_images(): void { $imageCount = $this->faker->randomDigitNotNull(); @@ -229,7 +229,7 @@ class PlaylistTest extends TestCase * * @return void */ - public function testTracks(): void + public function test_tracks(): void { $trackCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/User/Report/ReportStepTest.php b/tests/Unit/Models/User/Report/ReportStepTest.php index c0791a817..8c13fb6e6 100644 --- a/tests/Unit/Models/User/Report/ReportStepTest.php +++ b/tests/Unit/Models/User/Report/ReportStepTest.php @@ -26,7 +26,7 @@ class ReportStepTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $step = ReportStep::factory() ->for(Report::factory()) @@ -40,7 +40,7 @@ class ReportStepTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $step = ReportStep::factory() ->for(Report::factory()) @@ -54,7 +54,7 @@ class ReportStepTest extends TestCase * * @return void */ - public function testCastsActionToEnum(): void + public function test_casts_action_to_enum(): void { $step = ReportStep::factory() ->for(Report::factory()) @@ -68,7 +68,7 @@ class ReportStepTest extends TestCase * * @return void */ - public function testCastsFieldsToArray(): void + public function test_casts_fields_to_array(): void { $anime = Anime::factory()->makeOne(); @@ -84,7 +84,7 @@ class ReportStepTest extends TestCase * * @return void */ - public function testCastsFinishedAt(): void + public function test_casts_finished_at(): void { $step = ReportStep::factory() ->for(Report::factory()) @@ -98,7 +98,7 @@ class ReportStepTest extends TestCase * * @return void */ - public function testCastsStatusToEnum(): void + public function test_casts_status_to_enum(): void { $step = ReportStep::factory() ->for(Report::factory()) @@ -112,7 +112,7 @@ class ReportStepTest extends TestCase * * @return void */ - public function testReport(): void + public function test_report(): void { $step = ReportStep::factory() ->for(Report::factory()) diff --git a/tests/Unit/Models/User/ReportTest.php b/tests/Unit/Models/User/ReportTest.php index c910afd54..55a878831 100644 --- a/tests/Unit/Models/User/ReportTest.php +++ b/tests/Unit/Models/User/ReportTest.php @@ -5,9 +5,9 @@ declare(strict_types=1); namespace Tests\Unit\Models\User; use App\Enums\Models\User\ApprovableStatus; +use App\Models\Auth\User; use App\Models\User\Report; use App\Models\User\Report\ReportStep; -use App\Models\Auth\User; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Foundation\Testing\WithFaker; @@ -26,7 +26,7 @@ class ReportTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $report = Report::factory()->createOne(); @@ -38,7 +38,7 @@ class ReportTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $report = Report::factory()->createOne(); @@ -50,7 +50,7 @@ class ReportTest extends TestCase * * @return void */ - public function testCastsFinishedAt(): void + public function test_casts_finished_at(): void { $report = Report::factory()->createOne([Report::ATTRIBUTE_FINISHED_AT => now()]); @@ -62,7 +62,7 @@ class ReportTest extends TestCase * * @return void */ - public function testCastsStatusToEnum(): void + public function test_casts_status_to_enum(): void { $report = Report::factory()->createOne(); @@ -74,7 +74,7 @@ class ReportTest extends TestCase * * @return void */ - public function testSteps(): void + public function test_steps(): void { $stepsCount = $this->faker->randomDigitNotNull(); @@ -95,7 +95,7 @@ class ReportTest extends TestCase * * @return void */ - public function testUser(): void + public function test_user(): void { $report = Report::factory() ->for(User::factory(), Report::RELATION_USER) @@ -110,7 +110,7 @@ class ReportTest extends TestCase * * @return void */ - public function testModerator(): void + public function test_moderator(): void { $report = Report::factory() ->for(User::factory(), Report::RELATION_MODERATOR) diff --git a/tests/Unit/Models/Wiki/Anime/AnimeSynonymTest.php b/tests/Unit/Models/Wiki/Anime/AnimeSynonymTest.php index 76bb77388..a42a0c0c0 100644 --- a/tests/Unit/Models/Wiki/Anime/AnimeSynonymTest.php +++ b/tests/Unit/Models/Wiki/Anime/AnimeSynonymTest.php @@ -23,7 +23,7 @@ class AnimeSynonymTest extends TestCase * * @return void */ - public function testCastsTypeToEnum(): void + public function test_casts_type_to_enum(): void { $theme = AnimeSynonym::factory() ->for(Anime::factory()) @@ -39,7 +39,7 @@ class AnimeSynonymTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -53,7 +53,7 @@ class AnimeSynonymTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -67,7 +67,7 @@ class AnimeSynonymTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -81,7 +81,7 @@ class AnimeSynonymTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) @@ -95,7 +95,7 @@ class AnimeSynonymTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $synonym = AnimeSynonym::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Models/Wiki/Anime/AnimeThemeTest.php b/tests/Unit/Models/Wiki/Anime/AnimeThemeTest.php index 8042083db..a0d0be6de 100644 --- a/tests/Unit/Models/Wiki/Anime/AnimeThemeTest.php +++ b/tests/Unit/Models/Wiki/Anime/AnimeThemeTest.php @@ -27,7 +27,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testCastsTypeToEnum(): void + public function test_casts_type_to_enum(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -43,7 +43,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -57,7 +57,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -71,7 +71,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -85,7 +85,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -99,7 +99,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -114,7 +114,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testGroup(): void + public function test_group(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -130,7 +130,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testSong(): void + public function test_song(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) @@ -146,7 +146,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testEntries(): void + public function test_entries(): void { $entryCount = $this->faker->randomDigitNotNull(); @@ -165,7 +165,7 @@ class AnimeThemeTest extends TestCase * * @return void */ - public function testThemeCreatesSlug(): void + public function test_theme_creates_slug(): void { $theme = AnimeTheme::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Models/Wiki/Anime/Theme/AnimeThemeEntryTest.php b/tests/Unit/Models/Wiki/Anime/Theme/AnimeThemeEntryTest.php index d71acd549..8d35f2657 100644 --- a/tests/Unit/Models/Wiki/Anime/Theme/AnimeThemeEntryTest.php +++ b/tests/Unit/Models/Wiki/Anime/Theme/AnimeThemeEntryTest.php @@ -27,7 +27,7 @@ class AnimeThemeEntryTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -41,7 +41,7 @@ class AnimeThemeEntryTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -55,7 +55,7 @@ class AnimeThemeEntryTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -69,7 +69,7 @@ class AnimeThemeEntryTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -83,7 +83,7 @@ class AnimeThemeEntryTest extends TestCase * * @return void */ - public function testTheme(): void + public function test_theme(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) @@ -98,7 +98,7 @@ class AnimeThemeEntryTest extends TestCase * * @return void */ - public function testVideos(): void + public function test_videos(): void { $videoCount = $this->faker->randomDigitNotNull(); @@ -118,7 +118,7 @@ class AnimeThemeEntryTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $entry = AnimeThemeEntry::factory() ->for(AnimeTheme::factory()->for(Anime::factory())) diff --git a/tests/Unit/Models/Wiki/AnimeTest.php b/tests/Unit/Models/Wiki/AnimeTest.php index 90e8f2400..d4182697d 100644 --- a/tests/Unit/Models/Wiki/AnimeTest.php +++ b/tests/Unit/Models/Wiki/AnimeTest.php @@ -34,7 +34,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testCastsSeasonToEnum(): void + public function test_casts_season_to_enum(): void { $anime = Anime::factory()->createOne(); @@ -48,7 +48,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testCastsMediaFormatToEnum(): void + public function test_casts_media_format_to_enum(): void { $anime = Anime::factory()->createOne(); @@ -62,7 +62,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $anime = Anime::factory()->createOne(); @@ -74,7 +74,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $anime = Anime::factory()->createOne(); @@ -86,7 +86,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $anime = Anime::factory()->createOne(); @@ -98,7 +98,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $anime = Anime::factory()->createOne(); @@ -110,7 +110,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testSynonyms(): void + public function test_synonyms(): void { $synonymCount = $this->faker->randomDigitNotNull(); @@ -128,7 +128,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testSeries(): void + public function test_series(): void { $seriesCount = $this->faker->randomDigitNotNull(); @@ -147,7 +147,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testThemes(): void + public function test_themes(): void { $themeCount = $this->faker->randomDigitNotNull(); @@ -165,7 +165,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testExternalResources(): void + public function test_external_resources(): void { $resourceCount = $this->faker->randomDigitNotNull(); @@ -184,7 +184,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testImages(): void + public function test_images(): void { $imageCount = $this->faker->randomDigitNotNull(); @@ -203,7 +203,7 @@ class AnimeTest extends TestCase * * @return void */ - public function testStudios(): void + public function test_studios(): void { $studioCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/Wiki/ArtistTest.php b/tests/Unit/Models/Wiki/ArtistTest.php index db7b1d1ee..d6918684f 100644 --- a/tests/Unit/Models/Wiki/ArtistTest.php +++ b/tests/Unit/Models/Wiki/ArtistTest.php @@ -28,7 +28,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $artist = Artist::factory()->createOne(); @@ -40,7 +40,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $artist = Artist::factory()->createOne(); @@ -52,7 +52,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $artist = Artist::factory()->createOne(); @@ -64,7 +64,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $artist = Artist::factory()->createOne(); @@ -76,7 +76,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testSongs(): void + public function test_songs(): void { $songCount = $this->faker->randomDigitNotNull(); @@ -95,7 +95,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testExternalResources(): void + public function test_external_resources(): void { $resourceCount = $this->faker->randomDigitNotNull(); @@ -114,7 +114,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testMembers(): void + public function test_members(): void { $memberCount = $this->faker->randomDigitNotNull(); @@ -133,7 +133,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testGroups(): void + public function test_groups(): void { $groupCount = $this->faker->randomDigitNotNull(); @@ -152,7 +152,7 @@ class ArtistTest extends TestCase * * @return void */ - public function testImages(): void + public function test_images(): void { $imageCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/Wiki/AudioTest.php b/tests/Unit/Models/Wiki/AudioTest.php index 369b93969..e8fec283e 100644 --- a/tests/Unit/Models/Wiki/AudioTest.php +++ b/tests/Unit/Models/Wiki/AudioTest.php @@ -30,7 +30,7 @@ class AudioTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $audio = Audio::factory()->createOne(); @@ -42,7 +42,7 @@ class AudioTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $audio = Audio::factory()->createOne(); @@ -54,7 +54,7 @@ class AudioTest extends TestCase * * @return void */ - public function testVideos(): void + public function test_videos(): void { $videoCount = $this->faker->randomDigitNotNull(); @@ -72,7 +72,7 @@ class AudioTest extends TestCase * * @return void */ - public function testViews(): void + public function test_views(): void { $audio = Audio::factory()->createOne(); @@ -88,7 +88,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioStorageDeletion(): void + public function test_audio_storage_deletion(): void { $fs = Storage::fake(Config::get(AudioConstants::DEFAULT_DISK_QUALIFIED)); $file = File::fake()->create($this->faker->word().'.ogg', $this->faker->randomDigitNotNull()); @@ -108,7 +108,7 @@ class AudioTest extends TestCase * * @return void */ - public function testAudioStorageForceDeletion(): void + public function test_audio_storage_force_deletion(): void { Event::fakeExcept(AudioForceDeleting::class); diff --git a/tests/Unit/Models/Wiki/ExternalResourceTest.php b/tests/Unit/Models/Wiki/ExternalResourceTest.php index 2dc4e6ae1..6f736812a 100644 --- a/tests/Unit/Models/Wiki/ExternalResourceTest.php +++ b/tests/Unit/Models/Wiki/ExternalResourceTest.php @@ -30,7 +30,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testCastsSeasonToEnum(): void + public function test_casts_season_to_enum(): void { $resource = ExternalResource::factory()->createOne(); @@ -44,7 +44,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $resource = ExternalResource::factory()->createOne(); @@ -56,7 +56,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $resource = ExternalResource::factory()->createOne(); @@ -68,7 +68,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $animeCount = $this->faker->randomDigitNotNull(); @@ -87,7 +87,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testArtists(): void + public function test_artists(): void { $artistCount = $this->faker->randomDigitNotNull(); @@ -104,7 +104,7 @@ class ExternalResourceTest extends TestCase /** * Resource shall have a many-to-many relationship with the type Song. */ - public function testSong(): void + public function test_song(): void { $songCount = $this->faker->randomDigitNotNull(); @@ -123,7 +123,7 @@ class ExternalResourceTest extends TestCase * * @return void */ - public function testStudio(): void + public function test_studio(): void { $studioCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/Wiki/GroupTest.php b/tests/Unit/Models/Wiki/GroupTest.php index b5442efd7..c447fc1d8 100644 --- a/tests/Unit/Models/Wiki/GroupTest.php +++ b/tests/Unit/Models/Wiki/GroupTest.php @@ -23,7 +23,7 @@ class GroupTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $group = Group::factory()->createOne(); @@ -35,7 +35,7 @@ class GroupTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $group = Group::factory()->createOne(); @@ -47,7 +47,7 @@ class GroupTest extends TestCase * * @return void */ - public function testThemes(): void + public function test_themes(): void { $themeCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/Wiki/ImageTest.php b/tests/Unit/Models/Wiki/ImageTest.php index 7ac34efea..40a36b1e4 100644 --- a/tests/Unit/Models/Wiki/ImageTest.php +++ b/tests/Unit/Models/Wiki/ImageTest.php @@ -35,7 +35,7 @@ class ImageTest extends TestCase * * @return void */ - public function testCastsFacetToEnum(): void + public function test_casts_facet_to_enum(): void { $image = Image::factory()->createOne(); @@ -49,7 +49,7 @@ class ImageTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $image = Image::factory()->createOne(); @@ -61,7 +61,7 @@ class ImageTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $image = Image::factory()->createOne(); @@ -73,7 +73,7 @@ class ImageTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $animeCount = $this->faker->randomDigitNotNull(); @@ -92,7 +92,7 @@ class ImageTest extends TestCase * * @return void */ - public function testArtists(): void + public function test_artists(): void { $artistCount = $this->faker->randomDigitNotNull(); @@ -111,7 +111,7 @@ class ImageTest extends TestCase * * @return void */ - public function testStudios(): void + public function test_studios(): void { $studioCount = $this->faker->randomDigitNotNull(); @@ -130,7 +130,7 @@ class ImageTest extends TestCase * * @return void */ - public function testPlaylists(): void + public function test_playlists(): void { $playlistCount = $this->faker->randomDigitNotNull(); @@ -148,7 +148,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageStorageDeletion(): void + public function test_image_storage_deletion(): void { $fs = Storage::fake(Config::get('image.disk')); $file = File::fake()->image($this->faker->word().'.jpg'); @@ -171,7 +171,7 @@ class ImageTest extends TestCase * * @return void */ - public function testImageStorageForceDeletion(): void + public function test_image_storage_force_deletion(): void { Event::fakeExcept(ImageForceDeleting::class); diff --git a/tests/Unit/Models/Wiki/SeriesTest.php b/tests/Unit/Models/Wiki/SeriesTest.php index e0cfb0de6..97873d06c 100644 --- a/tests/Unit/Models/Wiki/SeriesTest.php +++ b/tests/Unit/Models/Wiki/SeriesTest.php @@ -23,7 +23,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $series = Series::factory()->createOne(); @@ -35,7 +35,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $series = Series::factory()->createOne(); @@ -47,7 +47,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $series = Series::factory()->createOne(); @@ -59,7 +59,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $series = Series::factory()->createOne(); @@ -71,7 +71,7 @@ class SeriesTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $animeCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/Wiki/SongTest.php b/tests/Unit/Models/Wiki/SongTest.php index 9185c83a8..e024cace8 100644 --- a/tests/Unit/Models/Wiki/SongTest.php +++ b/tests/Unit/Models/Wiki/SongTest.php @@ -28,7 +28,7 @@ class SongTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $song = Song::factory()->createOne(); @@ -40,7 +40,7 @@ class SongTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $song = Song::factory()->createOne(); @@ -52,7 +52,7 @@ class SongTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $song = Song::factory()->createOne(); @@ -64,7 +64,7 @@ class SongTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $song = Song::factory() ->has(AnimeTheme::factory()->for(Anime::factory())) @@ -78,7 +78,7 @@ class SongTest extends TestCase * * @return void */ - public function testThemes(): void + public function test_themes(): void { $themeCount = $this->faker->randomDigitNotNull(); @@ -96,7 +96,7 @@ class SongTest extends TestCase * * @return void */ - public function testArtists(): void + public function test_artists(): void { $artistCount = $this->faker->randomDigitNotNull(); @@ -115,7 +115,7 @@ class SongTest extends TestCase * * @return void */ - public function testExternalResources(): void + public function test_external_resources(): void { $resourceCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/Wiki/StudioTest.php b/tests/Unit/Models/Wiki/StudioTest.php index 39e1f61b7..9c2976803 100644 --- a/tests/Unit/Models/Wiki/StudioTest.php +++ b/tests/Unit/Models/Wiki/StudioTest.php @@ -27,7 +27,7 @@ class StudioTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $studio = Studio::factory()->createOne(); @@ -39,7 +39,7 @@ class StudioTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $studio = Studio::factory()->createOne(); @@ -51,7 +51,7 @@ class StudioTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $studio = Studio::factory()->createOne(); @@ -63,7 +63,7 @@ class StudioTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $studio = Studio::factory()->createOne(); @@ -75,7 +75,7 @@ class StudioTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $animeCount = $this->faker->randomDigitNotNull(); @@ -94,7 +94,7 @@ class StudioTest extends TestCase * * @return void */ - public function testExternalResources(): void + public function test_external_resources(): void { $resourceCount = $this->faker->randomDigitNotNull(); @@ -113,7 +113,7 @@ class StudioTest extends TestCase * * @return void */ - public function testImages(): void + public function test_images(): void { $imageCount = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Models/Wiki/Video/ScriptTest.php b/tests/Unit/Models/Wiki/Video/ScriptTest.php index fef76bf30..4bdafb093 100644 --- a/tests/Unit/Models/Wiki/Video/ScriptTest.php +++ b/tests/Unit/Models/Wiki/Video/ScriptTest.php @@ -28,7 +28,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $script = VideoScript::factory()->createOne(); @@ -40,7 +40,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $script = VideoScript::factory() ->for(Video::factory()) @@ -54,7 +54,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testVideo(): void + public function test_video(): void { $script = VideoScript::factory() ->for(Video::factory()) @@ -69,7 +69,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testScriptStorageDeletion(): void + public function test_script_storage_deletion(): void { $fs = Storage::fake(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED)); $file = File::fake()->create($this->faker->word().'.ogg', $this->faker->randomDigitNotNull()); @@ -89,7 +89,7 @@ class ScriptTest extends TestCase * * @return void */ - public function testScriptStorageForceDeletion(): void + public function test_script_storage_force_deletion(): void { Event::fakeExcept(VideoScriptForceDeleting::class); diff --git a/tests/Unit/Models/Wiki/VideoTest.php b/tests/Unit/Models/Wiki/VideoTest.php index 3b0f0c3f6..155d2db31 100644 --- a/tests/Unit/Models/Wiki/VideoTest.php +++ b/tests/Unit/Models/Wiki/VideoTest.php @@ -45,7 +45,7 @@ class VideoTest extends TestCase * * @return void */ - public function testCastsOverlapToEnum(): void + public function test_casts_overlap_to_enum(): void { $video = Video::factory()->createOne(); @@ -59,7 +59,7 @@ class VideoTest extends TestCase * * @return void */ - public function testCastsSourceToEnum(): void + public function test_casts_source_to_enum(): void { $video = Video::factory()->createOne(); @@ -73,7 +73,7 @@ class VideoTest extends TestCase * * @return void */ - public function testSearchableAs(): void + public function test_searchable_as(): void { $video = Video::factory()->createOne(); @@ -85,7 +85,7 @@ class VideoTest extends TestCase * * @return void */ - public function testToSearchableArray(): void + public function test_to_searchable_array(): void { $video = Video::factory()->createOne(); @@ -97,7 +97,7 @@ class VideoTest extends TestCase * * @return void */ - public function testNameable(): void + public function test_nameable(): void { $video = Video::factory()->createOne(); @@ -109,7 +109,7 @@ class VideoTest extends TestCase * * @return void */ - public function testHasSubtitle(): void + public function test_has_subtitle(): void { $video = Video::factory()->createOne(); @@ -121,7 +121,7 @@ class VideoTest extends TestCase * * @return void */ - public function testViews(): void + public function test_views(): void { $video = Video::factory()->createOne(); @@ -137,7 +137,7 @@ class VideoTest extends TestCase * * @return void */ - public function testAppendsTags(): void + public function test_appends_tags(): void { $video = Video::factory()->createOne(); @@ -149,7 +149,7 @@ class VideoTest extends TestCase * * @return void */ - public function testNcTag(): void + public function test_nc_tag(): void { $video = Video::factory()->createOne([ Video::ATTRIBUTE_NC => true, @@ -163,7 +163,7 @@ class VideoTest extends TestCase * * @return void */ - public function testNoNcTag(): void + public function test_no_nc_tag(): void { $video = Video::factory()->createOne([ Video::ATTRIBUTE_NC => false, @@ -177,7 +177,7 @@ class VideoTest extends TestCase * * @return void */ - public function testDvdTag(): void + public function test_dvd_tag(): void { $source = VideoSource::DVD; @@ -193,7 +193,7 @@ class VideoTest extends TestCase * * @return void */ - public function testBdTag(): void + public function test_bd_tag(): void { $source = VideoSource::BD; @@ -209,7 +209,7 @@ class VideoTest extends TestCase * * @return void */ - public function testOtherSourceTag(): void + public function test_other_source_tag(): void { $source = null; while ($source === null) { @@ -231,7 +231,7 @@ class VideoTest extends TestCase * * @return void */ - public function testResolutionTag(): void + public function test_resolution_tag(): void { $video = Video::factory()->createOne(); @@ -243,7 +243,7 @@ class VideoTest extends TestCase * * @return void */ - public function testNo720ResolutionTag(): void + public function test_no720_resolution_tag(): void { $video = Video::factory()->createOne([ Video::ATTRIBUTE_RESOLUTION => 720, @@ -257,7 +257,7 @@ class VideoTest extends TestCase * * @return void */ - public function testSubbedTag(): void + public function test_subbed_tag(): void { $video = Video::factory()->createOne([ Video::ATTRIBUTE_SUBBED => true, @@ -272,7 +272,7 @@ class VideoTest extends TestCase * * @return void */ - public function testLyricsTag(): void + public function test_lyrics_tag(): void { $video = Video::factory()->createOne([ Video::ATTRIBUTE_SUBBED => false, @@ -291,7 +291,7 @@ class VideoTest extends TestCase * @return void */ #[DataProvider('priorityProvider')] - public function testSourcePriority(array $a, array $b): void + public function test_source_priority(array $a, array $b): void { $first = Video::factory()->createOne($a); @@ -305,7 +305,7 @@ class VideoTest extends TestCase * * @return void */ - public function testEntries(): void + public function test_entries(): void { $entryCount = $this->faker->randomDigitNotNull(); @@ -324,7 +324,7 @@ class VideoTest extends TestCase * * @return void */ - public function testAudio(): void + public function test_audio(): void { $video = Video::factory() ->for(Audio::factory()) @@ -339,11 +339,11 @@ class VideoTest extends TestCase * * @return void */ - public function testTracksPublic(): void + public function test_tracks_public(): void { $trackCount = $this->faker->randomDigitNotNull(); - $playlist = Playlist::factory()->createOne([ Playlist::ATTRIBUTE_VISIBILITY => PlaylistVisibility::PUBLIC ]); + $playlist = Playlist::factory()->createOne([Playlist::ATTRIBUTE_VISIBILITY => PlaylistVisibility::PUBLIC]); $video = Video::factory() ->has(PlaylistTrack::factory()->for($playlist)->count($trackCount), Video::RELATION_TRACKS) ->createOne(); @@ -358,12 +358,12 @@ class VideoTest extends TestCase * * @return void */ - public function testTracksNotPublic(): void + public function test_tracks_not_public(): void { $trackCount = $this->faker->randomDigitNotNull(); - $visibility = Arr::random([ PlaylistVisibility::PRIVATE, PlaylistVisibility::UNLISTED ]); - $playlist = Playlist::factory()->createOne([ Playlist::ATTRIBUTE_VISIBILITY => $visibility ]); + $visibility = Arr::random([PlaylistVisibility::PRIVATE, PlaylistVisibility::UNLISTED]); + $playlist = Playlist::factory()->createOne([Playlist::ATTRIBUTE_VISIBILITY => $visibility]); $video = Video::factory() ->has(PlaylistTrack::factory()->for($playlist)->count($trackCount), Video::RELATION_TRACKS) ->createOne(); @@ -377,7 +377,7 @@ class VideoTest extends TestCase * * @return void */ - public function testScript(): void + public function test_script(): void { $video = Video::factory() ->has(VideoScript::factory(), Video::RELATION_SCRIPT) @@ -467,7 +467,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoStorageDeletion(): void + public function test_video_storage_deletion(): void { $fs = Storage::fake(Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED)); $file = File::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -487,7 +487,7 @@ class VideoTest extends TestCase * * @return void */ - public function testVideoStorageForceDeletion(): void + public function test_video_storage_force_deletion(): void { Event::fakeExcept(VideoForceDeleting::class); diff --git a/tests/Unit/Notifications/DiscordNotificationTest.php b/tests/Unit/Notifications/DiscordNotificationTest.php index 5707bdf99..1a5389d58 100644 --- a/tests/Unit/Notifications/DiscordNotificationTest.php +++ b/tests/Unit/Notifications/DiscordNotificationTest.php @@ -20,7 +20,7 @@ class DiscordNotificationTest extends TestCase * * @return void */ - public function testViaDiscordMessage(): void + public function test_via_discord_message(): void { $message = DiscordMessage::create(); @@ -34,7 +34,7 @@ class DiscordNotificationTest extends TestCase * * @return void */ - public function testToDiscordMessage(): void + public function test_to_discord_message(): void { $message = DiscordMessage::create(); diff --git a/tests/Unit/Pivots/List/PlaylistImageTest.php b/tests/Unit/Pivots/List/PlaylistImageTest.php index 743b71394..be4603b42 100644 --- a/tests/Unit/Pivots/List/PlaylistImageTest.php +++ b/tests/Unit/Pivots/List/PlaylistImageTest.php @@ -20,7 +20,7 @@ class PlaylistImageTest extends TestCase * * @return void */ - public function testPlaylist(): void + public function test_playlist(): void { $playlistImage = PlaylistImage::factory() ->for(Playlist::factory()) @@ -36,7 +36,7 @@ class PlaylistImageTest extends TestCase * * @return void */ - public function testImage(): void + public function test_image(): void { $playlistImage = PlaylistImage::factory() ->for(Playlist::factory()) diff --git a/tests/Unit/Pivots/Wiki/AnimeImageTest.php b/tests/Unit/Pivots/Wiki/AnimeImageTest.php index d37604302..472325862 100644 --- a/tests/Unit/Pivots/Wiki/AnimeImageTest.php +++ b/tests/Unit/Pivots/Wiki/AnimeImageTest.php @@ -20,7 +20,7 @@ class AnimeImageTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $animeImage = AnimeImage::factory() ->for(Anime::factory()) @@ -36,7 +36,7 @@ class AnimeImageTest extends TestCase * * @return void */ - public function testImage(): void + public function test_image(): void { $animeImage = AnimeImage::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Pivots/Wiki/AnimeResourceTest.php b/tests/Unit/Pivots/Wiki/AnimeResourceTest.php index 4ea71acd3..9f39b1715 100644 --- a/tests/Unit/Pivots/Wiki/AnimeResourceTest.php +++ b/tests/Unit/Pivots/Wiki/AnimeResourceTest.php @@ -20,7 +20,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) @@ -36,7 +36,7 @@ class AnimeResourceTest extends TestCase * * @return void */ - public function testResource(): void + public function test_resource(): void { $animeResource = AnimeResource::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Pivots/Wiki/AnimeSeriesTest.php b/tests/Unit/Pivots/Wiki/AnimeSeriesTest.php index bbfa98230..b7d656559 100644 --- a/tests/Unit/Pivots/Wiki/AnimeSeriesTest.php +++ b/tests/Unit/Pivots/Wiki/AnimeSeriesTest.php @@ -20,7 +20,7 @@ class AnimeSeriesTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $animeSeries = AnimeSeries::factory() ->for(Anime::factory()) @@ -36,7 +36,7 @@ class AnimeSeriesTest extends TestCase * * @return void */ - public function testSeries(): void + public function test_series(): void { $animeSeries = AnimeSeries::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Pivots/Wiki/AnimeStudioTest.php b/tests/Unit/Pivots/Wiki/AnimeStudioTest.php index f53669a4e..f8c449200 100644 --- a/tests/Unit/Pivots/Wiki/AnimeStudioTest.php +++ b/tests/Unit/Pivots/Wiki/AnimeStudioTest.php @@ -20,7 +20,7 @@ class AnimeStudioTest extends TestCase * * @return void */ - public function testAnime(): void + public function test_anime(): void { $animeStudio = AnimeStudio::factory() ->for(Anime::factory()) @@ -36,7 +36,7 @@ class AnimeStudioTest extends TestCase * * @return void */ - public function testStudio(): void + public function test_studio(): void { $animeStudio = AnimeStudio::factory() ->for(Anime::factory()) diff --git a/tests/Unit/Pivots/Wiki/AnimeThemeEntryVideoTest.php b/tests/Unit/Pivots/Wiki/AnimeThemeEntryVideoTest.php index 1988d2161..0bbdea536 100644 --- a/tests/Unit/Pivots/Wiki/AnimeThemeEntryVideoTest.php +++ b/tests/Unit/Pivots/Wiki/AnimeThemeEntryVideoTest.php @@ -22,7 +22,7 @@ class AnimeThemeEntryVideoTest extends TestCase * * @return void */ - public function testVideo(): void + public function test_video(): void { $animeThemeEntryVideo = AnimeThemeEntryVideo::factory() ->for(Video::factory()) @@ -38,7 +38,7 @@ class AnimeThemeEntryVideoTest extends TestCase * * @return void */ - public function testEntry(): void + public function test_entry(): void { $animeThemeEntryVideo = AnimeThemeEntryVideo::factory() ->for(Video::factory()) diff --git a/tests/Unit/Pivots/Wiki/ArtistImageTest.php b/tests/Unit/Pivots/Wiki/ArtistImageTest.php index 65b1fcdea..8288799e9 100644 --- a/tests/Unit/Pivots/Wiki/ArtistImageTest.php +++ b/tests/Unit/Pivots/Wiki/ArtistImageTest.php @@ -20,7 +20,7 @@ class ArtistImageTest extends TestCase * * @return void */ - public function testArtist(): void + public function test_artist(): void { $artistImage = ArtistImage::factory() ->for(Artist::factory()) @@ -36,7 +36,7 @@ class ArtistImageTest extends TestCase * * @return void */ - public function testImage(): void + public function test_image(): void { $artistImage = ArtistImage::factory() ->for(Artist::factory()) diff --git a/tests/Unit/Pivots/Wiki/ArtistMemberTest.php b/tests/Unit/Pivots/Wiki/ArtistMemberTest.php index 55520c7f8..29e2a5a2d 100644 --- a/tests/Unit/Pivots/Wiki/ArtistMemberTest.php +++ b/tests/Unit/Pivots/Wiki/ArtistMemberTest.php @@ -19,7 +19,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testArtist(): void + public function test_artist(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), 'artist') @@ -35,7 +35,7 @@ class ArtistMemberTest extends TestCase * * @return void */ - public function testMember(): void + public function test_member(): void { $artistMember = ArtistMember::factory() ->for(Artist::factory(), 'artist') diff --git a/tests/Unit/Pivots/Wiki/ArtistResourceTest.php b/tests/Unit/Pivots/Wiki/ArtistResourceTest.php index e27810e70..b78f05a23 100644 --- a/tests/Unit/Pivots/Wiki/ArtistResourceTest.php +++ b/tests/Unit/Pivots/Wiki/ArtistResourceTest.php @@ -20,7 +20,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testArtist(): void + public function test_artist(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) @@ -36,7 +36,7 @@ class ArtistResourceTest extends TestCase * * @return void */ - public function testResource(): void + public function test_resource(): void { $artistResource = ArtistResource::factory() ->for(Artist::factory()) diff --git a/tests/Unit/Pivots/Wiki/ArtistSongTest.php b/tests/Unit/Pivots/Wiki/ArtistSongTest.php index abd7d74ad..e3cc0ec5e 100644 --- a/tests/Unit/Pivots/Wiki/ArtistSongTest.php +++ b/tests/Unit/Pivots/Wiki/ArtistSongTest.php @@ -20,7 +20,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testArtist(): void + public function test_artist(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) @@ -36,7 +36,7 @@ class ArtistSongTest extends TestCase * * @return void */ - public function testSong(): void + public function test_song(): void { $artistSong = ArtistSong::factory() ->for(Artist::factory()) diff --git a/tests/Unit/Pivots/Wiki/SongResourceTest.php b/tests/Unit/Pivots/Wiki/SongResourceTest.php index 39dd2fa51..c20b326a0 100644 --- a/tests/Unit/Pivots/Wiki/SongResourceTest.php +++ b/tests/Unit/Pivots/Wiki/SongResourceTest.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace Tests\Unit\Pivots\Wiki; -use App\Models\Wiki\Song; use App\Models\Wiki\ExternalResource; +use App\Models\Wiki\Song; use App\Pivots\Wiki\SongResource; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Tests\TestCase; @@ -20,7 +20,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testSong(): void + public function test_song(): void { $songResource = SongResource::factory() ->for(Song::factory()) @@ -36,7 +36,7 @@ class SongResourceTest extends TestCase * * @return void */ - public function testResource(): void + public function test_resource(): void { $songResource = SongResource::factory() ->for(Song::factory()) diff --git a/tests/Unit/Pivots/Wiki/StudioImageTest.php b/tests/Unit/Pivots/Wiki/StudioImageTest.php index 775c320e7..19d1d53a2 100644 --- a/tests/Unit/Pivots/Wiki/StudioImageTest.php +++ b/tests/Unit/Pivots/Wiki/StudioImageTest.php @@ -20,7 +20,7 @@ class StudioImageTest extends TestCase * * @return void */ - public function testStudio(): void + public function test_studio(): void { $studioImage = StudioImage::factory() ->for(Studio::factory()) @@ -36,7 +36,7 @@ class StudioImageTest extends TestCase * * @return void */ - public function testImage(): void + public function test_image(): void { $studioImage = StudioImage::factory() ->for(Studio::factory()) diff --git a/tests/Unit/Pivots/Wiki/StudioResourceTest.php b/tests/Unit/Pivots/Wiki/StudioResourceTest.php index 1f3c5c57a..7cd03d297 100644 --- a/tests/Unit/Pivots/Wiki/StudioResourceTest.php +++ b/tests/Unit/Pivots/Wiki/StudioResourceTest.php @@ -20,7 +20,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testStudio(): void + public function test_studio(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) @@ -36,7 +36,7 @@ class StudioResourceTest extends TestCase * * @return void */ - public function testResource(): void + public function test_resource(): void { $studioResource = StudioResource::factory() ->for(Studio::factory()) diff --git a/tests/Unit/Rules/Api/DelimitedTest.php b/tests/Unit/Rules/Api/DelimitedTest.php index 3b050b635..ba68aa449 100644 --- a/tests/Unit/Rules/Api/DelimitedTest.php +++ b/tests/Unit/Rules/Api/DelimitedTest.php @@ -21,7 +21,7 @@ class DelimitedTest extends TestCase * * @return void */ - public function testPassesIfAllValuesPass(): void + public function test_passes_if_all_values_pass(): void { $attribute = $this->faker->word(); @@ -40,7 +40,7 @@ class DelimitedTest extends TestCase * * @return void */ - public function testFailsForDuplicateValues(): void + public function test_fails_for_duplicate_values(): void { $attribute = $this->faker->word(); @@ -61,7 +61,7 @@ class DelimitedTest extends TestCase * * @return void */ - public function testFailsForInvalidValue(): void + public function test_fails_for_invalid_value(): void { $attribute = $this->faker->word(); @@ -80,7 +80,7 @@ class DelimitedTest extends TestCase * * @return void */ - public function testValidatesEmptyValues(): void + public function test_validates_empty_values(): void { $attribute = $this->faker->word(); diff --git a/tests/Unit/Rules/Api/DistinctIgnoringDirectionTest.php b/tests/Unit/Rules/Api/DistinctIgnoringDirectionTest.php index 2b7e0dba6..fb66281d4 100644 --- a/tests/Unit/Rules/Api/DistinctIgnoringDirectionTest.php +++ b/tests/Unit/Rules/Api/DistinctIgnoringDirectionTest.php @@ -23,7 +23,7 @@ class DistinctIgnoringDirectionTest extends TestCase * * @return void */ - public function testFailsIfDuplicateSort(): void + public function test_fails_if_duplicate_sort(): void { $key = $this->faker->word(); @@ -44,7 +44,7 @@ class DistinctIgnoringDirectionTest extends TestCase * * @return void */ - public function testFailsIfDuplicateSortDifferentDirection(): void + public function test_fails_if_duplicate_sort_different_direction(): void { $key = $this->faker->word(); @@ -71,7 +71,7 @@ class DistinctIgnoringDirectionTest extends TestCase * * @return void */ - public function testPassesIfNoDuplicates(): void + public function test_passes_if_no_duplicates(): void { $sorts = collect($this->faker->words($this->faker->randomDigitNotNull()))->unique(); diff --git a/tests/Unit/Rules/Api/EnumLocalizedNameTest.php b/tests/Unit/Rules/Api/EnumLocalizedNameTest.php index 0bb298ee9..8811ec7a2 100644 --- a/tests/Unit/Rules/Api/EnumLocalizedNameTest.php +++ b/tests/Unit/Rules/Api/EnumLocalizedNameTest.php @@ -24,7 +24,7 @@ class EnumLocalizedNameTest extends TestCase * * @return void */ - public function testPassesIfEnumDescription(): void + public function test_passes_if_enum_description(): void { $enum = Arr::random(LocalizedEnum::cases()); @@ -43,7 +43,7 @@ class EnumLocalizedNameTest extends TestCase * * @return void */ - public function testFailsIfEnumValue(): void + public function test_fails_if_enum_value(): void { $enum = Arr::random(LocalizedEnum::cases()); @@ -62,7 +62,7 @@ class EnumLocalizedNameTest extends TestCase * * @return void */ - public function testFailsIfString(): void + public function test_fails_if_string(): void { $attribute = $this->faker->word(); diff --git a/tests/Unit/Rules/Api/IsValidBooleanTest.php b/tests/Unit/Rules/Api/IsValidBooleanTest.php index b6070732b..a8c746aa9 100644 --- a/tests/Unit/Rules/Api/IsValidBooleanTest.php +++ b/tests/Unit/Rules/Api/IsValidBooleanTest.php @@ -21,7 +21,7 @@ class IsValidBooleanTest extends TestCase * * @return void */ - public function testPassesIfBoolean(): void + public function test_passes_if_boolean(): void { $attribute = $this->faker->word(); @@ -38,7 +38,7 @@ class IsValidBooleanTest extends TestCase * * @return void */ - public function testPassesIfBooleanString(): void + public function test_passes_if_boolean_string(): void { $booleanString = $this->faker->boolean() ? 'true' : 'false'; @@ -57,7 +57,7 @@ class IsValidBooleanTest extends TestCase * * @return void */ - public function testPassesIfBooleanInteger(): void + public function test_passes_if_boolean_integer(): void { $booleanInteger = $this->faker->boolean() ? 1 : 0; @@ -76,7 +76,7 @@ class IsValidBooleanTest extends TestCase * * @return void */ - public function testPassesIfBooleanCheckbox(): void + public function test_passes_if_boolean_checkbox(): void { $booleanCheckbox = $this->faker->boolean() ? 'on' : 'off'; @@ -95,7 +95,7 @@ class IsValidBooleanTest extends TestCase * * @return void */ - public function testFailsIfString(): void + public function test_fails_if_string(): void { $attribute = $this->faker->word(); @@ -112,7 +112,7 @@ class IsValidBooleanTest extends TestCase * * @return void */ - public function testFailsIfNumber(): void + public function test_fails_if_number(): void { $attribute = $this->faker->word(); diff --git a/tests/Unit/Rules/Api/RandomSoleTest.php b/tests/Unit/Rules/Api/RandomSoleTest.php index 2c378adea..46299f3cb 100644 --- a/tests/Unit/Rules/Api/RandomSoleTest.php +++ b/tests/Unit/Rules/Api/RandomSoleTest.php @@ -22,7 +22,7 @@ class RandomSoleTest extends TestCase * * @return void */ - public function testFailsIfRandomIsNotSoleSort(): void + public function test_fails_if_random_is_not_sole_sort(): void { $sorts = $this->faker->words($this->faker->randomDigitNotNull()); @@ -43,7 +43,7 @@ class RandomSoleTest extends TestCase * * @return void */ - public function testPassesIfRandomIsNotIncluded(): void + public function test_passes_if_random_is_not_included(): void { $sorts = $this->faker->words($this->faker->randomDigitNotNull()); @@ -62,7 +62,7 @@ class RandomSoleTest extends TestCase * * @return void */ - public function testPassesIfRandomIsSoleSort(): void + public function test_passes_if_random_is_sole_sort(): void { $attribute = $this->faker->word(); diff --git a/tests/Unit/Rules/ModerationTest.php b/tests/Unit/Rules/ModerationTest.php index be4f2cf35..512f13d49 100644 --- a/tests/Unit/Rules/ModerationTest.php +++ b/tests/Unit/Rules/ModerationTest.php @@ -26,7 +26,7 @@ class ModerationTest extends TestCase * * @return void */ - public function testFailsIfUnknownModerationService(): void + public function test_fails_if_unknown_moderation_service(): void { static::expectException(RuntimeException::class); @@ -47,7 +47,7 @@ class ModerationTest extends TestCase * * @return void */ - public function testFailsIfFlaggedByOpenAI(): void + public function test_fails_if_flagged_by_open_ai(): void { Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -76,7 +76,7 @@ class ModerationTest extends TestCase * * @return void */ - public function testPassesIfNotFlaggedByOpenAI(): void + public function test_passes_if_not_flagged_by_open_ai(): void { Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); @@ -105,7 +105,7 @@ class ModerationTest extends TestCase * * @return void */ - public function testPassesIfOpenAIFails(): void + public function test_passes_if_open_ai_fails(): void { Config::set(ValidationConstants::MODERATION_SERVICE_QUALIFIED, ModerationService::OPENAI->value); diff --git a/tests/Unit/Rules/Storage/StorageDirectoryExistsTest.php b/tests/Unit/Rules/Storage/StorageDirectoryExistsTest.php index 4a20dbeb6..69b61babf 100644 --- a/tests/Unit/Rules/Storage/StorageDirectoryExistsTest.php +++ b/tests/Unit/Rules/Storage/StorageDirectoryExistsTest.php @@ -22,7 +22,7 @@ class StorageDirectoryExistsTest extends TestCase * * @return void */ - public function testPassesIfDirectoryExists(): void + public function test_passes_if_directory_exists(): void { $directory = $this->faker->word(); @@ -45,7 +45,7 @@ class StorageDirectoryExistsTest extends TestCase * * @return void */ - public function testFailsIfDirectoryDoesNotExist(): void + public function test_fails_if_directory_does_not_exist(): void { $fs = Storage::fake($this->faker->word()); diff --git a/tests/Unit/Rules/Storage/StorageFileDirectoryExistsTest.php b/tests/Unit/Rules/Storage/StorageFileDirectoryExistsTest.php index 4c8b88801..16225854e 100644 --- a/tests/Unit/Rules/Storage/StorageFileDirectoryExistsTest.php +++ b/tests/Unit/Rules/Storage/StorageFileDirectoryExistsTest.php @@ -24,7 +24,7 @@ class StorageFileDirectoryExistsTest extends TestCase * * @return void */ - public function testPassesIfDirectoryExists(): void + public function test_passes_if_directory_exists(): void { /** @var FilesystemAdapter $fs */ $fs = Storage::fake($this->faker->word()); @@ -48,7 +48,7 @@ class StorageFileDirectoryExistsTest extends TestCase * * @return void */ - public function testFailsIfDirectoryDoesNotExist(): void + public function test_fails_if_directory_does_not_exist(): void { $fs = Storage::fake($this->faker->word()); diff --git a/tests/Unit/Rules/Wiki/Resource/AnimeResourceLinkFormatTest.php b/tests/Unit/Rules/Wiki/Resource/AnimeResourceLinkFormatTest.php index 6febd1280..c0740ada8 100644 --- a/tests/Unit/Rules/Wiki/Resource/AnimeResourceLinkFormatTest.php +++ b/tests/Unit/Rules/Wiki/Resource/AnimeResourceLinkFormatTest.php @@ -25,7 +25,7 @@ class AnimeResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForNoPattern(): void + public function test_fails_for_no_pattern(): void { $attribute = $this->faker->word(); @@ -42,7 +42,7 @@ class AnimeResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForPattern(): void + public function test_passes_for_pattern(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Anime::class)); @@ -64,7 +64,7 @@ class AnimeResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlash(): void + public function test_fails_for_trailing_slash(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Anime::class)); @@ -90,7 +90,7 @@ class AnimeResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlug(): void + public function test_fails_for_trailing_slug(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Anime::class)); @@ -117,13 +117,13 @@ class AnimeResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForOtherResources(): void - { + public function test_fails_for_other_resources(): void + { /** @var ResourceSite $site */ $site = Arr::random( array_filter( ResourceSite::cases(), - fn ($value) => !in_array($value, ResourceSite::getForModel(Anime::class)) + fn ($value) => ! in_array($value, ResourceSite::getForModel(Anime::class)) ) ); diff --git a/tests/Unit/Rules/Wiki/Resource/ArtistResourceLinkFormatTest.php b/tests/Unit/Rules/Wiki/Resource/ArtistResourceLinkFormatTest.php index 8aa48f8a6..330adfb13 100644 --- a/tests/Unit/Rules/Wiki/Resource/ArtistResourceLinkFormatTest.php +++ b/tests/Unit/Rules/Wiki/Resource/ArtistResourceLinkFormatTest.php @@ -25,7 +25,7 @@ class ArtistResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForNoPattern(): void + public function test_fails_for_no_pattern(): void { $attribute = $this->faker->word(); @@ -42,7 +42,7 @@ class ArtistResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForPattern(): void + public function test_passes_for_pattern(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Artist::class)); @@ -64,7 +64,7 @@ class ArtistResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlash(): void + public function test_fails_for_trailing_slash(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Artist::class)); @@ -90,7 +90,7 @@ class ArtistResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlug(): void + public function test_fails_for_trailing_slug(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Artist::class)); @@ -117,13 +117,13 @@ class ArtistResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForOtherResources(): void + public function test_fails_for_other_resources(): void { /** @var ResourceSite $site */ $site = Arr::random( array_filter( ResourceSite::cases(), - fn ($value) => !in_array($value, ResourceSite::getForModel(Artist::class)) + fn ($value) => ! in_array($value, ResourceSite::getForModel(Artist::class)) ) ); diff --git a/tests/Unit/Rules/Wiki/Resource/ResourceLinkFormatTest.php b/tests/Unit/Rules/Wiki/Resource/ResourceLinkFormatTest.php index a2c91a673..2849507d7 100644 --- a/tests/Unit/Rules/Wiki/Resource/ResourceLinkFormatTest.php +++ b/tests/Unit/Rules/Wiki/Resource/ResourceLinkFormatTest.php @@ -28,7 +28,7 @@ class ResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForNoSite(): void + public function test_passes_for_no_site(): void { $attribute = $this->faker->word(); @@ -45,7 +45,7 @@ class ResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForNoPattern(): void + public function test_passes_for_no_pattern(): void { $attribute = $this->faker->word(); @@ -62,7 +62,7 @@ class ResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForAnimeResource(): void + public function test_passes_for_anime_resource(): void { /** @var ResourceSite $site */ $site = Arr::random([ @@ -93,7 +93,7 @@ class ResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForArtistResource(): void + public function test_passes_for_artist_resource(): void { /** @var ResourceSite $site */ $site = Arr::random([ @@ -104,7 +104,7 @@ class ResourceLinkFormatTest extends TestCase ResourceSite::ANN, ResourceSite::MAL, ResourceSite::SPOTIFY, - ResourceSite::YOUTUBE + ResourceSite::YOUTUBE, ]); $url = $site->formatResourceLink(Artist::class, $this->faker->randomDigitNotNull(), $this->faker->word()); @@ -121,10 +121,10 @@ class ResourceLinkFormatTest extends TestCase /** * The Resource Link Format Rule shall pass for song resources. - * + * * @return void */ - public function testPassesForSongResource(): void + public function test_passes_for_song_resource(): void { /** @var ResourceSite $site */ $site = Arr::random([ @@ -152,7 +152,7 @@ class ResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForStudioResource(): void + public function test_passes_for_studio_resource(): void { /** @var ResourceSite $site */ $site = Arr::random([ @@ -181,7 +181,7 @@ class ResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlash(): void + public function test_fails_for_trailing_slash(): void { // Resource sites that can be attached for all models. $site = Arr::random([ diff --git a/tests/Unit/Rules/Wiki/Resource/ResourceSiteMatchesLinkTest.php b/tests/Unit/Rules/Wiki/Resource/ResourceSiteMatchesLinkTest.php index 6395a3f27..687b410da 100644 --- a/tests/Unit/Rules/Wiki/Resource/ResourceSiteMatchesLinkTest.php +++ b/tests/Unit/Rules/Wiki/Resource/ResourceSiteMatchesLinkTest.php @@ -23,7 +23,7 @@ class ResourceSiteMatchesLinkTest extends TestCase * * @return void */ - public function testPassesIfSiteMatchesLink(): void + public function test_passes_if_site_matches_link(): void { $site = null; @@ -55,7 +55,7 @@ class ResourceSiteMatchesLinkTest extends TestCase * * @return void */ - public function testResourceSiteDomainRuleOfficialPasses(): void + public function test_resource_site_domain_rule_official_passes(): void { $attribute = $this->faker->word(); @@ -72,7 +72,7 @@ class ResourceSiteMatchesLinkTest extends TestCase * * @return void */ - public function testResourceSiteDomainRuleFails(): void + public function test_resource_site_domain_rule_fails(): void { $site = null; diff --git a/tests/Unit/Rules/Wiki/Resource/SongResourceLinkFormatTest.php b/tests/Unit/Rules/Wiki/Resource/SongResourceLinkFormatTest.php index 1493f3f5b..c082b38bd 100644 --- a/tests/Unit/Rules/Wiki/Resource/SongResourceLinkFormatTest.php +++ b/tests/Unit/Rules/Wiki/Resource/SongResourceLinkFormatTest.php @@ -25,7 +25,7 @@ class SongResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForNoPattern(): void + public function test_fails_for_no_pattern(): void { $attribute = $this->faker->word(); @@ -42,7 +42,7 @@ class SongResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForPattern(): void + public function test_passes_for_pattern(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Song::class)); @@ -64,7 +64,7 @@ class SongResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlash(): void + public function test_fails_for_trailing_slash(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Song::class)); @@ -90,7 +90,7 @@ class SongResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlug(): void + public function test_fails_for_trailing_slug(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Song::class)); @@ -117,13 +117,13 @@ class SongResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForOtherResources(): void + public function test_fails_for_other_resources(): void { /** @var ResourceSite $site */ $site = Arr::random( array_filter( ResourceSite::cases(), - fn ($value) => !in_array($value, ResourceSite::getForModel(Song::class)) + fn ($value) => ! in_array($value, ResourceSite::getForModel(Song::class)) ) ); @@ -138,5 +138,4 @@ class SongResourceLinkFormatTest extends TestCase static::assertFalse($validator->passes()); } - } diff --git a/tests/Unit/Rules/Wiki/Resource/StudioResourceLinkFormatTest.php b/tests/Unit/Rules/Wiki/Resource/StudioResourceLinkFormatTest.php index 13313e64b..e9b11b25e 100644 --- a/tests/Unit/Rules/Wiki/Resource/StudioResourceLinkFormatTest.php +++ b/tests/Unit/Rules/Wiki/Resource/StudioResourceLinkFormatTest.php @@ -25,7 +25,7 @@ class StudioResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForNoPattern(): void + public function test_fails_for_no_pattern(): void { $attribute = $this->faker->word(); @@ -42,7 +42,7 @@ class StudioResourceLinkFormatTest extends TestCase * * @return void */ - public function testPassesForPattern(): void + public function test_passes_for_pattern(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Studio::class)); @@ -64,7 +64,7 @@ class StudioResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlash(): void + public function test_fails_for_trailing_slash(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Studio::class)); @@ -90,7 +90,7 @@ class StudioResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForTrailingSlug(): void + public function test_fails_for_trailing_slug(): void { /** @var ResourceSite $site */ $site = Arr::random(ResourceSite::getForModel(Studio::class)); @@ -117,13 +117,13 @@ class StudioResourceLinkFormatTest extends TestCase * * @return void */ - public function testFailsForOtherResources(): void + public function test_fails_for_other_resources(): void { /** @var ResourceSite $site */ $site = Arr::random( array_filter( ResourceSite::cases(), - fn ($value) => !in_array($value, ResourceSite::getForModel(Studio::class)) + fn ($value) => ! in_array($value, ResourceSite::getForModel(Studio::class)) ) ); diff --git a/tests/Unit/Rules/Wiki/Submission/Audio/AudioChannelLayoutStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Audio/AudioChannelLayoutStreamTest.php index 18eb95845..a2b44d7f1 100644 --- a/tests/Unit/Rules/Wiki/Submission/Audio/AudioChannelLayoutStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Audio/AudioChannelLayoutStreamTest.php @@ -24,7 +24,7 @@ class AudioChannelLayoutStreamTest extends TestCase * * @return void */ - public function testFailsWhenLayoutIsNotStereo(): void + public function test_fails_when_layout_is_not_stereo(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -66,7 +66,7 @@ class AudioChannelLayoutStreamTest extends TestCase * * @return void */ - public function testPassesWhenLayoutIsStereo(): void + public function test_passes_when_layout_is_stereo(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Audio/AudioChannelsStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Audio/AudioChannelsStreamTest.php index 3957afc69..18fc70d97 100644 --- a/tests/Unit/Rules/Wiki/Submission/Audio/AudioChannelsStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Audio/AudioChannelsStreamTest.php @@ -24,7 +24,7 @@ class AudioChannelsStreamTest extends TestCase * * @return void */ - public function testFailsWhenChannelCountIsNotTwo(): void + public function test_fails_when_channel_count_is_not_two(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -66,7 +66,7 @@ class AudioChannelsStreamTest extends TestCase * * @return void */ - public function testPassesWhenChannelCountIsTwo(): void + public function test_passes_when_channel_count_is_two(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Audio/AudioCodecStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Audio/AudioCodecStreamTest.php index 054e495b5..202c576d4 100644 --- a/tests/Unit/Rules/Wiki/Submission/Audio/AudioCodecStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Audio/AudioCodecStreamTest.php @@ -24,7 +24,7 @@ class AudioCodecStreamTest extends TestCase * * @return void */ - public function testFailsWhenCodecIsNotOpus(): void + public function test_fails_when_codec_is_not_opus(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -66,7 +66,7 @@ class AudioCodecStreamTest extends TestCase * * @return void */ - public function testPassesWhenCodecIsOpus(): void + public function test_passes_when_codec_is_opus(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Audio/AudioIndexStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Audio/AudioIndexStreamTest.php index 68e3933f6..a9f99e4d3 100644 --- a/tests/Unit/Rules/Wiki/Submission/Audio/AudioIndexStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Audio/AudioIndexStreamTest.php @@ -24,7 +24,7 @@ class AudioIndexStreamTest extends TestCase * * @return void */ - public function testFailsWhenIndexIsNotExpected(): void + public function test_fails_when_index_is_not_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -66,7 +66,7 @@ class AudioIndexStreamTest extends TestCase * * @return void */ - public function testPassesWhenIndexIsExpected(): void + public function test_passes_when_index_is_expected(): void { $index = $this->faker->randomDigitNotNull(); diff --git a/tests/Unit/Rules/Wiki/Submission/Audio/AudioLoudnessIntegratedTargetStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Audio/AudioLoudnessIntegratedTargetStreamTest.php index e3a53cff8..4b1d82ebb 100644 --- a/tests/Unit/Rules/Wiki/Submission/Audio/AudioLoudnessIntegratedTargetStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Audio/AudioLoudnessIntegratedTargetStreamTest.php @@ -24,7 +24,7 @@ class AudioLoudnessIntegratedTargetStreamTest extends TestCase * * @return void */ - public function testFailsWhenIntegratedTargetIsNotExpected(): void + public function test_fails_when_integrated_target_is_not_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -65,7 +65,7 @@ class AudioLoudnessIntegratedTargetStreamTest extends TestCase * * @return void */ - public function testPassesWhenIntegratedTargetIsNotExpected(): void + public function test_passes_when_integrated_target_is_not_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Audio/AudioLoudnessTruePeakStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Audio/AudioLoudnessTruePeakStreamTest.php index e1a3422d4..721e2306f 100644 --- a/tests/Unit/Rules/Wiki/Submission/Audio/AudioLoudnessTruePeakStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Audio/AudioLoudnessTruePeakStreamTest.php @@ -24,7 +24,7 @@ class AudioLoudnessTruePeakStreamTest extends TestCase * * @return void */ - public function testFailsWhenTruePeakIsNotExpected(): void + public function test_fails_when_true_peak_is_not_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -65,7 +65,7 @@ class AudioLoudnessTruePeakStreamTest extends TestCase * * @return void */ - public function testPassesWhenTruePeakIsExpected(): void + public function test_passes_when_true_peak_is_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Audio/AudioSampleRateStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Audio/AudioSampleRateStreamTest.php index 48ebad9b5..d722a5952 100644 --- a/tests/Unit/Rules/Wiki/Submission/Audio/AudioSampleRateStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Audio/AudioSampleRateStreamTest.php @@ -24,7 +24,7 @@ class AudioSampleRateStreamTest extends TestCase * * @return void */ - public function testFailsWhenSampleRateIsNotExpected(): void + public function test_fails_when_sample_rate_is_not_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -66,7 +66,7 @@ class AudioSampleRateStreamTest extends TestCase * * @return void */ - public function testPassesWhenSampleRateIsExpected(): void + public function test_passes_when_sample_rate_is_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Format/AudioBitrateRestrictionFormatTest.php b/tests/Unit/Rules/Wiki/Submission/Format/AudioBitrateRestrictionFormatTest.php index 32570f11e..aa8d35eed 100644 --- a/tests/Unit/Rules/Wiki/Submission/Format/AudioBitrateRestrictionFormatTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Format/AudioBitrateRestrictionFormatTest.php @@ -26,7 +26,7 @@ class AudioBitrateRestrictionFormatTest extends TestCase * * @return void */ - public function testFailsWhenBitrateIsNotExpected(): void + public function test_fails_when_bitrate_is_not_expected(): void { Feature::activate(FeatureConstants::AUDIO_BITRATE_RESTRICTION); @@ -67,7 +67,7 @@ class AudioBitrateRestrictionFormatTest extends TestCase * * @return void */ - public function testPassesWhenBitrateIsExpected(): void + public function test_passes_when_bitrate_is_expected(): void { Feature::activate(FeatureConstants::AUDIO_BITRATE_RESTRICTION); diff --git a/tests/Unit/Rules/Wiki/Submission/Format/EncoderNameFormatTest.php b/tests/Unit/Rules/Wiki/Submission/Format/EncoderNameFormatTest.php index 9faaf0bcf..06cb567e3 100644 --- a/tests/Unit/Rules/Wiki/Submission/Format/EncoderNameFormatTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Format/EncoderNameFormatTest.php @@ -24,7 +24,7 @@ class EncoderNameFormatTest extends TestCase * * @return void */ - public function testFailsWhenEncoderNameIsNotFFmpeg(): void + public function test_fails_when_encoder_name_is_not_f_fmpeg(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -65,7 +65,7 @@ class EncoderNameFormatTest extends TestCase * * @return void */ - public function testPassesWhenEncoderNameIsFFmpeg(): void + public function test_passes_when_encoder_name_is_f_fmpeg(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Format/EncoderVersionFormatTest.php b/tests/Unit/Rules/Wiki/Submission/Format/EncoderVersionFormatTest.php index 7f2137b09..8d1755e40 100644 --- a/tests/Unit/Rules/Wiki/Submission/Format/EncoderVersionFormatTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Format/EncoderVersionFormatTest.php @@ -26,7 +26,7 @@ class EncoderVersionFormatTest extends TestCase * * @return void */ - public function testFailsWhenEncoderVersionIsOlderThanRequired(): void + public function test_fails_when_encoder_version_is_older_than_required(): void { Feature::activate(FeatureConstants::REQUIRED_ENCODER_VERSION, 'Lavf59.27.100'); @@ -69,7 +69,7 @@ class EncoderVersionFormatTest extends TestCase * * @return void */ - public function testFailsWhenEncoderVersionIsUpToDate(): void + public function test_fails_when_encoder_version_is_up_to_date(): void { Feature::activate(FeatureConstants::REQUIRED_ENCODER_VERSION, 'Lavf59.27.100'); diff --git a/tests/Unit/Rules/Wiki/Submission/Format/ExtraneousChaptersFormatTest.php b/tests/Unit/Rules/Wiki/Submission/Format/ExtraneousChaptersFormatTest.php index ee977c7c9..2a389e9bf 100644 --- a/tests/Unit/Rules/Wiki/Submission/Format/ExtraneousChaptersFormatTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Format/ExtraneousChaptersFormatTest.php @@ -24,7 +24,7 @@ class ExtraneousChaptersFormatTest extends TestCase * * @return void */ - public function testFailsWhenChapterDataIsNotEmpty(): void + public function test_fails_when_chapter_data_is_not_empty(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -63,7 +63,7 @@ class ExtraneousChaptersFormatTest extends TestCase * * @return void */ - public function testPassesWhenChapterDataIsEmpty(): void + public function test_passes_when_chapter_data_is_empty(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Format/ExtraneousMetadataFormatTest.php b/tests/Unit/Rules/Wiki/Submission/Format/ExtraneousMetadataFormatTest.php index ff136067a..cd0bd0fc5 100644 --- a/tests/Unit/Rules/Wiki/Submission/Format/ExtraneousMetadataFormatTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Format/ExtraneousMetadataFormatTest.php @@ -24,7 +24,7 @@ class ExtraneousMetadataFormatTest extends TestCase * * @return void */ - public function testFailsWhenExtraneousMetadataIsPresent(): void + public function test_fails_when_extraneous_metadata_is_present(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -67,7 +67,7 @@ class ExtraneousMetadataFormatTest extends TestCase * * @return void */ - public function testPassesNoExtraneousMetadata(): void + public function test_passes_no_extraneous_metadata(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Format/FormatNameFormatTest.php b/tests/Unit/Rules/Wiki/Submission/Format/FormatNameFormatTest.php index 50342f51a..ab59cecee 100644 --- a/tests/Unit/Rules/Wiki/Submission/Format/FormatNameFormatTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Format/FormatNameFormatTest.php @@ -24,7 +24,7 @@ class FormatNameFormatTest extends TestCase * * @return void */ - public function testFailsWhenFormatNameIsNotExpected(): void + public function test_fails_when_format_name_is_not_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -63,7 +63,7 @@ class FormatNameFormatTest extends TestCase * * @return void */ - public function testPassesWhenFormatNameIsExpected(): void + public function test_passes_when_format_name_is_expected(): void { $formatName = $this->faker->word(); diff --git a/tests/Unit/Rules/Wiki/Submission/Format/TotalStreamsFormatTest.php b/tests/Unit/Rules/Wiki/Submission/Format/TotalStreamsFormatTest.php index b70201fd3..c36d4b049 100644 --- a/tests/Unit/Rules/Wiki/Submission/Format/TotalStreamsFormatTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Format/TotalStreamsFormatTest.php @@ -24,7 +24,7 @@ class TotalStreamsFormatTest extends TestCase * * @return void */ - public function testFailsWhenCountIsNotExpected(): void + public function test_fails_when_count_is_not_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -65,7 +65,7 @@ class TotalStreamsFormatTest extends TestCase * * @return void */ - public function testPassesWhenCountIsExpected(): void + public function test_passes_when_count_is_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Format/VideoBitrateRestrictionFormatTest.php b/tests/Unit/Rules/Wiki/Submission/Format/VideoBitrateRestrictionFormatTest.php index 233075542..5e49af30f 100644 --- a/tests/Unit/Rules/Wiki/Submission/Format/VideoBitrateRestrictionFormatTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Format/VideoBitrateRestrictionFormatTest.php @@ -26,7 +26,7 @@ class VideoBitrateRestrictionFormatTest extends TestCase * * @return void */ - public function testFailsWhenBitrateIsNotExpected(): void + public function test_fails_when_bitrate_is_not_expected(): void { Feature::activate(FeatureConstants::VIDEO_BITRATE_RESTRICTION); @@ -76,7 +76,7 @@ class VideoBitrateRestrictionFormatTest extends TestCase * * @return void */ - public function testPassesWhenBitrateIsExpected(): void + public function test_passes_when_bitrate_is_expected(): void { Feature::activate(FeatureConstants::VIDEO_BITRATE_RESTRICTION); diff --git a/tests/Unit/Rules/Wiki/Submission/SubmissionTest.php b/tests/Unit/Rules/Wiki/Submission/SubmissionTest.php index a18255b2c..7c1405046 100644 --- a/tests/Unit/Rules/Wiki/Submission/SubmissionTest.php +++ b/tests/Unit/Rules/Wiki/Submission/SubmissionTest.php @@ -46,7 +46,7 @@ class SubmissionTest extends TestCase * * @return void */ - public function testRunsProcessesOnce(): void + public function test_runs_processes_once(): void { Feature::activate(FeatureConstants::REQUIRED_ENCODER_VERSION, 'Lavf59.27.100'); Feature::activate(FeatureConstants::AUDIO_BITRATE_RESTRICTION); diff --git a/tests/Unit/Rules/Wiki/Submission/Video/VideoCodecStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Video/VideoCodecStreamTest.php index f575c330f..f61b98f27 100644 --- a/tests/Unit/Rules/Wiki/Submission/Video/VideoCodecStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Video/VideoCodecStreamTest.php @@ -26,7 +26,7 @@ class VideoCodecStreamTest extends TestCase * * @return void */ - public function testFailsWhenCodecIsNotVp9(): void + public function test_fails_when_codec_is_not_vp9(): void { Feature::activate(FeatureConstants::VIDEO_CODEC_STREAM, 'vp9'); @@ -70,7 +70,7 @@ class VideoCodecStreamTest extends TestCase * * @return void */ - public function testPassesWhenCodecIsVp9(): void + public function test_passes_when_codec_is_vp9(): void { Feature::activate(FeatureConstants::VIDEO_CODEC_STREAM, 'vp9'); diff --git a/tests/Unit/Rules/Wiki/Submission/Video/VideoColorPrimariesStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Video/VideoColorPrimariesStreamTest.php index a56272766..1c35a8140 100644 --- a/tests/Unit/Rules/Wiki/Submission/Video/VideoColorPrimariesStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Video/VideoColorPrimariesStreamTest.php @@ -27,7 +27,7 @@ class VideoColorPrimariesStreamTest extends TestCase * * @return void */ - public function testFailsWhenColorPrimariesIsNotAccepted(): void + public function test_fails_when_color_primaries_is_not_accepted(): void { Feature::activate(FeatureConstants::VIDEO_COLOR_PRIMARIES_STREAM, 'bt709,smpte170m,bt470bg'); @@ -71,7 +71,7 @@ class VideoColorPrimariesStreamTest extends TestCase * * @return void */ - public function testPassesWhenColorPrimariesIsAccepted(): void + public function test_passes_when_color_primaries_is_accepted(): void { Feature::activate(FeatureConstants::VIDEO_COLOR_PRIMARIES_STREAM, 'bt709,smpte170m,bt470bg'); diff --git a/tests/Unit/Rules/Wiki/Submission/Video/VideoColorSpaceStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Video/VideoColorSpaceStreamTest.php index a54d68f17..7797145bf 100644 --- a/tests/Unit/Rules/Wiki/Submission/Video/VideoColorSpaceStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Video/VideoColorSpaceStreamTest.php @@ -27,7 +27,7 @@ class VideoColorSpaceStreamTest extends TestCase * * @return void */ - public function testFailsWhenColorSpaceIsNotAccepted(): void + public function test_fails_when_color_space_is_not_accepted(): void { Feature::activate(FeatureConstants::VIDEO_COLOR_SPACE_STREAM, 'bt709,smpte170m,bt470bg'); @@ -71,7 +71,7 @@ class VideoColorSpaceStreamTest extends TestCase * * @return void */ - public function testPassesWhenColorSpaceIsAccepted(): void + public function test_passes_when_color_space_is_accepted(): void { Feature::activate(FeatureConstants::VIDEO_COLOR_SPACE_STREAM, 'bt709,smpte170m,bt470bg'); diff --git a/tests/Unit/Rules/Wiki/Submission/Video/VideoColorTransferStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Video/VideoColorTransferStreamTest.php index 2c08a2e3b..4ad487c3e 100644 --- a/tests/Unit/Rules/Wiki/Submission/Video/VideoColorTransferStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Video/VideoColorTransferStreamTest.php @@ -27,7 +27,7 @@ class VideoColorTransferStreamTest extends TestCase * * @return void */ - public function testFailsWhenColorTransferIsNotAccepted(): void + public function test_fails_when_color_transfer_is_not_accepted(): void { Feature::activate(FeatureConstants::VIDEO_COLOR_TRANSFER_STREAM, 'bt709,smpte170m,bt470bg'); @@ -71,7 +71,7 @@ class VideoColorTransferStreamTest extends TestCase * * @return void */ - public function testPassesWhenColorTransferIsAccepted(): void + public function test_passes_when_color_transfer_is_accepted(): void { Feature::activate(FeatureConstants::VIDEO_COLOR_TRANSFER_STREAM, 'bt709,smpte170m,bt470bg'); diff --git a/tests/Unit/Rules/Wiki/Submission/Video/VideoIndexStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Video/VideoIndexStreamTest.php index 0711d5dea..4fd32da99 100644 --- a/tests/Unit/Rules/Wiki/Submission/Video/VideoIndexStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Video/VideoIndexStreamTest.php @@ -24,7 +24,7 @@ class VideoIndexStreamTest extends TestCase * * @return void */ - public function testFailsWhenIndexIsNotExpected(): void + public function test_fails_when_index_is_not_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); @@ -66,7 +66,7 @@ class VideoIndexStreamTest extends TestCase * * @return void */ - public function testPassesWhenIndexIsExpected(): void + public function test_passes_when_index_is_expected(): void { $file = UploadedFile::fake()->create($this->faker->word().'.webm', $this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Rules/Wiki/Submission/Video/VideoPixelFormatStreamTest.php b/tests/Unit/Rules/Wiki/Submission/Video/VideoPixelFormatStreamTest.php index 57200691f..e9e1ff8e0 100644 --- a/tests/Unit/Rules/Wiki/Submission/Video/VideoPixelFormatStreamTest.php +++ b/tests/Unit/Rules/Wiki/Submission/Video/VideoPixelFormatStreamTest.php @@ -26,7 +26,7 @@ class VideoPixelFormatStreamTest extends TestCase * * @return void */ - public function testFailsWhenCodecIsNotYuv420p(): void + public function test_fails_when_codec_is_not_yuv420p(): void { Feature::activate(FeatureConstants::VIDEO_PIXEL_FORMAT_STREAM, 'yuv420p'); @@ -70,7 +70,7 @@ class VideoPixelFormatStreamTest extends TestCase * * @return void */ - public function testPassesWhenCodecIsVp9(): void + public function test_passes_when_codec_is_vp9(): void { Feature::activate(FeatureConstants::VIDEO_PIXEL_FORMAT_STREAM, 'yuv420p'); diff --git a/tests/Unit/Scout/Elasticsearch/Api/Parser/FilterParserTest.php b/tests/Unit/Scout/Elasticsearch/Api/Parser/FilterParserTest.php index f9268cab1..4ebfc0ac8 100644 --- a/tests/Unit/Scout/Elasticsearch/Api/Parser/FilterParserTest.php +++ b/tests/Unit/Scout/Elasticsearch/Api/Parser/FilterParserTest.php @@ -32,7 +32,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testWhereCriteria(): void + public function test_where_criteria(): void { $expression = new Expression($this->faker->word()); @@ -52,7 +52,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testWhereInCriteria(): void + public function test_where_in_criteria(): void { $expression = new Expression($this->faker->word()); @@ -75,7 +75,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testHasCriteria(): void + public function test_has_criteria(): void { $expression = new Expression($this->faker->word()); @@ -98,7 +98,7 @@ class FilterParserTest extends TestCase * * @return void */ - public function testTrashedCriteria(): void + public function test_trashed_criteria(): void { $expression = new Expression($this->faker->word()); diff --git a/tests/Unit/Scout/Elasticsearch/Api/Parser/PagingParserTest.php b/tests/Unit/Scout/Elasticsearch/Api/Parser/PagingParserTest.php index 3ea0cdee4..f0ed4f09e 100644 --- a/tests/Unit/Scout/Elasticsearch/Api/Parser/PagingParserTest.php +++ b/tests/Unit/Scout/Elasticsearch/Api/Parser/PagingParserTest.php @@ -24,7 +24,7 @@ class PagingParserTest extends TestCase * * @return void */ - public function testLimitCriteria(): void + public function test_limit_criteria(): void { $criteria = new BaseLimitCriteria($this->faker->randomDigitNotNull()); @@ -36,7 +36,7 @@ class PagingParserTest extends TestCase * * @return void */ - public function testOffsetCriteria(): void + public function test_offset_criteria(): void { $criteria = new BaseOffsetCriteria($this->faker->randomDigitNotNull()); diff --git a/tests/Unit/Scout/Elasticsearch/Api/Parser/SortParserTest.php b/tests/Unit/Scout/Elasticsearch/Api/Parser/SortParserTest.php index b63d0522e..d883fbdf0 100644 --- a/tests/Unit/Scout/Elasticsearch/Api/Parser/SortParserTest.php +++ b/tests/Unit/Scout/Elasticsearch/Api/Parser/SortParserTest.php @@ -28,7 +28,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testRelationCriteria(): void + public function test_relation_criteria(): void { $direction = Arr::random(Direction::cases()); @@ -42,7 +42,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testFieldCriteria(): void + public function test_field_criteria(): void { $direction = Arr::random(Direction::cases()); @@ -56,7 +56,7 @@ class SortParserTest extends TestCase * * @return void */ - public function testRandomCriteria(): void + public function test_random_criteria(): void { $criteria = new RandomCriteria(new GlobalScope());