Run cs-fix, ensure we only install dependency versions supporting 7.4+

This commit is contained in:
DaneEveritt 2022-05-04 19:01:29 -04:00
parent 3e55a79439
commit 34ffaebd3e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
16 changed files with 154 additions and 290 deletions

View file

@ -128,8 +128,6 @@ class ServerTransferController extends Controller
/**
* The daemon notifies us about a transfer success.
*
* @return \Illuminate\Http\JsonResponse
*
* @throws \Throwable
*/
public function success(string $uuid): JsonResponse

View file

@ -92,9 +92,6 @@ abstract class AbstractLoginController extends Controller
/**
* Determine if the user is logging in using an email or username,.
*
* @param string|null $input
* @return string
*/
protected function getField(string $input = null): string
{

View file

@ -2,8 +2,8 @@
namespace Pterodactyl\Http\Controllers\Auth;
use Carbon\CarbonInterface;
use Carbon\CarbonImmutable;
use Carbon\CarbonInterface;
use Pterodactyl\Models\User;
use Illuminate\Http\JsonResponse;
use PragmaRX\Google2FA\Google2FA;
@ -110,9 +110,6 @@ class LoginCheckpointController extends AbstractLoginController
* Determines if the data provided from the session is valid or not. This
* will return false if the data is invalid, or if more time has passed than
* was configured when the session was written.
*
* @param array $data
* @return bool
*/
protected function hasValidSessionData(array $data): bool
{

View file

@ -28,7 +28,7 @@ class VerifyCsrfToken extends BaseVerifier
* to using Sanctum for the API endpoints, which handles that for us automatically.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*
* @throws \Illuminate\Session\TokenMismatchException