Applied latest styleci changes

This commit is contained in:
Dan Brown 2021-11-04 22:57:49 +00:00
parent 1eed8d6325
commit de5322288c
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
4 changed files with 420 additions and 419 deletions

View File

@ -34,7 +34,7 @@ return [
'collect_queries' => true,
// Collect values from cache queries (high performance impact with a very high number of queries)
'collect_values' => false
'collect_values' => false,
],
// Database usage stats and queries
@ -57,7 +57,7 @@ return [
'slow_only' => false,
// Detect and report duplicate (N+1) queries
'detect_duplicate_queries' => false
'detect_duplicate_queries' => false,
],
// Dispatched events
@ -73,7 +73,7 @@ return [
// Laravel log (you can still log directly to Clockwork with laravel log disabled)
'log' => [
'enabled' => true
'enabled' => true,
],
// Sent notifications
@ -84,17 +84,17 @@ return [
// Performance metrics
'performance' => [
// Allow collecting of client metrics. Requires separate clockwork-browser npm package.
'client_metrics' => true
'client_metrics' => true,
],
// Dispatched queue jobs
'queue' => [
'enabled' => true
'enabled' => true,
],
// Redis commands
'redis' => [
'enabled' => true
'enabled' => true,
],
// Routes list
@ -102,7 +102,7 @@ return [
'enabled' => false,
// Collect only routes from particular namespaces (only application routes by default)
'only_namespaces' => [ 'App' ]
'only_namespaces' => ['App'],
],
// Rendered views
@ -114,8 +114,8 @@ return [
// Use Twig profiler instead of Laravel events for apps using laravel-twigbridge (more precise, but does
// not support collecting view data)
'use_twig_profiler' => false
]
'use_twig_profiler' => false,
],
],
@ -184,7 +184,7 @@ return [
],
// Don't collect OPTIONS requests, mostly used in the CSRF pre-flight requests and are rarely of interest
'except_preflight' => true
'except_preflight' => true,
],
/*
@ -215,7 +215,7 @@ return [
'collect_output' => false,
// Enable or disable collection of built-in Laravel commands
'except_laravel_commands' => true
'except_laravel_commands' => true,
],
/*
@ -240,7 +240,7 @@ return [
// List of queue jobs that should be collected, any other queue job will not be collected if not empty
'only' => [
// App\Jobs\BuggyJob::class
]
],
],
/*
@ -260,7 +260,7 @@ return [
// List of tests that should not be collected
'except' => [
// Tests\Unit\ExampleTest::class
]
],
],
/*
@ -349,7 +349,7 @@ return [
// List of class names to skip when determining caller
'skip_classes' => [
// App\CustomLog::class
]
],
],
@ -410,6 +410,6 @@ return [
|
*/
'server_timing' => 10
'server_timing' => 10,
];

View File

@ -15,6 +15,7 @@ class RedirectIfAuthenticated
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null ...$guards
*
* @return mixed
*/
public function handle(Request $request, Closure $next, ...$guards)

View File

@ -1,7 +1,7 @@
<?php
use Illuminate\Contracts\Http\Kernel;
use BookStack\Http\Request;
use Illuminate\Contracts\Http\Kernel;
define('LARAVEL_START', microtime(true));