Remove unused imports (#1102)

This commit is contained in:
Lance Pioch 2018-04-08 16:37:27 -04:00 committed by Dane Everitt
parent ceff5acb85
commit 88fd83d413
11 changed files with 3 additions and 13 deletions

View file

@ -10,7 +10,6 @@
namespace Pterodactyl\Services\Servers; namespace Pterodactyl\Services\Servers;
use Illuminate\Log\Writer; use Illuminate\Log\Writer;
use Pterodactyl\Models\Server;
use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Exception\RequestException;
use Illuminate\Database\ConnectionInterface; use Illuminate\Database\ConnectionInterface;
use Pterodactyl\Services\Databases\DatabaseManagementService; use Pterodactyl\Services\Databases\DatabaseManagementService;

View file

@ -10,7 +10,6 @@
namespace Pterodactyl\Services\Subusers; namespace Pterodactyl\Services\Subusers;
use Pterodactyl\Models\Server; use Pterodactyl\Models\Server;
use Pterodactyl\Rules\Username;
use Illuminate\Database\ConnectionInterface; use Illuminate\Database\ConnectionInterface;
use Pterodactyl\Services\Users\UserCreationService; use Pterodactyl\Services\Users\UserCreationService;
use Pterodactyl\Contracts\Repository\UserRepositoryInterface; use Pterodactyl\Contracts\Repository\UserRepositoryInterface;

View file

@ -10,14 +10,14 @@ $app = require __DIR__ . '/app.php';
/** @var \Pterodactyl\Console\Kernel $kernel */ /** @var \Pterodactyl\Console\Kernel $kernel */
$kernel = $app->make(Kernel::class); $kernel = $app->make(Kernel::class);
/** /*
* Bootstrap the kernel and prepare application for testing. * Bootstrap the kernel and prepare application for testing.
*/ */
$kernel->bootstrap(); $kernel->bootstrap();
$output = new ConsoleOutput; $output = new ConsoleOutput;
/** /*
* Perform database migrations and reseeding before continuing with * Perform database migrations and reseeding before continuing with
* running the tests. * running the tests.
*/ */

View file

@ -29,5 +29,4 @@ class AddDescriptionToNodes extends Migration
$table->dropColumn('description'); $table->dropColumn('description');
}); });
} }
}
}

View file

@ -2,7 +2,6 @@
namespace Tests\Unit\Http\Middleware; namespace Tests\Unit\Http\Middleware;
use Illuminate\Http\Request;
use Pterodactyl\Models\User; use Pterodactyl\Models\User;
use Pterodactyl\Http\Middleware\AdminAuthenticate; use Pterodactyl\Http\Middleware\AdminAuthenticate;

View file

@ -2,7 +2,6 @@
namespace Tests\Unit\Services\Allocations; namespace Tests\Unit\Services\Allocations;
use Exception;
use Mockery as m; use Mockery as m;
use Tests\TestCase; use Tests\TestCase;
use Pterodactyl\Models\Node; use Pterodactyl\Models\Node;

View file

@ -9,7 +9,6 @@
namespace Tests\Unit\Services\Services\Options; namespace Tests\Unit\Services\Services\Options;
use Exception;
use Mockery as m; use Mockery as m;
use Tests\TestCase; use Tests\TestCase;
use Pterodactyl\Models\Egg; use Pterodactyl\Models\Egg;

View file

@ -9,7 +9,6 @@
namespace Tests\Unit\Services\Services; namespace Tests\Unit\Services\Services;
use Exception;
use Mockery as m; use Mockery as m;
use Tests\TestCase; use Tests\TestCase;
use Pterodactyl\Exceptions\PterodactylException; use Pterodactyl\Exceptions\PterodactylException;

View file

@ -9,7 +9,6 @@
namespace Tests\Unit\Services\Nodes; namespace Tests\Unit\Services\Nodes;
use Exception;
use Mockery as m; use Mockery as m;
use Tests\TestCase; use Tests\TestCase;
use phpmock\phpunit\PHPMock; use phpmock\phpunit\PHPMock;

View file

@ -9,7 +9,6 @@
namespace Tests\Unit\Services\Packs; namespace Tests\Unit\Services\Packs;
use Exception;
use Mockery as m; use Mockery as m;
use Tests\TestCase; use Tests\TestCase;
use Pterodactyl\Models\Pack; use Pterodactyl\Models\Pack;

View file

@ -2,7 +2,6 @@
namespace Tests\Unit\Services\Servers; namespace Tests\Unit\Services\Servers;
use Exception;
use Mockery as m; use Mockery as m;
use Tests\TestCase; use Tests\TestCase;
use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\Response;