Skip to content

Commit 271197e

Browse files
committed
Fix cs-fix run
1 parent c166f13 commit 271197e

File tree

9 files changed

+6
-14
lines changed

9 files changed

+6
-14
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
coverage: none
4545
- run: cp .env.ci .env
4646
- run: composer install --prefer-dist --no-interaction --no-progress
47-
- run: vendor/bin/php-cs-fixer fix --dry-run --diff --diff-format=udiff --config .php-cs-fixer.dist.php
47+
- run: vendor/bin/php-cs-fixer fix --dry-run --diff
4848
continue-on-error: true
4949
- name: execute unit tests
5050
run: vendor/bin/phpunit --bootstrap vendor/autoload.php tests/Unit

app/Exceptions/Handler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ protected function unauthenticated($request, AuthenticationException $exception)
268268
* Extracts all of the previous exceptions that lead to the one passed into this
269269
* function being thrown.
270270
*
271-
* @param \Throwable $e
272271
* @return \Throwable[]
273272
*/
274273
protected function extractPrevious(Throwable $e): array

app/Http/Controllers/Api/Remote/Servers/ServerDetailsController.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@
66
use Pterodactyl\Models\Server;
77
use Illuminate\Http\JsonResponse;
88
use Pterodactyl\Facades\Activity;
9-
use Pterodactyl\Http\Controllers\Controller;
109
use Illuminate\Database\ConnectionInterface;
10+
use Pterodactyl\Http\Controllers\Controller;
1111
use Pterodactyl\Services\Eggs\EggConfigurationService;
1212
use Pterodactyl\Repositories\Eloquent\ServerRepository;
1313
use Pterodactyl\Http\Resources\Wings\ServerConfigurationCollection;
1414
use Pterodactyl\Services\Servers\ServerConfigurationStructureService;
1515

1616
class ServerDetailsController extends Controller
1717
{
18-
/**
19-
* @var \Illuminate\Database\ConnectionInterface
20-
*/
2118
protected ConnectionInterface $connection;
2219

2320
/**

app/Http/Controllers/Base/LocaleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Illuminate\Http\Request;
66
use Illuminate\Http\JsonResponse;
77
use Illuminate\Translation\Translator;
8-
use Pterodactyl\Http\Controllers\Controller;
98
use Illuminate\Contracts\Translation\Loader;
9+
use Pterodactyl\Http\Controllers\Controller;
1010

1111
class LocaleController extends Controller
1212
{

app/Http/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
use Illuminate\Foundation\Http\Middleware\ValidatePostSize;
2828
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
2929
use Pterodactyl\Http\Middleware\Api\Daemon\DaemonAuthenticate;
30-
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
3130
use Pterodactyl\Http\Middleware\Api\Client\RequireClientApiKey;
31+
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
3232
use Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull;
3333
use Pterodactyl\Http\Middleware\Api\Client\SubstituteClientBindings;
3434
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance;

app/Listeners/Auth/AuthenticationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Pterodactyl\Listeners\Auth;
44

5-
use Pterodactyl\Facades\Activity;
65
use Illuminate\Auth\Events\Login;
6+
use Pterodactyl\Facades\Activity;
77
use Illuminate\Auth\Events\Failed;
88
use Illuminate\Contracts\Events\Dispatcher;
99
use Pterodactyl\Extensions\Illuminate\Events\Contracts\SubscribesToEvents;

app/Providers/AuthServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Pterodactyl\Providers;
44

55
use Laravel\Sanctum\Sanctum;
6-
use Pterodactyl\Models\Server;
76
use Pterodactyl\Models\ApiKey;
7+
use Pterodactyl\Models\Server;
88
use Pterodactyl\Policies\ServerPolicy;
99
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
1010

app/Services/Activity/AcitvityLogBatchService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function end(): void
4848
* Executes the logic provided within the callback in the scope of an activity
4949
* log batch transaction.
5050
*
51-
* @param \Closure $callback
5251
* @return mixed
5352
*/
5453
public function transaction(\Closure $callback)

config/sanctum.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
43
return [
5-
64
/*
75
|--------------------------------------------------------------------------
86
| Stateful Domains
@@ -62,5 +60,4 @@
6260
'verify_csrf_token' => Pterodactyl\Http\Middleware\VerifyCsrfToken::class,
6361
'encrypt_cookies' => Pterodactyl\Http\Middleware\EncryptCookies::class,
6462
],
65-
6663
];

0 commit comments

Comments
 (0)