From b1f97a727501ee9afe0da927204f7261f46e1318 Mon Sep 17 00:00:00 2001 From: Jellyfrog Date: Tue, 25 Oct 2022 18:02:43 +0200 Subject: [PATCH] Apply fixes from StyleCI (#14517) Co-authored-by: StyleCI Bot --- app/Logging/Reporting/Middleware/AddGitInformation.php | 2 +- app/Logging/Reporting/Middleware/SetGroups.php | 2 +- app/Providers/ErrorReportingProvider.php | 4 ++-- app/Providers/EventServiceProvider.php | 1 - config/broadcasting.php | 2 +- config/cache.php | 2 +- config/filesystems.php | 2 +- config/logging.php | 2 +- config/session.php | 2 +- database/factories/AlertTransportFactory.php | 1 - routes/web.php | 1 - 11 files changed, 9 insertions(+), 12 deletions(-) diff --git a/app/Logging/Reporting/Middleware/AddGitInformation.php b/app/Logging/Reporting/Middleware/AddGitInformation.php index 91732b3689..47280c9ea3 100644 --- a/app/Logging/Reporting/Middleware/AddGitInformation.php +++ b/app/Logging/Reporting/Middleware/AddGitInformation.php @@ -25,8 +25,8 @@ namespace App\Logging\Reporting\Middleware; -use Spatie\FlareClient\Report; use LibreNMS\Util\Git; +use Spatie\FlareClient\Report; class AddGitInformation { diff --git a/app/Logging/Reporting/Middleware/SetGroups.php b/app/Logging/Reporting/Middleware/SetGroups.php index a6cbf53049..c024b223db 100644 --- a/app/Logging/Reporting/Middleware/SetGroups.php +++ b/app/Logging/Reporting/Middleware/SetGroups.php @@ -25,8 +25,8 @@ namespace App\Logging\Reporting\Middleware; -use Spatie\FlareClient\Report; use LibreNMS\Util\Version; +use Spatie\FlareClient\Report; class SetGroups { diff --git a/app/Providers/ErrorReportingProvider.php b/app/Providers/ErrorReportingProvider.php index 79fd9bdb0b..e5a69a0065 100644 --- a/app/Providers/ErrorReportingProvider.php +++ b/app/Providers/ErrorReportingProvider.php @@ -31,12 +31,12 @@ use App\Logging\Reporting\Middleware\SetGroups; use App\Logging\Reporting\Middleware\SetInstanceId; use App\Models\Callback; use ErrorException; -use Spatie\FlareClient\Report; -use Spatie\LaravelIgnition\Facades\Flare; use Illuminate\Support\Facades\Log; use Illuminate\Support\Str; use LibreNMS\Config; use LibreNMS\Util\Git; +use Spatie\FlareClient\Report; +use Spatie\LaravelIgnition\Facades\Flare; class ErrorReportingProvider extends \Spatie\LaravelIgnition\IgnitionServiceProvider { diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index d8b4cc2108..0ac741a27d 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -56,4 +56,3 @@ class EventServiceProvider extends ServiceProvider return false; } } - diff --git a/config/broadcasting.php b/config/broadcasting.php index a8c7437e74..c1f8a13f49 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -44,7 +44,7 @@ return [ 'secret' => env('PUSHER_APP_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ - 'host' => env('PUSHER_HOST', 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', + 'host' => env('PUSHER_HOST', 'api-' . env('PUSHER_APP_CLUSTER', 'mt1') . '.pusher.com') ?: 'api-' . env('PUSHER_APP_CLUSTER', 'mt1') . '.pusher.com', 'port' => env('PUSHER_PORT', 443), 'scheme' => env('PUSHER_SCHEME', 'https'), 'encrypted' => true, diff --git a/config/cache.php b/config/cache.php index 8543417479..5e4f4b93e7 100644 --- a/config/cache.php +++ b/config/cache.php @@ -113,6 +113,6 @@ return [ | */ - 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache_'), ]; diff --git a/config/filesystems.php b/config/filesystems.php index 2b6282db23..8d68b56cca 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -52,7 +52,7 @@ return [ 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), - 'url' => env('APP_URL').'/storage', + 'url' => env('APP_URL') . '/storage', 'visibility' => 'public', 'throw' => false, ], diff --git a/config/logging.php b/config/logging.php index 5390472857..ed6fd9a19e 100644 --- a/config/logging.php +++ b/config/logging.php @@ -107,7 +107,7 @@ return [ 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), - 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'), ], ], diff --git a/config/session.php b/config/session.php index 5232204dc4..c2a09d1f11 100644 --- a/config/session.php +++ b/config/session.php @@ -136,7 +136,7 @@ return [ 'cookie' => env( 'SESSION_COOKIE', - Str::slug(env('APP_NAME', 'laravel'), '_').'_session' + Str::slug(env('APP_NAME', 'laravel'), '_') . '_session' ), /* diff --git a/database/factories/AlertTransportFactory.php b/database/factories/AlertTransportFactory.php index 1f63a17d83..279ba5ced0 100644 --- a/database/factories/AlertTransportFactory.php +++ b/database/factories/AlertTransportFactory.php @@ -2,7 +2,6 @@ namespace Database\Factories; -use App\Models\AlertTransport; use Illuminate\Database\Eloquent\Factories\Factory; use LibreNMS\Alert\Transport; diff --git a/routes/web.php b/routes/web.php index 3b01e953d9..32f2e51c0e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,5 @@