Skip to content

Commit 02c1294

Browse files
committed
refactor(commands): remove download command and its test
- Deleted `DownloadCommand` class used for downloading Soar binaries. - Removed corresponding test file `DownloadCommandTest.php`. - Unregistered `DownloadCommand` from the `SoarServiceProvider`. - Added a new exclusion rule for static method calls to `phpstan.neon`.
1 parent 9effcc8 commit 02c1294

File tree

4 files changed

+1
-132
lines changed

4 files changed

+1
-132
lines changed

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ parameters:
9696
- identifier: shipmonk.deadMethod
9797
- identifier: symplify.explicitTraitSuffixName
9898
- identifier: symplify.requireExceptionNamespace
99+
- '#^Call to an undefined static method Guanguans\\LaravelSoar\\Facades\\Soar\:\:get.*\(\)\.$#'
99100
- '#^Call to method label\(\) on an unknown class Spatie\\.*\\Ray\.$#'
100101
- '#^Function clock not found\.$#'
101102
-

src/Commands/DownloadCommand.php

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/SoarServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
use Composer\InstalledVersions;
1717
use Guanguans\LaravelSoar\Commands\ClearCommand;
18-
use Guanguans\LaravelSoar\Commands\DownloadCommand;
1918
use Guanguans\LaravelSoar\Commands\RunCommand;
2019
use Guanguans\LaravelSoar\Commands\ScoreCommand;
2120
use Guanguans\LaravelSoar\Mixins\QueryBuilderMixin;
@@ -128,7 +127,6 @@ private function registerCommands(): void
128127
if ($this->app->runningInConsole()) {
129128
$this->commands([
130129
ClearCommand::class,
131-
DownloadCommand::class,
132130
RunCommand::class,
133131
ScoreCommand::class,
134132
]);

tests/Commands/DownloadCommandTest.php

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)