Skip to content

Commit d908672

Browse files
authored
Apply fixes from StyleCI (pterodactyl#519)
1 parent b7b046c commit d908672

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

app/Services/LocationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
namespace Pterodactyl\Services;
2626

27-
use Pterodactyl\Exceptions\Model\DataValidationException;
2827
use Pterodactyl\Models\Location;
2928
use Pterodactyl\Exceptions\DisplayException;
29+
use Pterodactyl\Exceptions\Model\DataValidationException;
3030

3131
class LocationService
3232
{

tests/Feature/Services/LocationServiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function testShouldThrowExceptionIfInvalidModelIdIsProvided()
192192
$this->service->update(0, []);
193193
}
194194

195-
/**
195+
/*
196196
* Test that a location can be deleted normally when no nodes are attached.
197197
*/
198198
// public function testShouldDeleteExistingLocation()
@@ -211,7 +211,7 @@ public function testShouldThrowExceptionIfInvalidModelIdIsProvided()
211211
// ]);
212212
// }
213213

214-
/**
214+
/*
215215
* Test that a location cannot be deleted if a node is attached to it.
216216
*
217217
* @expectedException \Pterodactyl\Exceptions\DisplayException

tests/Feature/Services/UserServiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function testShouldReturnNewUserWithPasswordTokenIfNoPasswordProvided()
108108

109109
public function testShouldUpdateUserModelInDatabase()
110110
{
111-
// $user = factory(User::class)->create();
111+
// $user = factory(User::class)->create();
112112
//
113113
// $response = $this->service->update($user, [
114114
// 'email' => 'test_change@example.com',
@@ -126,7 +126,7 @@ public function testShouldUpdateUserModelInDatabase()
126126

127127
public function testShouldDeleteUserFromDatabase()
128128
{
129-
// $user = factory(User::class)->create();
129+
// $user = factory(User::class)->create();
130130
// $service = $this->app->make(UserService::class);
131131
//
132132
// $response = $service->delete($user);

tests/Unit/Services/UserServiceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424

2525
namespace Tests\Unit\Services;
2626

27-
use Illuminate\Contracts\Hashing\Hasher;
28-
use Illuminate\Database\Connection;
2927
use Mockery as m;
28+
use Tests\TestCase;
3029
use Pterodactyl\Models\User;
30+
use Illuminate\Database\Connection;
31+
use Pterodactyl\Services\UserService;
32+
use Illuminate\Contracts\Hashing\Hasher;
3133
use Pterodactyl\Notifications\AccountCreated;
3234
use Pterodactyl\Services\Helpers\TemporaryPasswordService;
33-
use Pterodactyl\Services\UserService;
34-
use Tests\TestCase;
3535

3636
class UserServiceTest extends TestCase
3737
{

0 commit comments

Comments
 (0)