From 196054c543d3438fe90c4acd87d638c3ef3ee095 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Sat, 29 Mar 2025 16:20:45 +0100 Subject: [PATCH] style: apply pint to full codebase --- bootstrap/app.php | 10 +++---- bootstrap/providers.php | 2 ++ config/auth.php | 4 +-- config/cache.php | 6 ++-- config/database.php | 8 ++---- config/filesystems.php | 6 ++-- config/logging.php | 6 ++-- config/mail.php | 6 ++-- config/queue.php | 6 ++-- config/ray.php | 62 +++++++++++++++++++++-------------------- config/services.php | 11 ++------ config/session.php | 6 ++-- public/index.php | 2 ++ routes/web.php | 4 +-- 14 files changed, 60 insertions(+), 79 deletions(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index c82d7f2f3..235830b14 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,5 +1,7 @@ withMiddleware(function (Middleware $middleware) { - // - }) - ->withExceptions(function (Exceptions $exceptions) { - // - })->create(); + ->withMiddleware(function (Middleware $middleware) {}) + ->withExceptions(function (Exceptions $exceptions) {})->create(); diff --git a/bootstrap/providers.php b/bootstrap/providers.php index 38b258d18..84c7d4de9 100644 --- a/bootstrap/providers.php +++ b/bootstrap/providers.php @@ -1,5 +1,7 @@ env('AUTH_PASSWORD_TIMEOUT', 10800), - ]; diff --git a/config/cache.php b/config/cache.php index 925f7d2ee..753d24e52 100644 --- a/config/cache.php +++ b/config/cache.php @@ -1,9 +1,10 @@ [ - '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_'), - ]; diff --git a/config/database.php b/config/database.php index 8910562d6..4af5e0bb7 100644 --- a/config/database.php +++ b/config/database.php @@ -1,9 +1,10 @@ [ - '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'), ], - ], - ]; diff --git a/config/filesystems.php b/config/filesystems.php index 3d671bd91..d018ba5a0 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -1,7 +1,8 @@ [ - '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'), ], - ]; diff --git a/config/logging.php b/config/logging.php index 8d94292b2..077db21c0 100644 --- a/config/logging.php +++ b/config/logging.php @@ -1,12 +1,13 @@ [ - 'stack' => [ 'driver' => 'stack', 'channels' => explode(',', env('LOG_STACK', 'single')), @@ -126,7 +126,5 @@ return [ 'emergency' => [ 'path' => storage_path('logs/laravel.log'), ], - ], - ]; diff --git a/config/mail.php b/config/mail.php index 756305b3c..562d8baee 100644 --- a/config/mail.php +++ b/config/mail.php @@ -1,7 +1,8 @@ [ - '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'), ], - ]; diff --git a/config/queue.php b/config/queue.php index 116bd8d00..7d8f49761 100644 --- a/config/queue.php +++ b/config/queue.php @@ -1,7 +1,8 @@ [ - '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', ], - ]; diff --git a/config/ray.php b/config/ray.php index 5ec5590e6..d11195e16 100644 --- a/config/ray.php +++ b/config/ray.php @@ -1,43 +1,45 @@ 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), /* diff --git a/config/services.php b/config/services.php index ee4569c6c..7b009f087 100644 --- a/config/services.php +++ b/config/services.php @@ -1,7 +1,8 @@ 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'), - ], - ]; diff --git a/config/session.php b/config/session.php index ba0aa60b0..bda9b7790 100644 --- a/config/session.php +++ b/config/session.php @@ -1,9 +1,10 @@ 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), - ]; diff --git a/public/index.php b/public/index.php index ee8f07e99..6aa752c80 100644 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,7 @@