From 88fd83d413781f9a703a48ee316567d30beae5f1 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sun, 8 Apr 2018 16:37:27 -0400 Subject: [PATCH] Remove unused imports (#1102) --- app/Services/Servers/ServerDeletionService.php | 1 - app/Services/Subusers/SubuserCreationService.php | 1 - bootstrap/tests.php | 4 ++-- .../migrations/2018_03_15_124536_add_description_to_nodes.php | 3 +-- tests/Unit/Http/Middleware/AdminAuthenticateTest.php | 1 - tests/Unit/Services/Allocations/AssignmentServiceTest.php | 1 - tests/Unit/Services/Eggs/EggCreationServiceTest.php | 1 - tests/Unit/Services/Nests/NestDeletionServiceTest.php | 1 - tests/Unit/Services/Nodes/NodeUpdateServiceTest.php | 1 - tests/Unit/Services/Packs/PackDeletionServiceTest.php | 1 - tests/Unit/Services/Servers/ContainerRebuildServiceTest.php | 1 - 11 files changed, 3 insertions(+), 13 deletions(-) diff --git a/app/Services/Servers/ServerDeletionService.php b/app/Services/Servers/ServerDeletionService.php index 37481c27e..5a3f1cb4b 100644 --- a/app/Services/Servers/ServerDeletionService.php +++ b/app/Services/Servers/ServerDeletionService.php @@ -10,7 +10,6 @@ namespace Pterodactyl\Services\Servers; use Illuminate\Log\Writer; -use Pterodactyl\Models\Server; use GuzzleHttp\Exception\RequestException; use Illuminate\Database\ConnectionInterface; use Pterodactyl\Services\Databases\DatabaseManagementService; diff --git a/app/Services/Subusers/SubuserCreationService.php b/app/Services/Subusers/SubuserCreationService.php index 430b67617..1a5d7120f 100644 --- a/app/Services/Subusers/SubuserCreationService.php +++ b/app/Services/Subusers/SubuserCreationService.php @@ -10,7 +10,6 @@ namespace Pterodactyl\Services\Subusers; use Pterodactyl\Models\Server; -use Pterodactyl\Rules\Username; use Illuminate\Database\ConnectionInterface; use Pterodactyl\Services\Users\UserCreationService; use Pterodactyl\Contracts\Repository\UserRepositoryInterface; diff --git a/bootstrap/tests.php b/bootstrap/tests.php index 6ddb47f70..276786610 100644 --- a/bootstrap/tests.php +++ b/bootstrap/tests.php @@ -10,14 +10,14 @@ $app = require __DIR__ . '/app.php'; /** @var \Pterodactyl\Console\Kernel $kernel */ $kernel = $app->make(Kernel::class); -/** +/* * Bootstrap the kernel and prepare application for testing. */ $kernel->bootstrap(); $output = new ConsoleOutput; -/** +/* * Perform database migrations and reseeding before continuing with * running the tests. */ diff --git a/database/migrations/2018_03_15_124536_add_description_to_nodes.php b/database/migrations/2018_03_15_124536_add_description_to_nodes.php index 9b92e3c39..7208a4207 100644 --- a/database/migrations/2018_03_15_124536_add_description_to_nodes.php +++ b/database/migrations/2018_03_15_124536_add_description_to_nodes.php @@ -29,5 +29,4 @@ class AddDescriptionToNodes extends Migration $table->dropColumn('description'); }); } - -} \ No newline at end of file +} diff --git a/tests/Unit/Http/Middleware/AdminAuthenticateTest.php b/tests/Unit/Http/Middleware/AdminAuthenticateTest.php index c8bba572e..eee9a6969 100644 --- a/tests/Unit/Http/Middleware/AdminAuthenticateTest.php +++ b/tests/Unit/Http/Middleware/AdminAuthenticateTest.php @@ -2,7 +2,6 @@ namespace Tests\Unit\Http\Middleware; -use Illuminate\Http\Request; use Pterodactyl\Models\User; use Pterodactyl\Http\Middleware\AdminAuthenticate; diff --git a/tests/Unit/Services/Allocations/AssignmentServiceTest.php b/tests/Unit/Services/Allocations/AssignmentServiceTest.php index 7a4eb067c..ce9d84c7f 100644 --- a/tests/Unit/Services/Allocations/AssignmentServiceTest.php +++ b/tests/Unit/Services/Allocations/AssignmentServiceTest.php @@ -2,7 +2,6 @@ namespace Tests\Unit\Services\Allocations; -use Exception; use Mockery as m; use Tests\TestCase; use Pterodactyl\Models\Node; diff --git a/tests/Unit/Services/Eggs/EggCreationServiceTest.php b/tests/Unit/Services/Eggs/EggCreationServiceTest.php index 7afa07871..ef4de9df3 100644 --- a/tests/Unit/Services/Eggs/EggCreationServiceTest.php +++ b/tests/Unit/Services/Eggs/EggCreationServiceTest.php @@ -9,7 +9,6 @@ namespace Tests\Unit\Services\Services\Options; -use Exception; use Mockery as m; use Tests\TestCase; use Pterodactyl\Models\Egg; diff --git a/tests/Unit/Services/Nests/NestDeletionServiceTest.php b/tests/Unit/Services/Nests/NestDeletionServiceTest.php index b0bc0b2bb..28fcc7517 100644 --- a/tests/Unit/Services/Nests/NestDeletionServiceTest.php +++ b/tests/Unit/Services/Nests/NestDeletionServiceTest.php @@ -9,7 +9,6 @@ namespace Tests\Unit\Services\Services; -use Exception; use Mockery as m; use Tests\TestCase; use Pterodactyl\Exceptions\PterodactylException; diff --git a/tests/Unit/Services/Nodes/NodeUpdateServiceTest.php b/tests/Unit/Services/Nodes/NodeUpdateServiceTest.php index 6dff6e4ba..12f2867ca 100644 --- a/tests/Unit/Services/Nodes/NodeUpdateServiceTest.php +++ b/tests/Unit/Services/Nodes/NodeUpdateServiceTest.php @@ -9,7 +9,6 @@ namespace Tests\Unit\Services\Nodes; -use Exception; use Mockery as m; use Tests\TestCase; use phpmock\phpunit\PHPMock; diff --git a/tests/Unit/Services/Packs/PackDeletionServiceTest.php b/tests/Unit/Services/Packs/PackDeletionServiceTest.php index 75e6684e1..9854de5cc 100644 --- a/tests/Unit/Services/Packs/PackDeletionServiceTest.php +++ b/tests/Unit/Services/Packs/PackDeletionServiceTest.php @@ -9,7 +9,6 @@ namespace Tests\Unit\Services\Packs; -use Exception; use Mockery as m; use Tests\TestCase; use Pterodactyl\Models\Pack; diff --git a/tests/Unit/Services/Servers/ContainerRebuildServiceTest.php b/tests/Unit/Services/Servers/ContainerRebuildServiceTest.php index a16c41225..5f97fcbde 100644 --- a/tests/Unit/Services/Servers/ContainerRebuildServiceTest.php +++ b/tests/Unit/Services/Servers/ContainerRebuildServiceTest.php @@ -2,7 +2,6 @@ namespace Tests\Unit\Services\Servers; -use Exception; use Mockery as m; use Tests\TestCase; use GuzzleHttp\Psr7\Response;