Skip to content

Commit 88fd83d

Browse files
lancepiochDaneEveritt
authored andcommitted
Remove unused imports (pterodactyl#1102)
1 parent ceff5ac commit 88fd83d

File tree

11 files changed

+3
-13
lines changed

11 files changed

+3
-13
lines changed

app/Services/Servers/ServerDeletionService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace Pterodactyl\Services\Servers;
1111

1212
use Illuminate\Log\Writer;
13-
use Pterodactyl\Models\Server;
1413
use GuzzleHttp\Exception\RequestException;
1514
use Illuminate\Database\ConnectionInterface;
1615
use Pterodactyl\Services\Databases\DatabaseManagementService;

app/Services/Subusers/SubuserCreationService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace Pterodactyl\Services\Subusers;
1111

1212
use Pterodactyl\Models\Server;
13-
use Pterodactyl\Rules\Username;
1413
use Illuminate\Database\ConnectionInterface;
1514
use Pterodactyl\Services\Users\UserCreationService;
1615
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;

bootstrap/tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
/** @var \Pterodactyl\Console\Kernel $kernel */
1111
$kernel = $app->make(Kernel::class);
1212

13-
/**
13+
/*
1414
* Bootstrap the kernel and prepare application for testing.
1515
*/
1616
$kernel->bootstrap();
1717

1818
$output = new ConsoleOutput;
1919

20-
/**
20+
/*
2121
* Perform database migrations and reseeding before continuing with
2222
* running the tests.
2323
*/

database/migrations/2018_03_15_124536_add_description_to_nodes.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ public function down()
2929
$table->dropColumn('description');
3030
});
3131
}
32-
33-
}
32+
}

tests/Unit/Http/Middleware/AdminAuthenticateTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Tests\Unit\Http\Middleware;
44

5-
use Illuminate\Http\Request;
65
use Pterodactyl\Models\User;
76
use Pterodactyl\Http\Middleware\AdminAuthenticate;
87

tests/Unit/Services/Allocations/AssignmentServiceTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Tests\Unit\Services\Allocations;
44

5-
use Exception;
65
use Mockery as m;
76
use Tests\TestCase;
87
use Pterodactyl\Models\Node;

tests/Unit/Services/Eggs/EggCreationServiceTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
namespace Tests\Unit\Services\Services\Options;
1111

12-
use Exception;
1312
use Mockery as m;
1413
use Tests\TestCase;
1514
use Pterodactyl\Models\Egg;

tests/Unit/Services/Nests/NestDeletionServiceTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
namespace Tests\Unit\Services\Services;
1111

12-
use Exception;
1312
use Mockery as m;
1413
use Tests\TestCase;
1514
use Pterodactyl\Exceptions\PterodactylException;

tests/Unit/Services/Nodes/NodeUpdateServiceTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
namespace Tests\Unit\Services\Nodes;
1111

12-
use Exception;
1312
use Mockery as m;
1413
use Tests\TestCase;
1514
use phpmock\phpunit\PHPMock;

tests/Unit/Services/Packs/PackDeletionServiceTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
namespace Tests\Unit\Services\Packs;
1111

12-
use Exception;
1312
use Mockery as m;
1413
use Tests\TestCase;
1514
use Pterodactyl\Models\Pack;

0 commit comments

Comments
 (0)