style: apply pint to full codebase

This commit is contained in:
peaklabs-dev 2025-03-29 16:20:45 +01:00
parent b528973f5a
commit 196054c543
No known key found for this signature in database
14 changed files with 60 additions and 79 deletions

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
@ -9,9 +11,5 @@ return Application::configure(basePath: dirname(__DIR__))
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
)
->withMiddleware(function (Middleware $middleware) {
//
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();
->withMiddleware(function (Middleware $middleware) {})
->withExceptions(function (Exceptions $exceptions) {})->create();

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
return [
App\Providers\AppServiceProvider::class,
];

View file

@ -1,7 +1,8 @@
<?php
return [
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
@ -106,5 +107,4 @@ return [
*/
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
];

View file

@ -1,9 +1,10 @@
<?php
declare(strict_types=1);
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
@ -32,7 +33,6 @@ return [
*/
'stores' => [
'array' => [
'driver' => 'array',
'serialize' => false,
@ -89,7 +89,6 @@ return [
'octane' => [
'driver' => 'octane',
],
],
/*
@ -104,5 +103,4 @@ return [
*/
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
];

View file

@ -1,9 +1,10 @@
<?php
declare(strict_types=1);
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
@ -30,7 +31,6 @@ return [
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'url' => env('DB_URL'),
@ -111,7 +111,6 @@ return [
// 'encrypt' => env('DB_ENCRYPT', 'yes'),
// 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
],
],
/*
@ -142,7 +141,6 @@ return [
*/
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'options' => [
@ -168,7 +166,5 @@ return [
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
],
],
];

View file

@ -1,7 +1,8 @@
<?php
return [
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
@ -29,7 +30,6 @@ return [
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app/private'),
@ -59,7 +59,6 @@ return [
'throw' => false,
'report' => false,
],
],
/*
@ -76,5 +75,4 @@ return [
'links' => [
public_path('storage') => storage_path('app/public'),
],
];

View file

@ -1,12 +1,13 @@
<?php
declare(strict_types=1);
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
use Monolog\Processor\PsrLogMessageProcessor;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
@ -51,7 +52,6 @@ return [
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => explode(',', env('LOG_STACK', 'single')),
@ -126,7 +126,5 @@ return [
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
],
];

View file

@ -1,7 +1,8 @@
<?php
return [
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
@ -36,7 +37,6 @@ return [
*/
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'scheme' => env('MAIL_SCHEME'),
@ -94,7 +94,6 @@ return [
'postmark',
],
],
],
/*
@ -112,5 +111,4 @@ return [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
];

View file

@ -1,7 +1,8 @@
<?php
return [
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
@ -29,7 +30,6 @@ return [
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
@ -71,7 +71,6 @@ return [
'block_for' => null,
'after_commit' => false,
],
],
/*
@ -108,5 +107,4 @@ return [
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'failed_jobs',
],
];

View file

@ -1,43 +1,45 @@
<?php
declare(strict_types=1);
return [
/*
* This setting controls whether data should be sent to Ray.
*
* By default, `ray()` will only transmit data in non-production environments.
*/
* This setting controls whether data should be sent to Ray.
*
* By default, `ray()` will only transmit data in non-production environments.
*/
'enable' => env('RAY_ENABLED', false),
/*
* When enabled, all cache events will automatically be sent to Ray.
*/
* When enabled, all cache events will automatically be sent to Ray.
*/
'send_cache_to_ray' => env('SEND_CACHE_TO_RAY', false),
/*
* When enabled, all things passed to `dump` or `dd`
* will be sent to Ray as well.
*/
* When enabled, all things passed to `dump` or `dd`
* will be sent to Ray as well.
*/
'send_dumps_to_ray' => env('SEND_DUMPS_TO_RAY', true),
/*
* When enabled all job events will automatically be sent to Ray.
*/
* When enabled all job events will automatically be sent to Ray.
*/
'send_jobs_to_ray' => env('SEND_JOBS_TO_RAY', false),
/*
* When enabled all mails will automatically be sent to Ray.
*/
* When enabled all mails will automatically be sent to Ray.
*/
'send_mails_to_ray' => env('SEND_MAILS_TO_RAY', false),
/*
* When enabled, all things logged to the application log
* will be sent to Ray as well.
*/
* When enabled, all things logged to the application log
* will be sent to Ray as well.
*/
'send_log_calls_to_ray' => env('SEND_LOG_CALLS_TO_RAY', true),
/*
* When enabled, all queries will automatically be sent to Ray.
*/
* When enabled, all queries will automatically be sent to Ray.
*/
'send_queries_to_ray' => env('SEND_QUERIES_TO_RAY', false),
/**
@ -76,8 +78,8 @@ return [
'send_select_queries_to_ray' => env('SEND_SELECT_QUERIES_TO_RAY', false),
/*
* When enabled, all requests made to this app will automatically be sent to Ray.
*/
* When enabled, all requests made to this app will automatically be sent to Ray.
*/
'send_requests_to_ray' => env('SEND_REQUESTS_TO_RAY', false),
/**
@ -86,8 +88,8 @@ return [
'send_http_client_requests_to_ray' => env('SEND_HTTP_CLIENT_REQUESTS_TO_RAY', false),
/*
* When enabled, all views that are rendered automatically be sent to Ray.
*/
* When enabled, all views that are rendered automatically be sent to Ray.
*/
'send_views_to_ray' => env('SEND_VIEWS_TO_RAY', false),
/*
@ -101,17 +103,17 @@ return [
'send_deprecated_notices_to_ray' => env('SEND_DEPRECATED_NOTICES_TO_RAY', false),
/*
* The host used to communicate with the Ray app.
* When using Docker on Mac or Windows, you can replace localhost with 'host.docker.internal'
* When using Docker on Linux, you can replace localhost with '172.17.0.1'
* When using Homestead with the VirtualBox provider, you can replace localhost with '10.0.2.2'
* When using Homestead with the Parallels provider, you can replace localhost with '10.211.55.2'
*/
* The host used to communicate with the Ray app.
* When using Docker on Mac or Windows, you can replace localhost with 'host.docker.internal'
* When using Docker on Linux, you can replace localhost with '172.17.0.1'
* When using Homestead with the VirtualBox provider, you can replace localhost with '10.0.2.2'
* When using Homestead with the Parallels provider, you can replace localhost with '10.211.55.2'
*/
'host' => env('RAY_HOST', 'localhost'),
/*
* The port number used to communicate with the Ray app.
*/
* The port number used to communicate with the Ray app.
*/
'port' => env('RAY_PORT', 23517),
/*

View file

@ -1,7 +1,8 @@
<?php
return [
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
@ -34,12 +35,4 @@ return [
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
],
],
'zitadel' => [
'client_id' => env('ZITADEL_CLIENT_ID'),
'client_secret' => env('ZITADEL_CLIENT_SECRET'),
'redirect' => env('ZITADEL_REDIRECT_URI'),
'base_url' => env('ZITADEL_BASE_URL'),
],
];

View file

@ -1,9 +1,10 @@
<?php
declare(strict_types=1);
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
@ -129,7 +130,7 @@ return [
'cookie' => env(
'SESSION_COOKIE',
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
Str::slug(env('APP_NAME', 'laravel'), '_').'_session',
),
/*
@ -213,5 +214,4 @@ return [
*/
'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
];

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;

View file

@ -1,5 +1,3 @@
<?php
use Illuminate\Support\Facades\Route;
declare(strict_types=1);