diff --git a/framework/core/src/Admin/Middleware/GatherDebugInformation.php b/framework/core/src/Admin/Middleware/GatherDebugInformation.php index c6329d7ee..ac5fa9de8 100644 --- a/framework/core/src/Admin/Middleware/GatherDebugInformation.php +++ b/framework/core/src/Admin/Middleware/GatherDebugInformation.php @@ -1,5 +1,12 @@ settings->set( - "core.web_user", + 'core.web_user', $currentUser ); } diff --git a/framework/core/src/Foundation/ApplicationInfoProvider.php b/framework/core/src/Foundation/ApplicationInfoProvider.php index 8f2b38fac..764ea0e09 100644 --- a/framework/core/src/Foundation/ApplicationInfoProvider.php +++ b/framework/core/src/Foundation/ApplicationInfoProvider.php @@ -44,7 +44,7 @@ class ApplicationInfoProvider { $status = $this->settings->get('schedule.last_run'); - $key = match(true) { + $key = match (true) { ! $status => 'never-run', Carbon::parse($status) > Carbon::now()->subMinutes(5) => 'active', default => 'inactive' diff --git a/framework/core/src/Foundation/Console/InfoCommand.php b/framework/core/src/Foundation/Console/InfoCommand.php index 35c6d1cb5..d26f1a2a6 100644 --- a/framework/core/src/Foundation/Console/InfoCommand.php +++ b/framework/core/src/Foundation/Console/InfoCommand.php @@ -10,18 +10,10 @@ namespace Flarum\Foundation\Console; use Flarum\Console\AbstractCommand; -use Flarum\Extension\ExtensionManager; -use Flarum\Foundation\Application; -use Flarum\Foundation\ApplicationInfoProvider; -use Flarum\Foundation\Config; use Flarum\Foundation\Info\Renderer\CliRenderer; use Flarum\Foundation\Info\Report; -use Flarum\Settings\SettingsRepositoryInterface; use Illuminate\Contracts\Container\Container; -use Illuminate\Database\ConnectionInterface; use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Helper\Table; -use Symfony\Component\Console\Helper\TableStyle; class InfoCommand extends AbstractCommand { diff --git a/framework/core/src/Foundation/Info/Concerns/PackageVersionFromPath.php b/framework/core/src/Foundation/Info/Concerns/PackageVersionFromPath.php index 04418f73e..bc61113d3 100644 --- a/framework/core/src/Foundation/Info/Concerns/PackageVersionFromPath.php +++ b/framework/core/src/Foundation/Info/Concerns/PackageVersionFromPath.php @@ -1,5 +1,12 @@ renderer->open(); - foreach($sections as &$section) { + foreach ($sections as &$section) { $section = $this->container->make($section); $section($this->renderer); diff --git a/framework/core/src/Foundation/Info/Section/CoreVersion.php b/framework/core/src/Foundation/Info/Section/CoreVersion.php index c8e2dad40..0c9b5b692 100644 --- a/framework/core/src/Foundation/Info/Section/CoreVersion.php +++ b/framework/core/src/Foundation/Info/Section/CoreVersion.php @@ -1,5 +1,12 @@ config->inDebugMode()) { - $renderer->heading("Debug mode should not be enabled in production; this will cause javascript and stylesheets to be recompiled on each visit."); + $renderer->heading('Debug mode should not be enabled in production; this will cause javascript and stylesheets to be recompiled on each visit.'); } } } diff --git a/framework/core/src/Foundation/Info/Section/EnabledExtensions.php b/framework/core/src/Foundation/Info/Section/EnabledExtensions.php index 2f04e6a7c..e912fc12a 100644 --- a/framework/core/src/Foundation/Info/Section/EnabledExtensions.php +++ b/framework/core/src/Foundation/Info/Section/EnabledExtensions.php @@ -1,5 +1,12 @@ container->make('flarum.mail.configured_driver'); if ($driver instanceof NullDriver) { - $configured .= " (not active)"; + $configured .= ' (not active)'; } return $configured; diff --git a/framework/core/src/Foundation/Info/Section/PHP.php b/framework/core/src/Foundation/Info/Section/PHP.php index 974fc7e40..718d7388f 100644 --- a/framework/core/src/Foundation/Info/Section/PHP.php +++ b/framework/core/src/Foundation/Info/Section/PHP.php @@ -1,5 +1,12 @@