From 604b7e193712c06bab8aeee47f5057b069e72695 Mon Sep 17 00:00:00 2001 From: Roardom Date: Mon, 20 Jan 2025 12:51:49 +0000 Subject: [PATCH] add: spell check ci Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json. --- .cspell/bittorrent.txt | 12 + .cspell/blade.txt | 12 + .cspell/brands.txt | 16 + .cspell/dependencies.txt | 34 +++ .cspell/dependency_terms.txt | 6 + .cspell/html.txt | 27 ++ .cspell/irc.txt | 6 + .cspell/laravel.txt | 22 ++ .cspell/mysql.txt | 8 + .cspell/people.txt | 7 + .cspell/php.txt | 10 + .cspell/php_constants.txt | 4 + .cspell/php_functions.txt | 45 +++ .cspell/redis.txt | 6 + .github/workflows/spellcheck.yml | 19 ++ CONTRIBUTING.md | 4 +- .../Commands/AutoDeactivateWarning.php | 2 +- .../AutoRecycleClaimedTorrentRequests.php | 2 +- app/Console/Commands/FetchMeta.php | 2 +- app/Console/Commands/GitUpdater.php | 2 +- app/Helpers/BackupEncryption.php | 8 +- app/Helpers/Bencode.php | 4 +- app/Helpers/Helpers.php | 3 +- app/Helpers/SystemInformation.php | 3 +- app/Helpers/TorrentHelper.php | 5 +- .../Controllers/API/TorrentController.php | 2 +- app/Http/Controllers/AnnounceController.php | 7 +- app/Http/Controllers/HomeController.php | 2 +- app/Http/Controllers/ReseedController.php | 2 +- .../Controllers/Staff/CommandController.php | 4 +- .../Controllers/Staff/FlushController.php | 2 +- .../Controllers/Staff/ReportController.php | 1 + .../Controllers/TorrentBuffController.php | 4 +- app/Http/Controllers/TorrentController.php | 2 +- .../User/ResurrectionController.php | 2 +- app/Http/Livewire/BbcodeInput.php | 2 +- .../Livewire/ForumCategoryTopicSearch.php | 6 +- app/Http/Livewire/ForumTopicSearch.php | 6 +- app/Http/Livewire/LaravelLogViewer.php | 2 +- app/Http/Livewire/PersonCredit.php | 2 +- app/Http/Livewire/SimilarTorrent.php | 2 +- app/Http/Livewire/SubscribedTopic.php | 2 +- app/Http/Livewire/TopicSearch.php | 6 +- app/Http/Livewire/TorrentSearch.php | 2 +- app/Http/Requests/StoreTorrentRequest.php | 2 +- .../Requests/StoreTorrentRequestRequest.php | 2 +- app/Listeners/RegisteredListener.php | 2 +- app/Models/Comment.php | 2 +- app/Models/DonationPackage.php | 2 +- app/Models/Torrent.php | 4 +- app/Notifications/NewUnfollow.php | 2 +- app/Notifications/UserBan.php | 4 +- app/Notifications/UserMaxWarningsReached.php | 4 +- app/Repositories/ChatRepository.php | 4 +- app/Services/Tmdb/Client/Movie.php | 4 +- config/audit.php | 2 +- config/backup.php | 2 +- config/email-blacklist.php | 2 +- config/graveyard.php | 2 +- config/hitrun.php | 2 +- config/livewire.php | 2 + config/other.php | 2 +- cspell.json | 282 ++++++++++++++++++ database/seeders/PagesTableSeeder.php | 2 + docker-compose.yml | 1 + docs/README.md | 2 +- docs/basic_tuning.md | 6 +- docs/local_development_arch_linux.md | 2 + docs/server_management.md | 4 +- docs/sharing_source_code.md | 2 + docs/torrent_api.md | 12 +- docs/upgrading_php_version.md | 18 +- public/img/meta/{bluray.svg => blu-ray.svg} | 0 resources/sass/components/_swal.scss | 2 +- resources/sass/components/_tooltips.scss | 2 +- resources/views/Staff/command/index.blade.php | 4 +- .../views/Staff/dashboard/index.blade.php | 2 +- .../views/Staff/donation/index.blade.php | 2 +- .../Staff/donation_gateway/create.blade.php | 2 +- .../Staff/donation_package/create.blade.php | 2 +- .../views/Staff/internals/edit.blade.php | 2 +- .../views/components/torrent/card.blade.php | 14 +- .../views/components/torrent/row.blade.php | 2 +- resources/views/components/tv/card.blade.php | 2 +- .../views/livewire/backup-panel.blade.php | 1 - .../forum-category-topic-search.blade.php | 2 +- .../livewire/laravel-log-viewer.blade.php | 2 +- .../livewire/two-factor-auth-form.blade.php | 2 +- .../views/mediahub/genre/index.blade.php | 2 +- resources/views/partials/top_nav.blade.php | 2 +- .../torrent/partials/movie_meta.blade.php | 5 +- .../views/torrent/partials/tv_meta.blade.php | 5 +- resources/views/torrent/show.blade.php | 2 +- .../vendor/notifications/email.blade.php | 1 + routes/web.php | 10 +- .../PlaylistTorrentControllerTest.php | 2 +- .../Staff/CommandControllerTest.php | 4 +- .../StoreTorrentRequestRequestTest.php | 2 +- .../Http/Requests/StoreTorrentRequestTest.php | 2 +- 99 files changed, 661 insertions(+), 123 deletions(-) create mode 100644 .cspell/bittorrent.txt create mode 100644 .cspell/blade.txt create mode 100644 .cspell/brands.txt create mode 100644 .cspell/dependencies.txt create mode 100644 .cspell/dependency_terms.txt create mode 100644 .cspell/html.txt create mode 100644 .cspell/irc.txt create mode 100644 .cspell/laravel.txt create mode 100644 .cspell/mysql.txt create mode 100644 .cspell/people.txt create mode 100644 .cspell/php.txt create mode 100644 .cspell/php_constants.txt create mode 100644 .cspell/php_functions.txt create mode 100644 .cspell/redis.txt create mode 100644 .github/workflows/spellcheck.yml create mode 100644 cspell.json rename public/img/meta/{bluray.svg => blu-ray.svg} (100%) diff --git a/.cspell/bittorrent.txt b/.cspell/bittorrent.txt new file mode 100644 index 0000000000..69e64e847a --- /dev/null +++ b/.cspell/bittorrent.txt @@ -0,0 +1,12 @@ +announce +bdecode +bencode +btih +infohash +leecher +leechers +numwant +peerlist +seedbox +seedboxes +seeders \ No newline at end of file diff --git a/.cspell/blade.txt b/.cspell/blade.txt new file mode 100644 index 0000000000..010c79b995 --- /dev/null +++ b/.cspell/blade.txt @@ -0,0 +1,12 @@ +endcomponent +enderror +endfor +endforeach +endforelse +endisset +endphp +endsection +endslot +endswitch +forelse +isset \ No newline at end of file diff --git a/.cspell/brands.txt b/.cspell/brands.txt new file mode 100644 index 0000000000..061e799d74 --- /dev/null +++ b/.cspell/brands.txt @@ -0,0 +1,16 @@ +authy +bdinfo +bitwarden +gnutella +igdb +imdb +jackett +kazaa +limewire +mal +mediainfo +phpstorm +shareaza +tmdb +tvdb +tvrage \ No newline at end of file diff --git a/.cspell/dependencies.txt b/.cspell/dependencies.txt new file mode 100644 index 0000000000..177cb3edc6 --- /dev/null +++ b/.cspell/dependencies.txt @@ -0,0 +1,34 @@ +alpinejs +assada +axios +axllent +beanstalkd +commonmark +gabrielelana +getmeili +imagick +imgbb +joypixels +laravel +linkify +livewire +mailgun +mailpit +meilisearch +papertrail +phpredis +phpstan +phpunit +polycast +purgecss +reichel +ryoluo +spatie +stelmakh +sweetalert +symfony +theodorejb +typesense +vite +voku +zxcvbn \ No newline at end of file diff --git a/.cspell/dependency_terms.txt b/.cspell/dependency_terms.txt new file mode 100644 index 0000000000..6db77bea4f --- /dev/null +++ b/.cspell/dependency_terms.txt @@ -0,0 +1,6 @@ +asciify +dontBackupDatabases +dontBackupFilesystem +htmlify +lexify +swal \ No newline at end of file diff --git a/.cspell/html.txt b/.cspell/html.txt new file mode 100644 index 0000000000..d0aa7ddda5 --- /dev/null +++ b/.cspell/html.txt @@ -0,0 +1,27 @@ +autocorrect +autofocus +backref +contentlength +datalist +describedby +evenodd +formaction +formmethod +formnovalidate +inputmode +lightcoral +maxlength +minmax +nbsp +noopener +noreferrer +nowrap +progressbar +rowgroup +rowspan +stroke-linejoin +tabindex +valuemax +valuemin +valuenow +xlink \ No newline at end of file diff --git a/.cspell/irc.txt b/.cspell/irc.txt new file mode 100644 index 0000000000..ae6b90229a --- /dev/null +++ b/.cspell/irc.txt @@ -0,0 +1,6 @@ +joinchannel +nickserv +nickservpass +privmsg +realname +servername \ No newline at end of file diff --git a/.cspell/laravel.txt b/.cspell/laravel.txt new file mode 100644 index 0000000000..d3c29aeb0a --- /dev/null +++ b/.cspell/laravel.txt @@ -0,0 +1,22 @@ +arrayable +assertdontseetext +dispatchable +doesntcontain +doesntexist +dontbroadcasttocurrentuser +dontflash +dontreport +ehlo +encryptable +encrypter +mimetypes +mysql +ordoesnthave +pgsql +queueable +sasl +sslmode +sqlite +sqlsrv +stringable +wheredoesnthave diff --git a/.cspell/mysql.txt b/.cspell/mysql.txt new file mode 100644 index 0000000000..4242293bb2 --- /dev/null +++ b/.cspell/mysql.txt @@ -0,0 +1,8 @@ +arrayagg +from_unixtime +inet6_ntoa +innodb +mysqld +mysqldump +timestampadd +timestampdiff \ No newline at end of file diff --git a/.cspell/people.txt b/.cspell/people.txt new file mode 100644 index 0000000000..2db23213bd --- /dev/null +++ b/.cspell/people.txt @@ -0,0 +1,7 @@ +hdvinnie +rhilip +roardom +sindre +sindresorhus +sorhus +vinnie \ No newline at end of file diff --git a/.cspell/php.txt b/.cspell/php.txt new file mode 100644 index 0000000000..80e7fe0d46 --- /dev/null +++ b/.cspell/php.txt @@ -0,0 +1,10 @@ +autoload +autoloaded +autoloading +bcmath +classmap +fastcgi +igbinary +mbstring +opcache +phar \ No newline at end of file diff --git a/.cspell/php_constants.txt b/.cspell/php_constants.txt new file mode 100644 index 0000000000..f5c4ed5f40 --- /dev/null +++ b/.cspell/php_constants.txt @@ -0,0 +1,4 @@ +ENT_NOQUOTES +PATHINFO_BASENAME +PREG_OFFSET_CAPTURE +PREG_SET_ORDER \ No newline at end of file diff --git a/.cspell/php_functions.txt b/.cspell/php_functions.txt new file mode 100644 index 0000000000..36acd9573c --- /dev/null +++ b/.cspell/php_functions.txt @@ -0,0 +1,45 @@ +addslashes +closedir +ctype_digit +ctype_print +ctype_xdigit +fclose +fgets +fileperms +fpassthru +fsockopen +fwrite +getcwd +gethostbyaddr +htmlspecialchars +inet_ntop +inet_pton +intdiv +intval +isset +ksort +ltrim +microtime +opendir +pathinfo +preg_match +preg_match_all +preg_quote +preg_replace +preg_replace_callback +preg_split +rawurlencode +rtrim +scandir +strcasecmp +strpos +strrchr +strspn +strtolower +strtotime +strtoupper +sys_getloadavg +uniqid +unserialize +urldecode +usleep \ No newline at end of file diff --git a/.cspell/redis.txt b/.cspell/redis.txt new file mode 100644 index 0000000000..2164719147 --- /dev/null +++ b/.cspell/redis.txt @@ -0,0 +1,6 @@ +llen +lpop +lpush +rpush +sadd +srandmember \ No newline at end of file diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000000..9460f71f47 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,19 @@ +name: Check Spelling +on: [push, pull_request] +jobs: + spellcheck: + strategy: + matrix: + operating-system: + - ubuntu-22.04 + name: ${{ matrix.operating-system }} + runs-on: ${{ matrix.operating-system }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run CSpell + uses: streetsidesoftware/cspell-action@v6 + with: + incremental_files_only: false diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 538fdb7061..792e916f69 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -Contributions are **welcome**. Please make all pull requests agaist the development branch (currently 8.x.x) and NOT master which is only for releases. +Contributions are **welcome**. Please make all pull requests against the development branch (currently 8.x.x) and NOT master which is only for releases. We accept contributions via Pull Requests on [Github](https://github.com/HDInnovations/UNIT3D). @@ -104,7 +104,7 @@ Any new pages should use the existing component styles unless a new block, eleme ## Other -- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date. +- **Document any change in behavior** - Make sure the `README.md` and any other relevant documentation are kept up-to-date. - **Create feature branches** - Don't ask us to pull from your master branch. diff --git a/app/Console/Commands/AutoDeactivateWarning.php b/app/Console/Commands/AutoDeactivateWarning.php index c464189294..381c94f95a 100644 --- a/app/Console/Commands/AutoDeactivateWarning.php +++ b/app/Console/Commands/AutoDeactivateWarning.php @@ -96,6 +96,6 @@ final public function handle(): void } }, 'user_id'); - $this->comment('Automated Warning Deativation Command Complete'); + $this->comment('Automated Warning Deactivation Command Complete'); } } diff --git a/app/Console/Commands/AutoRecycleClaimedTorrentRequests.php b/app/Console/Commands/AutoRecycleClaimedTorrentRequests.php index e0b3ad9650..7ce5af5b48 100644 --- a/app/Console/Commands/AutoRecycleClaimedTorrentRequests.php +++ b/app/Console/Commands/AutoRecycleClaimedTorrentRequests.php @@ -36,7 +36,7 @@ class AutoRecycleClaimedTorrentRequests extends Command * * @var string */ - protected $description = 'Recycle Torrent Requests That Wwere Claimed But Not Filled Within 7 Days.'; + protected $description = 'Recycle Torrent Requests That Were Claimed But Not Filled Within 7 Days.'; /** * AutoRecycleClaimedTorrentRequests Constructor. diff --git a/app/Console/Commands/FetchMeta.php b/app/Console/Commands/FetchMeta.php index 60d10b040f..86e8a7e09e 100644 --- a/app/Console/Commands/FetchMeta.php +++ b/app/Console/Commands/FetchMeta.php @@ -36,7 +36,7 @@ class FetchMeta extends Command * * @var string */ - protected $description = 'Fetchs Meta Data For New System On Preexxsisting Torrents'; + protected $description = 'Fetches Meta Data For New System On Preexisting Torrents'; /** * Execute the console command. diff --git a/app/Console/Commands/GitUpdater.php b/app/Console/Commands/GitUpdater.php index 2c3d6d606d..2eb8c898bd 100644 --- a/app/Console/Commands/GitUpdater.php +++ b/app/Console/Commands/GitUpdater.php @@ -126,7 +126,7 @@ private function update(): void $this->backup($paths); - $this->header('Reseting Repository'); + $this->header('Resetting Repository'); $this->commands([ 'git fetch origin', diff --git a/app/Helpers/BackupEncryption.php b/app/Helpers/BackupEncryption.php index 69d4e8da23..09d2c62e31 100644 --- a/app/Helpers/BackupEncryption.php +++ b/app/Helpers/BackupEncryption.php @@ -21,28 +21,28 @@ class BackupEncryption { /** - * Default encryption contants. + * Default encryption constants. * * @var int */ final public const ENCRYPTION_DEFAULT = ZipArchive::EM_AES_128; /** - * AES-128 encryption contants. + * AES-128 encryption constants. * * @var int */ final public const ENCRYPTION_WINZIP_AES_128 = ZipArchive::EM_AES_128; /** - * AES-192 encryption contants. + * AES-192 encryption constants. * * @var int */ final public const ENCRYPTION_WINZIP_AES_192 = ZipArchive::EM_AES_192; /** - * AES-256 encryption contants. + * AES-256 encryption constants. * * @var int */ diff --git a/app/Helpers/Bencode.php b/app/Helpers/Bencode.php index 7a49e8b693..6b6ec46065 100644 --- a/app/Helpers/Bencode.php +++ b/app/Helpers/Bencode.php @@ -175,7 +175,7 @@ public static function bencode($d) if ($isDict) { $ret = 'd'; - // this is required by the specs, and BitTornado actualy chokes on unsorted dictionaries + // this is required by the specs, and BitTornado actually chokes on unsorted dictionaries ksort($d, SORT_STRING); } @@ -223,7 +223,7 @@ public static function get_meta($t): array $size = 0; $count = 0; - // Multifile + // Multi-file if (isset($t['info']['files']) && \is_array($t['info']['files'])) { foreach ($t['info']['files'] as $file) { $count++; diff --git a/app/Helpers/Helpers.php b/app/Helpers/Helpers.php index 094e68e30e..c2c7445be5 100644 --- a/app/Helpers/Helpers.php +++ b/app/Helpers/Helpers.php @@ -129,6 +129,7 @@ function rating_color(null|int|float $number): ?string if (!\function_exists('language_flag')) { function language_flag(?string $language): ?string { + // cspell:words Bokmal, Limburgish, Sinhala, $flag = match ($language) { 'English', 'English (US)' => 'us', 'English (GB)' => 'gb', @@ -145,7 +146,7 @@ function language_flag(?string $language): ?string 'Bosnian', 'Bosnian (BA)' => 'ba', 'Bulgarian', 'Bulgarian (BG)' => 'bg', 'Burmese' => 'mm', - 'Chinese', 'Mandarin', 'Mandarin (Hans)', 'Mandarin (Hant)', 'Cantonese', 'Cantonese (Hant)', 'Chinese (Simplied)', 'Chinese (Traditional)', 'Chinese (Simplified)', 'Chinese-yue-Hant', 'Chinese-cmn-Hans', 'Chinese-cmn-Hant' => 'cn', + 'Chinese', 'Mandarin', 'Mandarin (Hans)', 'Mandarin (Hant)', 'Cantonese', 'Cantonese (Hant)', /* cspell:disable */ 'Chinese (Simplied)' /* cspell:enable */, 'Chinese (Traditional)', 'Chinese (Simplified)', 'Chinese-yue-Hant', 'Chinese-cmn-Hans', 'Chinese-cmn-Hant' => 'cn', 'Chinese (HK)', 'Chinese-Hant-HK', 'Mandarin (HK)', 'Cantonese (HK)', 'Chinese-cmn-HK' => 'hk', 'Chinese (Taiwan)' => 'tw', 'Croatian', 'Croatian (HR)' => 'hr', diff --git a/app/Helpers/SystemInformation.php b/app/Helpers/SystemInformation.php index 766d5100eb..3a14e14b0a 100644 --- a/app/Helpers/SystemInformation.php +++ b/app/Helpers/SystemInformation.php @@ -45,6 +45,7 @@ class SystemInformation */ public function avg(): ?array { + // cspell:ignore loadavg if (is_readable('/proc/loadavg')) { $file = file_get_contents('/proc/loadavg'); @@ -160,7 +161,7 @@ public function basic(): array private function getDatabase(): string { if (!\in_array(config('database.default'), self::KNOWN_DATABASES, true)) { - return 'Unkown'; + return 'Unknown'; } return DB::select('select version()')[0]->{'version()'}; diff --git a/app/Helpers/TorrentHelper.php b/app/Helpers/TorrentHelper.php index cb67b7fa0b..a29f0d1200 100644 --- a/app/Helpers/TorrentHelper.php +++ b/app/Helpers/TorrentHelper.php @@ -45,7 +45,6 @@ class TorrentHelper public static function approveHelper(int $id): void { $appurl = config('app.url'); - $appname = config('app.name'); $torrent = Torrent::with('user')->withoutGlobalScope(ApprovedScope::class)->findOrFail($id); $torrent->created_at = Carbon::now(); @@ -55,7 +54,7 @@ public static function approveHelper(int $id): void $torrent->moderated_by = (int) auth()->id(); if (!$torrent->free) { - $autoFreeleechs = AutomaticTorrentFreeleech::query() + $autoFreeleeches = AutomaticTorrentFreeleech::query() ->orderBy('position') ->where(fn ($query) => $query->whereNull('category_id')->orWhere('category_id', '=', $torrent->category_id)) ->where(fn ($query) => $query->whereNull('type_id')->orWhere('type_id', '=', $torrent->type_id)) @@ -63,7 +62,7 @@ public static function approveHelper(int $id): void ->where(fn ($query) => $query->whereNull('size')->orWhere('size', '<', $torrent->size)) ->get(); - foreach ($autoFreeleechs as $autoFreeleech) { + foreach ($autoFreeleeches as $autoFreeleech) { if ($autoFreeleech->name_regex === null || preg_match($autoFreeleech->name_regex, $torrent->name)) { $torrent->free = $autoFreeleech->freeleech_percentage; diff --git a/app/Http/Controllers/API/TorrentController.php b/app/Http/Controllers/API/TorrentController.php index 2618d1a205..d631eac2a5 100644 --- a/app/Http/Controllers/API/TorrentController.php +++ b/app/Http/Controllers/API/TorrentController.php @@ -115,7 +115,7 @@ public function store(Request $request): \Illuminate\Http\JsonResponse return $this->sendError('Validation Error.', 'You Must Provide A Valid Torrent File For Upload!'); } - // Deplace and decode the torrent temporarily + // Move and decode the torrent temporarily $decodedTorrent = TorrentTools::normalizeTorrent($requestFile); $infohash = Bencode::get_infohash($decodedTorrent); diff --git a/app/Http/Controllers/AnnounceController.php b/app/Http/Controllers/AnnounceController.php index 22d050e18f..b029e0e865 100644 --- a/app/Http/Controllers/AnnounceController.php +++ b/app/Http/Controllers/AnnounceController.php @@ -38,6 +38,8 @@ use Exception; use Illuminate\Support\Facades\Redis; +// cspell:ignore completei,downloadedi,incompletei,intervali + final class AnnounceController extends Controller { // Torrent Moderation Codes @@ -118,7 +120,7 @@ public function index(Request $request, string $passkey): ?Response $visible = true; } - // Process Annnounce Job. + // Process Announce Job. $this->processAnnounceJob($queries, $user, $group, $torrent, $visible); if ($visible) { @@ -130,6 +132,7 @@ public function index(Request $request, string $passkey): ?Response } catch (TrackerException $exception) { $response = $this->generateFailedAnnounceResponse($exception); } catch (Exception) { + // spell:disable-next-line $response = 'd14:failure reason21:Internal Server Error8:intervali5400e12:min intervali5400ee'; } @@ -455,7 +458,7 @@ private function checkPeer(Torrent $torrent, AnnounceQueryDTO $queries, User $us } /** - * Check A Peers Min Annnounce Interval. + * Check A Peers Min Announce Interval. * * @throws TrackerException * @throws Exception diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 710c3b6a43..d3a461ba34 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -84,7 +84,7 @@ public function index(Request $request): \Illuminate\Contracts\View\Factory|\Ill ), 'articles' => $articles, 'topics' => Topic::query() - ->with(['user', 'user.group', 'latestPoster', 'reads' => fn ($query) => $query->whereBelongsto($user)]) + ->with(['user', 'user.group', 'latestPoster', 'reads' => fn ($query) => $query->whereBelongsTo($user)]) ->authorized(canReadTopic: true) ->latest() ->take(5) diff --git a/app/Http/Controllers/ReseedController.php b/app/Http/Controllers/ReseedController.php index 09667e40e4..443dd7d3f2 100644 --- a/app/Http/Controllers/ReseedController.php +++ b/app/Http/Controllers/ReseedController.php @@ -59,6 +59,6 @@ public function store(Request $request, int $id): \Illuminate\Http\RedirectRespo } return to_route('torrents.show', ['id' => $torrent->id]) - ->withErrors('This torrent doesnt meet the rules for a reseed request.'); + ->withErrors('This torrent doesn\'t meet the rules for a reseed request.'); } } diff --git a/app/Http/Controllers/Staff/CommandController.php b/app/Http/Controllers/Staff/CommandController.php index 596f958016..2e4dd0e441 100644 --- a/app/Http/Controllers/Staff/CommandController.php +++ b/app/Http/Controllers/Staff/CommandController.php @@ -35,7 +35,7 @@ public function index(): \Illuminate\Contracts\View\Factory|\Illuminate\View\Vie /** * Bring Site Into Maintenance Mode. */ - public function maintanceEnable(): \Illuminate\Contracts\View\Factory|\Illuminate\Http\RedirectResponse + public function maintenanceEnable(): \Illuminate\Contracts\View\Factory|\Illuminate\Http\RedirectResponse { Artisan::call('down'); @@ -46,7 +46,7 @@ public function maintanceEnable(): \Illuminate\Contracts\View\Factory|\Illuminat /** * Bring Site Out Of Maintenance Mode. */ - public function maintanceDisable(): \Illuminate\Contracts\View\Factory|\Illuminate\Http\RedirectResponse + public function maintenanceDisable(): \Illuminate\Contracts\View\Factory|\Illuminate\Http\RedirectResponse { Artisan::call('up'); diff --git a/app/Http/Controllers/Staff/FlushController.php b/app/Http/Controllers/Staff/FlushController.php index 9c3e1b2eb4..961b722b9f 100644 --- a/app/Http/Controllers/Staff/FlushController.php +++ b/app/Http/Controllers/Staff/FlushController.php @@ -39,7 +39,7 @@ public function __construct(private readonly ChatRepository $chatRepository) } /** - * Flsuh All Old Peers From Database. + * Flush All Old Peers From Database. * * @throws Exception */ diff --git a/app/Http/Controllers/Staff/ReportController.php b/app/Http/Controllers/Staff/ReportController.php index 251dfd8b48..69960882b0 100644 --- a/app/Http/Controllers/Staff/ReportController.php +++ b/app/Http/Controllers/Staff/ReportController.php @@ -40,6 +40,7 @@ public function index(): \Illuminate\Contracts\View\Factory|\Illuminate\View\Vie */ public function show(Report $report): \Illuminate\Contracts\View\Factory|\Illuminate\View\View { + // cspell:ignore punct preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', (string) $report->message, $match); return view('Staff.report.show', ['report' => $report, 'urls' => $match[0]]); diff --git a/app/Http/Controllers/TorrentBuffController.php b/app/Http/Controllers/TorrentBuffController.php index f057ff574e..724e70aa5b 100644 --- a/app/Http/Controllers/TorrentBuffController.php +++ b/app/Http/Controllers/TorrentBuffController.php @@ -271,11 +271,11 @@ public function freeleechToken(Request $request, int $id): \Illuminate\Http\Redi } return to_route('torrents.show', ['id' => $torrent->id]) - ->withErrors('You Dont Have Enough Freeleech Tokens Or Already Have One Activated On This Torrent.'); + ->withErrors('You Don\'t Have Enough Freeleech Tokens Or Already Have One Activated On This Torrent.'); } /** - * Set Torrents Refudable Status. + * Set Torrents Refundable Status. */ public function setRefundable(Request $request, int $id): \Illuminate\Http\RedirectResponse { diff --git a/app/Http/Controllers/TorrentController.php b/app/Http/Controllers/TorrentController.php index d6118e4204..58380c448c 100644 --- a/app/Http/Controllers/TorrentController.php +++ b/app/Http/Controllers/TorrentController.php @@ -70,7 +70,7 @@ public function index(): \Illuminate\Contracts\View\Factory|\Illuminate\View\Vie } /** - * Display The Torrent reasource. + * Display The Torrent resource. * * @throws JsonException * @throws \MarcReichel\IGDBLaravel\Exceptions\MissingEndpointException diff --git a/app/Http/Controllers/User/ResurrectionController.php b/app/Http/Controllers/User/ResurrectionController.php index 779e3ef966..634bd722b3 100644 --- a/app/Http/Controllers/User/ResurrectionController.php +++ b/app/Http/Controllers/User/ResurrectionController.php @@ -79,7 +79,7 @@ public function store(Request $request, User $user): \Illuminate\Http\RedirectRe } /** - * Cancel A Ressurection. + * Cancel A Resurrection. */ public function destroy(Request $request, User $user, Resurrection $resurrection): \Illuminate\Http\RedirectResponse { diff --git a/app/Http/Livewire/BbcodeInput.php b/app/Http/Livewire/BbcodeInput.php index 998cd4e520..2340f840f0 100644 --- a/app/Http/Livewire/BbcodeInput.php +++ b/app/Http/Livewire/BbcodeInput.php @@ -10,7 +10,7 @@ * * @project UNIT3D Community Edition * - * @author Raordom + * @author Roardom * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ diff --git a/app/Http/Livewire/ForumCategoryTopicSearch.php b/app/Http/Livewire/ForumCategoryTopicSearch.php index 6073b2d9c2..4dc68eee6a 100644 --- a/app/Http/Livewire/ForumCategoryTopicSearch.php +++ b/app/Http/Livewire/ForumCategoryTopicSearch.php @@ -74,7 +74,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator 'user.group', 'latestPoster', 'forum', - 'reads' => fn ($query) => $query->whereBelongsto(auth()->user()), + 'reads' => fn ($query) => $query->whereBelongsTo(auth()->user()), ]) ->whereRelation('forum', 'forum_category_id', '=', $this->category->id) ->authorized(canReadTopic: true) @@ -97,7 +97,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator ->whereHas( 'reads', fn ($query) => $query - ->whereBelongsto(auth()->user()) + ->whereBelongsTo(auth()->user()) ->whereColumn('last_post_id', '>', 'last_read_post_id') ) ) @@ -107,7 +107,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator ->whereHas( 'reads', fn ($query) => $query - ->whereBelongsto(auth()->user()) + ->whereBelongsTo(auth()->user()) ->whereColumn('last_post_id', '=', 'last_read_post_id') ) ) diff --git a/app/Http/Livewire/ForumTopicSearch.php b/app/Http/Livewire/ForumTopicSearch.php index 72435b1e22..27f78db25a 100644 --- a/app/Http/Livewire/ForumTopicSearch.php +++ b/app/Http/Livewire/ForumTopicSearch.php @@ -79,7 +79,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator 'user.group', 'latestPoster', 'forum:id,name', - 'reads' => fn ($query) => $query->whereBelongsto(auth()->user()), + 'reads' => fn ($query) => $query->whereBelongsTo(auth()->user()), ]) ->where('topics.forum_id', '=', $this->forum->id) ->authorized(canReadTopic: true) @@ -102,7 +102,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator ->whereHas( 'reads', fn ($query) => $query - ->whereBelongsto(auth()->user()) + ->whereBelongsTo(auth()->user()) ->whereColumn('last_post_id', '>', 'last_read_post_id') ) ) @@ -112,7 +112,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator ->whereHas( 'reads', fn ($query) => $query - ->whereBelongsto(auth()->user()) + ->whereBelongsTo(auth()->user()) ->whereColumn('last_post_id', '=', 'last_read_post_id') ) ) diff --git a/app/Http/Livewire/LaravelLogViewer.php b/app/Http/Livewire/LaravelLogViewer.php index 05c5cc326a..cd8dab03c6 100644 --- a/app/Http/Livewire/LaravelLogViewer.php +++ b/app/Http/Livewire/LaravelLogViewer.php @@ -92,7 +92,7 @@ final public function entries(): LengthAwarePaginator for ($i = 0; $i < $numEntries; $i++) { // The context is the portion before the first stack trace $context = preg_split('/^\[stacktrace\]|Stack trace\:/ms', (string) $stacktraces[$i])[0]; - // The `context` consists of a message, an exception, a filename, and a linecount + // The `context` consists of a message, an exception, a filename, and a line count preg_match($contextPattern, $context, $contextMatches); $entries->push([ diff --git a/app/Http/Livewire/PersonCredit.php b/app/Http/Livewire/PersonCredit.php index b155908718..4d5cec06fc 100644 --- a/app/Http/Livewire/PersonCredit.php +++ b/app/Http/Livewire/PersonCredit.php @@ -295,7 +295,7 @@ private function groupByTypeAndSort($torrents): \Illuminate\Support\Collection ->values() ->groupBy(fn ($torrent) => $torrent->type->name) ->map( - fn ($torrentsBytype) => $torrentsBytype + fn ($torrentsByType) => $torrentsByType ->sortBy([ ['resolution.position', 'asc'], ['internal', 'desc'], diff --git a/app/Http/Livewire/SimilarTorrent.php b/app/Http/Livewire/SimilarTorrent.php index 90a79a0e25..6d20aff7a4 100644 --- a/app/Http/Livewire/SimilarTorrent.php +++ b/app/Http/Livewire/SimilarTorrent.php @@ -365,7 +365,7 @@ private function groupByTypeAndSort(\Illuminate\Support\Collection $torrents): \ ->values() ->groupBy(fn ($torrent) => $torrent->type->name) ->map( - fn ($torrentsBytype) => $torrentsBytype + fn ($torrentsByType) => $torrentsByType ->sortBy([ ['resolution.position', 'asc'], ['name', 'asc'], diff --git a/app/Http/Livewire/SubscribedTopic.php b/app/Http/Livewire/SubscribedTopic.php index 4f11037ef0..8f0e27f1d5 100644 --- a/app/Http/Livewire/SubscribedTopic.php +++ b/app/Http/Livewire/SubscribedTopic.php @@ -37,7 +37,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator 'user.group', 'latestPoster', 'forum', - 'reads' => fn ($query) => $query->whereBelongsto(auth()->user()), + 'reads' => fn ($query) => $query->whereBelongsTo(auth()->user()), ]) ->whereRelation('subscribedUsers', 'users.id', '=', auth()->id()) ->authorized(canReadTopic: true) diff --git a/app/Http/Livewire/TopicSearch.php b/app/Http/Livewire/TopicSearch.php index 7cc0d941dc..e71475f68b 100644 --- a/app/Http/Livewire/TopicSearch.php +++ b/app/Http/Livewire/TopicSearch.php @@ -85,7 +85,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator 'user.group', 'latestPoster', 'forum', - 'reads' => fn ($query) => $query->whereBelongsto(auth()->user()), + 'reads' => fn ($query) => $query->whereBelongsTo(auth()->user()), ]) ->authorized(canReadTopic: true) ->when($this->search !== '', fn ($query) => $query->where('name', 'LIKE', '%'.$this->search.'%')) @@ -107,7 +107,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator ->whereHas( 'reads', fn ($query) => $query - ->whereBelongsto(auth()->user()) + ->whereBelongsTo(auth()->user()) ->whereColumn('last_post_id', '>', 'last_read_post_id') ) ) @@ -117,7 +117,7 @@ final public function topics(): \Illuminate\Pagination\LengthAwarePaginator ->whereHas( 'reads', fn ($query) => $query - ->whereBelongsto(auth()->user()) + ->whereBelongsTo(auth()->user()) ->whereColumn('last_post_id', '=', 'last_read_post_id') ) ) diff --git a/app/Http/Livewire/TorrentSearch.php b/app/Http/Livewire/TorrentSearch.php index c36c682f91..11414b1bc8 100644 --- a/app/Http/Livewire/TorrentSearch.php +++ b/app/Http/Livewire/TorrentSearch.php @@ -755,7 +755,7 @@ private function groupByTypeAndSort($torrents): \Illuminate\Support\Collection ->values() ->groupBy(fn ($torrent) => $torrent->type->name) ->map( - fn ($torrentsBytype) => $torrentsBytype + fn ($torrentsByType) => $torrentsByType ->sortBy([ ['resolution.position', 'asc'], ['name', 'asc'], diff --git a/app/Http/Requests/StoreTorrentRequest.php b/app/Http/Requests/StoreTorrentRequest.php index 587645805c..9310e5a64a 100644 --- a/app/Http/Requests/StoreTorrentRequest.php +++ b/app/Http/Requests/StoreTorrentRequest.php @@ -248,7 +248,7 @@ function (string $attribute, mixed $value, Closure $fail): void { public function messages(): array { return [ - 'igdb.in' => 'The IGBB ID must be 0 if the media doesn\'t exist on IGDB or you\'re not uploading a game.', + 'igdb.in' => 'The IGDB ID must be 0 if the media doesn\'t exist on IGDB or you\'re not uploading a game.', 'tmdb.in' => 'The TMDB ID must be 0 if the media doesn\'t exist on TMDB or you\'re not uploading a tv show or movie.', 'imdb.in' => 'The IMDB ID must be 0 if the media doesn\'t exist on IMDB or you\'re not uploading a tv show or movie.', 'tvdb.in' => 'The TVDB ID must be 0 if the media doesn\'t exist on TVDB or you\'re not uploading a tv show.', diff --git a/app/Http/Requests/StoreTorrentRequestRequest.php b/app/Http/Requests/StoreTorrentRequestRequest.php index 280e7db4bd..6938e55877 100644 --- a/app/Http/Requests/StoreTorrentRequestRequest.php +++ b/app/Http/Requests/StoreTorrentRequestRequest.php @@ -132,7 +132,7 @@ public function rules(Request $request): array public function messages(): array { return [ - 'igdb.in' => 'The IGBB ID must be 0 if the media doesn\'t exist on IGDB or you\'re not requesting a game.', + 'igdb.in' => 'The IGDB ID must be 0 if the media doesn\'t exist on IGDB or you\'re not requesting a game.', 'tmdb.in' => 'The TMDB ID must be 0 if the media doesn\'t exist on TMDB or you\'re not requesting a tv show or movie.', 'imdb.in' => 'The IMDB ID must be 0 if the media doesn\'t exist on IMDB or you\'re not requesting a tv show or movie.', 'tvdb.in' => 'The TVDB ID must be 0 if the media doesn\'t exist on TVDB or you\'re not requesting a tv show.', diff --git a/app/Listeners/RegisteredListener.php b/app/Listeners/RegisteredListener.php index 27c399e35b..a05b331d3a 100644 --- a/app/Listeners/RegisteredListener.php +++ b/app/Listeners/RegisteredListener.php @@ -38,7 +38,7 @@ private function getWelcomeMessage(User $user): string \sprintf('[url=%s]%s[/url], Welcome to ', $profileUrl, $user->username).config('other.title').'! Hope you enjoy the community.', \sprintf("[url=%s]%s[/url], We've been expecting you.", $profileUrl, $user->username), \sprintf("[url=%s]%s[/url] has arrived. Party's over.", $profileUrl, $user->username), - \sprintf("It's a bird! It's a plane! Nevermind, it's just [url=%s]%s[/url].", $profileUrl, $user->username), + \sprintf("It's a bird! It's a plane! Never mind, it's just [url=%s]%s[/url].", $profileUrl, $user->username), \sprintf('Ready player [url=%s]%s[/url].', $profileUrl, $user->username), \sprintf('A wild [url=%s]%s[/url] appeared.', $profileUrl, $user->username), 'Welcome to '.config('other.title').\sprintf(' [url=%s]%s[/url]. We were expecting you.', $profileUrl, $user->username), diff --git a/app/Models/Comment.php b/app/Models/Comment.php index b4ac4b419e..5dd9e3e178 100644 --- a/app/Models/Comment.php +++ b/app/Models/Comment.php @@ -121,7 +121,7 @@ public function getContentHtml(): string } /** - * Nootify Staff There Is Stale Tickets. + * Notify Staff There Is Stale Tickets. */ public static function checkForStale(Ticket $ticket): void { diff --git a/app/Models/DonationPackage.php b/app/Models/DonationPackage.php index 39662de054..6ac9ed7b35 100644 --- a/app/Models/DonationPackage.php +++ b/app/Models/DonationPackage.php @@ -38,7 +38,7 @@ */ class DonationPackage extends Model { - /** @use HasFactory<\Database\Factories\DonationPackagefactory> */ + /** @use HasFactory<\Database\Factories\DonationPackageFactory> */ use HasFactory; use SoftDeletes; diff --git a/app/Models/Torrent.php b/app/Models/Torrent.php index 6ae01987e7..1b6f733688 100644 --- a/app/Models/Torrent.php +++ b/app/Models/Torrent.php @@ -808,9 +808,9 @@ public function notifyUploader(string $type, Thank|Comment $payload): bool */ public function isFreeleech(?User $user = null): bool { - $pfree = $user && ($user->group->is_freeleech || cache()->get('personal_freeleech:'.$user->id)); + $isFreeleech = $user && ($user->group->is_freeleech || cache()->get('personal_freeleech:'.$user->id)); - return $this->free || config('other.freeleech') || $pfree; + return $this->free || config('other.freeleech') || $isFreeleech; } /** diff --git a/app/Notifications/NewUnfollow.php b/app/Notifications/NewUnfollow.php index 95a7963d1f..270fa79e1b 100644 --- a/app/Notifications/NewUnfollow.php +++ b/app/Notifications/NewUnfollow.php @@ -26,7 +26,7 @@ class NewUnfollow extends Notification implements ShouldQueue use Queueable; /** - * NewUnfolllow Constructor. + * NewUnfollow Constructor. */ public function __construct(public string $type, public User $unfollower) { diff --git a/app/Notifications/UserBan.php b/app/Notifications/UserBan.php index 36d38a7ad7..a8e1fd33b6 100644 --- a/app/Notifications/UserBan.php +++ b/app/Notifications/UserBan.php @@ -47,12 +47,12 @@ public function via(object $notifiable): array */ public function toMail(object $notifiable): MailMessage { - $chatdUrl = config('unit3d.chat-link-url'); + $chatUrl = config('unit3d.chat-link-url'); return (new MailMessage()) ->greeting('You have been banned 😭') ->line('You have been banned from '.config('other.title').' for '.$this->ban->ban_reason) - ->action('Need Support?', $chatdUrl) + ->action('Need Support?', $chatUrl) ->line('Thank you for using 🚀'.config('other.title')); } } diff --git a/app/Notifications/UserMaxWarningsReached.php b/app/Notifications/UserMaxWarningsReached.php index 06aafda266..a7389b5e81 100644 --- a/app/Notifications/UserMaxWarningsReached.php +++ b/app/Notifications/UserMaxWarningsReached.php @@ -51,7 +51,7 @@ public function toMail(object $notifiable): MailMessage return (new MailMessage()) ->greeting('Max Hit and Run Warnings Reached!') - ->line('You have hit the limit on active Hit and Run Warnings! Your download privilliges have been revoked!') + ->line('You have hit the limit on active Hit and Run Warnings! Your download privileges have been revoked!') ->action('View Unsatisfied Torrents to seed off your warnings or wait until they expire!', $profileUrl) ->line('Thank you for using 🚀'.config('other.title')); } @@ -65,7 +65,7 @@ public function toArray(object $notifiable): array { return [ 'title' => 'Max Hit and Run Warnings Reached!', - 'body' => 'You have hit the limit on active Hit and Run Warnings! Your download privilliges have been revoked!', + 'body' => 'You have hit the limit on active Hit and Run Warnings! Your download privileges have been revoked!', 'url' => \sprintf('/users/%s', $this->user->username), ]; } diff --git a/app/Repositories/ChatRepository.php b/app/Repositories/ChatRepository.php index 4bcc49bb6c..f31e5242cc 100644 --- a/app/Repositories/ChatRepository.php +++ b/app/Repositories/ChatRepository.php @@ -351,9 +351,9 @@ protected function censorMessage(string $message): string } } - foreach (config('censor.replace') as $word => $rword) { + foreach (config('censor.replace') as $word => $replacementWord) { if (Str::contains($message, $word)) { - $message = str_replace($word, $rword, (string) $message); + $message = str_replace($word, $replacementWord, (string) $message); } } diff --git a/app/Services/Tmdb/Client/Movie.php b/app/Services/Tmdb/Client/Movie.php index 8efadc5a25..8c29f848ac 100644 --- a/app/Services/Tmdb/Client/Movie.php +++ b/app/Services/Tmdb/Client/Movie.php @@ -283,7 +283,7 @@ public function getMovie(): ?array $titleSort = null; if ($this->data['release_date'] !== null) { - $re = '/((?.*)(?\:|and)(?.*)|(?.*))/m'; + $re = '/((?.*)(?\:|and)(?.*)|(?.*))/m'; preg_match($re, $this->data['title'], $matches); $year = (new DateTime($this->data['release_date']))->format('Y'); @@ -291,7 +291,7 @@ public function getMovie(): ?array $titleSort = addslashes(str_replace( ['The ', 'An ', 'A ', '"'], [''], - Str::limit($matches['namesort'] ?? $this->data['title'].' '.$year, 100) + Str::limit($matches['nameSort'] ?? $this->data['title'].' '.$year, 100) )); } diff --git a/config/audit.php b/config/audit.php index d7e0cbb510..324867641f 100644 --- a/config/audit.php +++ b/config/audit.php @@ -47,7 +47,7 @@ /* |-------------------------------------------------------------------------- - | Recyle Old Audit Records + | Recycle Old Audit Records |-------------------------------------------------------------------------- | | In Days! diff --git a/config/backup.php b/config/backup.php index 18462423f9..94b1491a67 100644 --- a/config/backup.php +++ b/config/backup.php @@ -104,7 +104,7 @@ ], /* - * The database dump can be compressed to decrease diskspace usage. + * The database dump can be compressed to decrease disk space usage. * * Out of the box Laravel-backup supplies * Spatie\DbDumper\Compressors\GzipCompressor::class. diff --git a/config/email-blacklist.php b/config/email-blacklist.php index ada2711036..b4411f529b 100644 --- a/config/email-blacklist.php +++ b/config/email-blacklist.php @@ -16,7 +16,7 @@ return [ /* |-------------------------------------------------------------------------- - | Email Domain Blackist Validation + | Email Domain Blacklist Validation |-------------------------------------------------------------------------- | | The email domain blacklist validation rule uses a remote or local source diff --git a/config/graveyard.php b/config/graveyard.php index 353b7d3073..d08d9ac741 100644 --- a/config/graveyard.php +++ b/config/graveyard.php @@ -30,7 +30,7 @@ | Seedtime |-------------------------------------------------------------------------- | - | Time In Seconds Needed For Successful Ressurection (Default: 2592000seconds / 30days) + | Time In Seconds Needed For Successful Resurrection (Default: 2592000seconds / 30days) | */ diff --git a/config/hitrun.php b/config/hitrun.php index 2517fa8254..b18662286f 100644 --- a/config/hitrun.php +++ b/config/hitrun.php @@ -41,7 +41,7 @@ | Max Warnings |-------------------------------------------------------------------------- | - | Max Warnings Before Download Privliges Disabled + | Max Warnings Before Download Privileges Disabled | */ diff --git a/config/livewire.php b/config/livewire.php index db5407ae26..ad0f2be411 100644 --- a/config/livewire.php +++ b/config/livewire.php @@ -2,6 +2,8 @@ declare(strict_types=1); +// cspell:ignore mpga + return [ /* |--------------------------------------------------------------------------- diff --git a/config/other.php b/config/other.php index 76f1fc487a..47abab994c 100644 --- a/config/other.php +++ b/config/other.php @@ -70,7 +70,7 @@ /* |-------------------------------------------------------------------------- - | Freelech State + | Freeleech State |-------------------------------------------------------------------------- | | Global Freeleech diff --git a/cspell.json b/cspell.json new file mode 100644 index 0000000000..4b5cb042cb --- /dev/null +++ b/cspell.json @@ -0,0 +1,282 @@ +{ + "version": "0.2", + "language": "en", + "words": [ + "amoled", + "apikey", + "bbcode", + "chatbox", + "cinematographed", + "commentable", + "commenters", + "comparate", + "comparates", + "dcma", + "downloaders", + "fa-crosshairs", + "fa-wpforms", + "fbclid", + "followees", + "freeleech", + "freeleeches", + "gitupdate", + "hsts", + "leechtime", + "nord", + "participations", + "prewarn", + "prewarning", + "reindex", + "remux", + "rsses", + "rsskey", + "rsskeys", + "runbot", + "seedbonus", + "seedsize", + "shoutbox", + "stickied", + "stylesheet", + "subforum", + "sublicensable", + "supervisorctl", + "textareas", + "totp", + "trumpable", + "unactivated", + "unban", + "unbans", + "unbookmark", + "unbookmarked", + "unclaims", + "uncompromised", + "unconnectable", + "unfollow", + "unfollowed", + "unfollower", + "unfollows", + "unmark", + "unmoderated", + "unparticipated", + "unsatisfieds", + "unsnooze", + "unsticky", + "unvalidated", + "uploaders", + "upsert", + "upserting", + "upserts", + "webfonts", + "winzip", + "woot", + ], + "ignoreWords": [ + "abcdef0123456789", + "aboutus", + "activefl", + "apimatch", + "appurl", + "auth.appl-closed", + "auth.appl-intro", + "auth.appl-reason", + "autocat", + "autodis", + "autogroup", + "autoigdb", + "autoimdb", + "autokeywords", + "automal", + "autoreg", + "autores", + "autotmdb", + "autotvdb", + "banneduser", + "chatbody", + "chatrooms", + "chatstatus", + "chatstatuses", + "clientblacklist", + "doubleup", + "doubleupload", + "extremeuser", + "healthcheck", + "helpdesk", + "hiddencaptcha", + "highresolution", + "highspeed", + "hitandruns", + "hitrun", + "howto", + "insaneuser", + "javascripts", + "latestversion", + "linethrough", + "masspm", + "mediahub", + "modq", + "namedquote", + "nerdbot", + "nerdstat", + "nontouch", + "noteduser", + "openreg", + "orderedlistalpha", + "orderedlistnumerical", + "invites_restriced", + "personalrelease", + "poweruser", + "quicksearch", + "revokefeature", + "request.dont-have-bps", + "shoutout", + "shoutouts", + "signups", + "sitename", + "softdelete", + "sparkels", + "staffban", + "staffdeletedwarning", + "staffuser", + "staffwarning", + "statsgroupmenu", + "statsrequestmenu", + "statstorrentmenu", + "statsusermenu", + "stat.request-pending-aproval", + "systembot", + "testcode", + "testuser", + "torrenttitle", + "torrent.revokefeatured", + "unorderedlist", + "userban", + "userlist", + "userwarning", + "warneduser", + "watchlist", + "welcomepm", + ], + "ignoreRegExpList": [ + "bitcoin-address", + ], + "patterns": [ + { + "name": "bitcoin-address", + "pattern": "/[a-z0-9]{42}/", + } + ], + "ignorePaths": [ + "app/Console/Commands/DemoSeed.php", + "app/Helpers/Markdown.php", + "app/Helpers/MarkdownExtra.php", + "app/Helpers/MediaInfo.php", + "config/censor.php", + "config/language.php", + "config/secure-headers.php", + "database/migrations/20{1,2{0,1,2,3,4}}*", + "database/schema/mysql-schema.sql", + "database/seeders/DistributorsTableSeeder.php", + "database/seeders/MediaLanguagesSeeder.php", + "lang/", + "public/vendor/livewire/livewire.js", + "resources/js/unit3d/helper.js", + "resources/js/unit3d/parser.js", + "resources/js/vendor", + "resources/sass/vendor", + "resources/views/vendor/mail", + "tests/Unit/Helpers/MarkdownExtraTest.php", + "composer.json", + "package.json", + "phpstan.neon", + "pint.json", + "*.svg", + ], + "dictionaries": [ + "bittorrent", + "blade", + "brands", + "dependencies", + "dependency_terms", + "html", + "irc", + "laravel", + "mysql", + "people", + "php", + "php_constants", + "php_functions", + "redis", + ], + "dictionaryDefinitions": [ + { + "name": "bittorrent", + "path": "./.cspell/bittorrent.txt", + "addWords": false + }, + { + "name": "blade", + "path": "./.cspell/blade.txt", + "addWords": false + }, + { + "name": "brands", + "path": "./.cspell/brands.txt", + "addWords": false + }, + { + "name": "dependencies", + "path": "./.cspell/dependencies.txt", + "addWords": false + }, + { + "name": "dependency_terms", + "path": "./.cspell/dependency_terms.txt", + "addWords": false + }, + { + "name": "html", + "path": "./.cspell/html.txt", + "addWords": false + }, + { + "name": "irc", + "path": "./.cspell/irc.txt", + "addWords": false + }, + { + "name": "laravel", + "path": "./.cspell/laravel.txt", + "addWords": false + }, + { + "name": "mysql", + "path": "./.cspell/mysql.txt", + "addWords": false + }, + { + "name": "people", + "path": "./.cspell/people.txt", + "addWords": false + }, + { + "name": "php", + "path": "./.cspell/php.txt", + "addWords": false + }, + { + "name": "php_functions", + "path": "./.cspell/php_functions.txt", + "addWords": false + }, + { + "name": "php_constants", + "path": "./.cspell/php_constants.txt", + "addWords": false + }, + { + "name": "redis", + "path": "./.cspell/redis.txt", + "addWords": false + }, + ], +} diff --git a/database/seeders/PagesTableSeeder.php b/database/seeders/PagesTableSeeder.php index 242262369a..4b8f0e3b08 100644 --- a/database/seeders/PagesTableSeeder.php +++ b/database/seeders/PagesTableSeeder.php @@ -20,6 +20,8 @@ use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; +// cspell:ignore orwill + class PagesTableSeeder extends Seeder { public function run(): void diff --git a/docker-compose.yml b/docker-compose.yml index 6e9ea122e5..7b09e3ef23 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,4 @@ +# cspell:ignore initdb,meili,mysqladmin,mysqld,wwwgroup,wwwuser services: nginx: image: 'nginx:latest' diff --git a/docs/README.md b/docs/README.md index eade431942..3499aa2f30 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,3 @@ # Wiki -This wiki serves as the central resource for setting up, managing, and optimising your UNIT3D installation. Whether you're working on local development, managing a production server, or contributing to the open-source community, you'll find a number of useful guides here. \ No newline at end of file +This wiki serves as the central resource for setting up, managing, and optimizing your UNIT3D installation. Whether you're working on local development, managing a production server, or contributing to the open-source community, you'll find a number of useful guides here. \ No newline at end of file diff --git a/docs/basic_tuning.md b/docs/basic_tuning.md index 94091f99d0..4bf3407684 100644 --- a/docs/basic_tuning.md +++ b/docs/basic_tuning.md @@ -1,5 +1,7 @@ # Basic Tuning + + > [!IMPORTANT] > These guides are intended for UNIT3D v8.0.0 + instances. While these are better than defaults be careful blindly following them. Proper tuning requires understanding your server, running tests and monitoring the results. @@ -13,7 +15,7 @@ If your Redis service is running on your web server, it is highly recommended that you use **Unix sockets** instead of **TCP ports** to communicate with your web server. -Based on the Redis official benchmark, you can **improve performance by upto 50%** using unix sockets (versus TCP ports) on Redis. +Based on the Redis official benchmark, you can **improve performance by up to 50%** using unix sockets (versus TCP ports) on Redis. Of course, unix sockets can only be used if both your Laravel application and Redis are running on the same server. @@ -96,7 +98,7 @@ sudo systemctl restart redis If your MySQL database is running on your web server, it is highly recommended that you use **Unix sockets** instead of **TCP ports** to communicate with your web server. -Based on Percona's benchmark, you can **improve performance by upto 50%** using unix sockets (versus TCP portson MySQL. +Based on Percona's benchmark, you can **improve performance by up to 50%** using unix sockets (versus TCP ports on MySQL). Of course, unix sockets can only be used if both your UNIT3D application and database are running on the same server which is by default. diff --git a/docs/local_development_arch_linux.md b/docs/local_development_arch_linux.md index 9d5b180d7a..837986d600 100644 --- a/docs/local_development_arch_linux.md +++ b/docs/local_development_arch_linux.md @@ -1,5 +1,7 @@ # UNIT3D v8.x.x on Arch Linux with Laravel Sail + + _A guide by EkoNesLeg_ This guide outlines the steps to set up UNIT3D using Laravel Sail on Arch Linux. While the guide highlights the use of Arch Linux, the instructions can be adapted to other environments. diff --git a/docs/server_management.md b/docs/server_management.md index c548a9d250..352cf5fa67 100644 --- a/docs/server_management.md +++ b/docs/server_management.md @@ -1,5 +1,7 @@ # Server Management + + > [!IMPORTANT] > The following assumptions are made: > @@ -61,7 +63,7 @@ bun run build Use `certbot` to refresh the TLS certificate: ```sh - certbot --redirect --nginx -n --agree-tos --email=sysop@yourdomain.tld -d yourdomain.tld -d www.yourdomain.tld --rsa-key-size 2048 + certbot --redirect --nginx -n --agree-tos --email=sysop@your_domain.tld -d your_domain.tld -d www.your_domain.tld --rsa-key-size 2048 ``` 3. **Update the WebSocket Configuration:** diff --git a/docs/sharing_source_code.md b/docs/sharing_source_code.md index c913d4b1de..2098452a84 100644 --- a/docs/sharing_source_code.md +++ b/docs/sharing_source_code.md @@ -30,6 +30,7 @@ To create a tarball that includes only the modified source code and excludes sen Add the following to the file: + ```plaintext .env node_modules @@ -79,6 +80,7 @@ To create a tarball that includes only the modified source code and excludes sen lib/js/tests.html lib/js/tests/npm-debug.log ``` + ### 2.2 Create the Tarball diff --git a/docs/torrent_api.md b/docs/torrent_api.md index da2fe3468e..d966e8cdd5 100644 --- a/docs/torrent_api.md +++ b/docs/torrent_api.md @@ -20,7 +20,7 @@ There are several ways of passing the API token to UNIT3D. We'll discuss each of UNIT3D's API consumers may specify their token as an `api_token` query string value: ```php - $response = $client->request('GET', '/api/torrents?api_token=YOURTOKENHERE); + $response = $client->request('GET', '/api/torrents?api_token=YOUR_TOKEN_HERE); ``` - **Request Payload** @@ -33,7 +33,7 @@ There are several ways of passing the API token to UNIT3D. We'll discuss each of 'Accept' => 'application/json', ], 'form_params' => [ - 'api_token' => YOURTOKENHERE, + 'api_token' => 'YOUR_TOKEN_HERE', ], ]); ``` @@ -45,7 +45,7 @@ There are several ways of passing the API token to UNIT3D. We'll discuss each of ```php $response = $client->request('POST', '/api/torrents', [ 'headers' => [ - 'Authorization' => 'Bearer YOURTOKENHERE, + 'Authorization' => 'Bearer YOUR_TOKEN_HERE', 'Accept' => 'application/json', ], ]); @@ -78,9 +78,9 @@ Parameters: | `imdb` | int | IMDB ID | `tvdb` | int | TVDB ID | `mal` | int | MAL ID -| `igdb` | int | IGBD ID (Games only) +| `igdb` | int | IGDB ID (Games only) | `anonymous` | bool | Should the uploader's username be hidden? -| `stream` | bool | Is the torrent's content stream-optimised? +| `stream` | bool | Is the torrent's content stream-optimized? | `sd` | bool | Is the torrent's content standard definition? | `personal_release` | bool | Is the torrent's content created by the uploader? | `internal`* | bool | Is the torrent an internal release? @@ -147,7 +147,7 @@ Optional Parameters: | `doubleup` | bool | Filter by if the torrent offers double upload | `featured` | bool | Filter by if the torrent is featured on the front page | `refundable` | bool | Filter by if the torrent is refundable -| `stream` | bool | Filter by if the torrent's content is stream-optimised +| `stream` | bool | Filter by if the torrent's content is stream-optimized | `sd` | bool | Filter by if the torrent's content is standard definition | `highspeed` | bool | Filter by if the torrent has seeders whose IP address has been registered as a seedbox | `internal` | bool | Filter by if the torrent is an internal release diff --git a/docs/upgrading_php_version.md b/docs/upgrading_php_version.md index fce2b0d675..9e7352f597 100644 --- a/docs/upgrading_php_version.md +++ b/docs/upgrading_php_version.md @@ -1,5 +1,7 @@ # Upgrading PHP Version + + ## Upgrade to PHP 8 `sudo apt update` @@ -28,7 +30,7 @@ Next lets edit NGINX to use new PHP8 Find `fastcgi_pass unix:/var/run/php/***.sock;` -`***` will be your sitename, unit3d or php7.4 for the most part +`***` will be your site name, unit3d or php7.4 for the most part Replace `fastcgi_pass unix:/var/run/php/***.sock;` with `fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;`. @@ -36,7 +38,7 @@ Save and exit. Test config `sudo nginx -t` -*If you didnt mess up you will see +*If you didn't mess up you will see ``` nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful @@ -78,7 +80,7 @@ Next lets edit NGINX to use new PHP 8.1 Find `fastcgi_pass unix:/var/run/php/***.sock;` -`***` will be your sitename, unit3d or php8.0 for the most part +`***` will be your site name, unit3d or php8.0 for the most part Replace `fastcgi_pass unix:/var/run/php/***.sock;` with `fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;`. @@ -86,7 +88,7 @@ Save and exit. Test config `sudo nginx -t` -*If you didnt mess up you will see +*If you didn't mess up you will see ``` nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful @@ -129,7 +131,7 @@ Next lets edit NGINX to use new PHP 8.2 Find `fastcgi_pass unix:/var/run/php/***.sock;` -`***` will be your sitename, unit3d or php8.1 for the most part +`***` will be your site name, unit3d or php8.1 for the most part Replace `fastcgi_pass unix:/var/run/php/***.sock;` with `fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;`. @@ -137,7 +139,7 @@ Save and exit. Test config `sudo nginx -t` -*If you didnt mess up you will see +*If you didn't mess up you will see ``` nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful @@ -176,7 +178,7 @@ Next lets edit NGINX to use new PHP 8.3 Find `fastcgi_pass unix:/var/run/php/***.sock;` -`***` will be your sitename, unit3d or php8.2 for the most part +`***` will be your site name, unit3d or php8.2 for the most part Replace `fastcgi_pass unix:/var/run/php/***.sock;` with `fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;`. @@ -184,7 +186,7 @@ Save and exit. Test config `sudo nginx -t` -*If you didnt mess up you will see +*If you didn't mess up you will see ``` nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful diff --git a/public/img/meta/bluray.svg b/public/img/meta/blu-ray.svg similarity index 100% rename from public/img/meta/bluray.svg rename to public/img/meta/blu-ray.svg diff --git a/resources/sass/components/_swal.scss b/resources/sass/components/_swal.scss index 7fdf967800..b2c19273e5 100644 --- a/resources/sass/components/_swal.scss +++ b/resources/sass/components/_swal.scss @@ -1,5 +1,5 @@ /* purgecss start ignore /* -/* Position top-end postioned swal2 notifications below the top nav */ +/* Position top-end positioned swal2 notifications below the top nav */ .swal2-top-end { margin-top: 40px; } diff --git a/resources/sass/components/_tooltips.scss b/resources/sass/components/_tooltips.scss index 4b9368ec0a..46bec2668b 100644 --- a/resources/sass/components/_tooltips.scss +++ b/resources/sass/components/_tooltips.scss @@ -106,4 +106,4 @@ opacity: 1; transition: opacity 0.15s; } -/* purgecss endss ignore */ +/* purgecss end ignore */ diff --git a/resources/views/Staff/command/index.blade.php b/resources/views/Staff/command/index.blade.php index 2ca7f74692..3bd9ad4bca 100644 --- a/resources/views/Staff/command/index.blade.php +++ b/resources/views/Staff/command/index.blade.php @@ -34,7 +34,7 @@
@csrf - +
{{ $entry['stacktrace'] }}
diff --git a/resources/views/livewire/two-factor-auth-form.blade.php b/resources/views/livewire/two-factor-auth-form.blade.php index 00e06dcbc3..48a258792d 100644 --- a/resources/views/livewire/two-factor-auth-form.blade.php +++ b/resources/views/livewire/two-factor-auth-form.blade.php @@ -21,7 +21,7 @@
- {{ __('When two factor authentication is enabled, you will be prompted for a secure, random token during authentication. You may retrieve this token from a syncronized 2fa app such as Google Authenticator, Authy, BitWarden, etc.') }} + {{ __('When two factor authentication is enabled, you will be prompted for a secure, random token during authentication. You may retrieve this token from a synchronized 2fa app such as Google Authenticator, Authy, BitWarden, etc.') }}
diff --git a/resources/views/mediahub/genre/index.blade.php b/resources/views/mediahub/genre/index.blade.php index 84e8e8e88a..7d7967c317 100644 --- a/resources/views/mediahub/genre/index.blade.php +++ b/resources/views/mediahub/genre/index.blade.php @@ -27,7 +27,7 @@ @foreach ($genres as $genre)
  • {{ $genre->name }}

    diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top_nav.blade.php index 6c122907a4..b324a5d87a 100755 --- a/resources/views/partials/top_nav.blade.php +++ b/resources/views/partials/top_nav.blade.php @@ -119,7 +119,7 @@ $tickets = DB::table('tickets') ->whereNull('closed_at') ->whereNull('staff_id') - ->orwhere(function ($query) { + ->orWhere(function ($query) { $query ->where('staff_id', '=', auth()->id()) ->Where('staff_read', '=', false); diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie_meta.blade.php index a49177280c..60ce6105c0 100755 --- a/resources/views/torrent/partials/movie_meta.blade.php +++ b/resources/views/torrent/partials/movie_meta.blade.php @@ -156,6 +156,7 @@ class="meta-id-tag"
  • imdb_id ?? 0) > 0) -
  • +
  • - +
  • @endif diff --git a/resources/views/torrent/partials/tv_meta.blade.php b/resources/views/torrent/partials/tv_meta.blade.php index 2afca68074..c28d8708ce 100755 --- a/resources/views/torrent/partials/tv_meta.blade.php +++ b/resources/views/torrent/partials/tv_meta.blade.php @@ -155,6 +155,7 @@ class="meta-id-tag"
  • imdb_id ?? 0) > 0) -
  • +
  • - +
  • @endif diff --git a/resources/views/torrent/show.blade.php b/resources/views/torrent/show.blade.php index 5af44b4b2d..a0ba86b6f1 100644 --- a/resources/views/torrent/show.blade.php +++ b/resources/views/torrent/show.blade.php @@ -82,6 +82,6 @@ {{-- Extra Meta Block --}} @include('torrent.partials.extra_meta') - {{-- Commments Block --}} + {{-- Comments Block --}} @include('torrent.partials.comments') @endsection diff --git a/resources/views/vendor/notifications/email.blade.php b/resources/views/vendor/notifications/email.blade.php index a39d979f27..92b12b3197 100644 --- a/resources/views/vendor/notifications/email.blade.php +++ b/resources/views/vendor/notifications/email.blade.php @@ -47,6 +47,7 @@ {{ config('app.name') }} @endif +{{-- cspell:words subcopy --}} {{-- Subcopy --}} @isset($actionText) @slot('subcopy') diff --git a/routes/web.php b/routes/web.php index 44cc6d0992..1bb939f71c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -864,8 +864,8 @@ // Commands Route::prefix('commands')->middleware('owner')->group(function (): void { Route::get('/', [App\Http\Controllers\Staff\CommandController::class, 'index'])->name('commands.index'); - Route::post('/maintance-enable', [App\Http\Controllers\Staff\CommandController::class, 'maintanceEnable']); - Route::post('/maintance-disable', [App\Http\Controllers\Staff\CommandController::class, 'maintanceDisable']); + Route::post('/maintenance-enable', [App\Http\Controllers\Staff\CommandController::class, 'maintenanceEnable']); + Route::post('/maintenance-disable', [App\Http\Controllers\Staff\CommandController::class, 'maintenanceDisable']); Route::post('/clear-cache', [App\Http\Controllers\Staff\CommandController::class, 'clearCache']); Route::post('/clear-view-cache', [App\Http\Controllers\Staff\CommandController::class, 'clearView']); Route::post('/clear-route-cache', [App\Http\Controllers\Staff\CommandController::class, 'clearRoute']); @@ -977,7 +977,7 @@ }); // Laravel Log Viewer - Route::get('/laravel-log', App\Http\Livewire\LaravelLogViewer::class)->middleware('owner')->name('laravellog.index'); + Route::get('/laravel-log', App\Http\Livewire\LaravelLogViewer::class)->middleware('owner')->name('laravel-log.index'); // Leakers Route::prefix('leakers')->group(function (): void { @@ -1001,7 +1001,7 @@ }); }); - // Media Lanuages (Languages Used To Populate Language Dropdowns For Subtitles / Audios / Etc.) + // Media Languages (Languages Used To Populate Language Dropdowns For Subtitles / Audios / Etc.) Route::prefix('media-languages')->group(function (): void { Route::name('media_languages.')->group(function (): void { Route::get('/', [App\Http\Controllers\Staff\MediaLanguageController::class, 'index'])->name('index'); @@ -1187,7 +1187,7 @@ }); }); - // Internal Useres + // Internal Users Route::prefix('internal-users')->group(function (): void { Route::name('internal_users.')->group(function (): void { Route::post('/', [App\Http\Controllers\Staff\InternalUserController::class, 'store'])->name('store'); diff --git a/tests/Feature/Http/Controllers/PlaylistTorrentControllerTest.php b/tests/Feature/Http/Controllers/PlaylistTorrentControllerTest.php index 2268b48635..6237785eff 100644 --- a/tests/Feature/Http/Controllers/PlaylistTorrentControllerTest.php +++ b/tests/Feature/Http/Controllers/PlaylistTorrentControllerTest.php @@ -48,7 +48,7 @@ $response->assertForbidden(); }); -test('massupsert validates with a form request', function (): void { +test('mass upsert validates with a form request', function (): void { $this->assertActionUsesFormRequest( PlaylistTorrentController::class, 'massUpsert', diff --git a/tests/Feature/Http/Controllers/Staff/CommandControllerTest.php b/tests/Feature/Http/Controllers/Staff/CommandControllerTest.php index ec67e4b5d8..662cee8c79 100644 --- a/tests/Feature/Http/Controllers/Staff/CommandControllerTest.php +++ b/tests/Feature/Http/Controllers/Staff/CommandControllerTest.php @@ -99,7 +99,7 @@ // TODO: perform additional assertions }); -test('maintance disable returns an ok response', function (): void { +test('maintenance disable returns an ok response', function (): void { $this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.'); $user = User::factory()->create(); @@ -113,7 +113,7 @@ // TODO: perform additional assertions }); -test('maintance enable returns an ok response', function (): void { +test('maintenance enable returns an ok response', function (): void { $this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.'); $user = User::factory()->create(); diff --git a/tests/Unit/Http/Requests/StoreTorrentRequestRequestTest.php b/tests/Unit/Http/Requests/StoreTorrentRequestRequestTest.php index 707627506b..bb62c3e44b 100644 --- a/tests/Unit/Http/Requests/StoreTorrentRequestRequestTest.php +++ b/tests/Unit/Http/Requests/StoreTorrentRequestRequestTest.php @@ -78,7 +78,7 @@ $actual = $this->subject->messages(); expect($actual)->toEqual([ - 'igdb.in' => 'The IGBB ID must be 0 if the media doesn\'t exist on IGDB or you\'re not requesting a game.', + 'igdb.in' => 'The IGDB ID must be 0 if the media doesn\'t exist on IGDB or you\'re not requesting a game.', 'tmdb.in' => 'The TMDB ID must be 0 if the media doesn\'t exist on TMDB or you\'re not requesting a tv show or movie.', 'imdb.in' => 'The IMDB ID must be 0 if the media doesn\'t exist on IMDB or you\'re not requesting a tv show or movie.', 'tvdb.in' => 'The TVDB ID must be 0 if the media doesn\'t exist on TVDB or you\'re not requesting a tv show.', diff --git a/tests/Unit/Http/Requests/StoreTorrentRequestTest.php b/tests/Unit/Http/Requests/StoreTorrentRequestTest.php index 84133b4cdd..521bea8817 100644 --- a/tests/Unit/Http/Requests/StoreTorrentRequestTest.php +++ b/tests/Unit/Http/Requests/StoreTorrentRequestTest.php @@ -127,7 +127,7 @@ $actual = $this->subject->messages(); expect($actual)->toEqual([ - 'igdb.in' => "The IGBB ID must be 0 if the media doesn't exist on IGDB or you're not uploading a game.", + 'igdb.in' => "The IGDB ID must be 0 if the media doesn't exist on IGDB or you're not uploading a game.", 'tmdb.in' => "The TMDB ID must be 0 if the media doesn't exist on TMDB or you're not uploading a tv show or movie.", 'imdb.in' => "The IMDB ID must be 0 if the media doesn't exist on IMDB or you're not uploading a tv show or movie.", 'tvdb.in' => "The TVDB ID must be 0 if the media doesn't exist on TVDB or you're not uploading a tv show.",