File tree Expand file tree Collapse file tree 10 files changed +18
-18
lines changed
Expand file tree Collapse file tree 10 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Extensions ;
2626
27- use Illuminate \Config \Repository as ConfigRepository ;
28- use Illuminate \Contracts \Encryption \Encrypter ;
2927use Pterodactyl \Models \DatabaseHost ;
28+ use Illuminate \Contracts \Encryption \Encrypter ;
29+ use Illuminate \Config \Repository as ConfigRepository ;
3030
3131class DynamicDatabaseConnection
3232{
Original file line number Diff line number Diff line change 2727use Pterodactyl \Models \Location ;
2828use Prologue \Alerts \AlertsMessageBag ;
2929use Pterodactyl \Services \LocationService ;
30- use Pterodactyl \Http \Controllers \Controller ;
3130use Pterodactyl \Exceptions \DisplayException ;
31+ use Pterodactyl \Http \Controllers \Controller ;
3232use Pterodactyl \Http \Requests \Admin \LocationRequest ;
3333
3434class LocationController extends Controller
Original file line number Diff line number Diff line change 2929use Route ;
3030use Javascript ;
3131use Illuminate \Http \Request ;
32- use Pterodactyl \Http \Requests \Admin \Service \EditOptionScript ;
3332use Pterodactyl \Models \Service ;
3433use Pterodactyl \Models \ServiceOption ;
3534use Pterodactyl \Exceptions \DisplayException ;
3635use Pterodactyl \Http \Controllers \Controller ;
3736use Pterodactyl \Repositories \OptionRepository ;
3837use Pterodactyl \Repositories \VariableRepository ;
3938use Pterodactyl \Exceptions \DisplayValidationException ;
39+ use Pterodactyl \Http \Requests \Admin \Service \EditOptionScript ;
4040use Pterodactyl \Http \Requests \Admin \Service \StoreOptionVariable ;
4141
4242class OptionController extends Controller
Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Models ;
2626
27- use Illuminate \Database \Eloquent \Model ;
2827use Watson \Validating \ValidatingTrait ;
28+ use Illuminate \Database \Eloquent \Model ;
2929
3030class Location extends Model
3131{
Original file line number Diff line number Diff line change 22
33namespace Pterodactyl \Providers ;
44
5+ use Pterodactyl \Models \User ;
56use Illuminate \Support \Facades \Route ;
67use Illuminate \Foundation \Support \Providers \RouteServiceProvider as ServiceProvider ;
7- use Pterodactyl \Models \User ;
88
99class RouteServiceProvider extends ServiceProvider
1010{
Original file line number Diff line number Diff line change 2626
2727use Illuminate \Container \Container ;
2828use Illuminate \Database \Eloquent \Model ;
29- use Pterodactyl \Contracts \Repositories \RepositoryInterface ;
3029use Pterodactyl \Exceptions \Repository \RepositoryException ;
30+ use Pterodactyl \Contracts \Repositories \RepositoryInterface ;
3131
3232abstract class Repository implements RepositoryInterface
3333{
Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Services ;
2626
27- use Illuminate \Config \Repository as ConfigRepository ;
27+ use Pterodactyl \Models \User ;
28+ use Illuminate \Database \Connection ;
2829use Illuminate \Contracts \Auth \Guard ;
2930use Illuminate \Contracts \Hashing \Hasher ;
30- use Illuminate \Database \Connection ;
3131use Pterodactyl \Exceptions \DisplayException ;
32- use Pterodactyl \Models \User ;
3332use Pterodactyl \Notifications \AccountCreated ;
3433use Pterodactyl \Services \Components \UuidService ;
34+ use Illuminate \Config \Repository as ConfigRepository ;
3535
3636class UserService
3737{
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ trait CreatesApplication
1313 */
1414 public function createApplication ()
1515 {
16- $ app = require __DIR__ . '/../bootstrap/app.php ' ;
16+ $ app = require __DIR__ . '/../bootstrap/app.php ' ;
1717
1818 $ app ->make (Kernel::class)->bootstrap ();
1919
Original file line number Diff line number Diff line change 2424
2525namespace Tests \Feature \Services ;
2626
27- use Illuminate \Validation \ValidationException ;
28- use Pterodactyl \Exceptions \DisplayException ;
29- use Pterodactyl \Models \Node ;
3027use Tests \TestCase ;
28+ use Pterodactyl \Models \Node ;
3129use Pterodactyl \Models \Location ;
3230use Pterodactyl \Services \LocationService ;
31+ use Pterodactyl \Exceptions \DisplayException ;
32+ use Illuminate \Validation \ValidationException ;
3333
3434class LocationServiceTest extends TestCase
3535{
@@ -65,7 +65,7 @@ public function testShouldCreateANewLocation()
6565 $ this ->assertEquals ($ data ['short ' ], $ response ->short );
6666 $ this ->assertDatabaseHas ('locations ' , [
6767 'short ' => $ data ['short ' ],
68- 'long ' => $ data ['long ' ]
68+ 'long ' => $ data ['long ' ],
6969 ]);
7070 }
7171
Original file line number Diff line number Diff line change 2424
2525namespace Tests \Feature \Services ;
2626
27- use Illuminate \ Support \ Facades \ Notification ;
27+ use Tests \ TestCase ;
2828use Pterodactyl \Models \User ;
29- use Pterodactyl \Notifications \AccountCreated ;
3029use Pterodactyl \Services \UserService ;
31- use Tests \TestCase ;
30+ use Illuminate \Support \Facades \Notification ;
31+ use Pterodactyl \Notifications \AccountCreated ;
3232
3333class UserServiceTest extends TestCase
3434{
You can’t perform that action at this time.
0 commit comments