Apply fixes from StyleCI

This commit is contained in:
Rico
2024-03-18 17:06:33 +00:00
committed by StyleCI Bot
parent 58a1b50674
commit 5fa130de02
4 changed files with 8 additions and 10 deletions

View File

@@ -53,7 +53,6 @@ class AppServiceProvider extends ServiceProvider
public function bootRoute(): void public function bootRoute(): void
{ {
RateLimiter::for('api', function (Request $request) { RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
}); });

View File

@@ -10,10 +10,10 @@ return Application::configure(basePath: dirname(__DIR__))
\Scyllaly\HCaptcha\HCaptchaServiceProvider::class, \Scyllaly\HCaptcha\HCaptchaServiceProvider::class,
]) ])
->withRouting( ->withRouting(
web: __DIR__.'/../routes/web.php', web: __DIR__ . '/../routes/web.php',
api: __DIR__.'/../routes/api.php', api: __DIR__ . '/../routes/api.php',
commands: __DIR__.'/../routes/console.php', commands: __DIR__ . '/../routes/console.php',
channels: __DIR__.'/../routes/channels.php', channels: __DIR__ . '/../routes/channels.php',
health: '/up', health: '/up',
) )
->withMiddleware(function (Middleware $middleware) { ->withMiddleware(function (Middleware $middleware) {

View File

@@ -4,8 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
return new class extends Migration return new class () extends Migration {
{
/** /**
* Run the migrations. * Run the migrations.
*/ */

View File

@@ -5,13 +5,13 @@ use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true)); define('LARAVEL_START', microtime(true));
// Determine if the application is in maintenance mode... // Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) {
require $maintenance; require $maintenance;
} }
// Register the Composer autoloader... // Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php'; require __DIR__ . '/../vendor/autoload.php';
// Bootstrap Laravel and handle the request... // Bootstrap Laravel and handle the request...
(require_once __DIR__.'/../bootstrap/app.php') (require_once __DIR__ . '/../bootstrap/app.php')
->handleRequest(Request::capture()); ->handleRequest(Request::capture());