NOW MANAGED ON CODEBERG
PHPStan and StyleCI fixes
Dan Brown078e8e7dc3ee
diff --git a/app/Actions/WebhookFormatter.php b/app/Actions/WebhookFormatter.phpindex 5b64a747a..bd0b6853a 100644--- a/app/Actions/WebhookFormatter.php+++ b/app/Actions/WebhookFormatter.php@@ -116,7 +116,7 @@ class WebhookFormatterpublic static function getDefault(string $event, Webhook $webhook, $detail, User $initiator, int $initiatedTime): self{- $instance = new static($event, $webhook, $detail, $initiator, $initiatedTime);+ $instance = new self($event, $webhook, $detail, $initiator, $initiatedTime);$instance->addDefaultModelFormatters();return $instance;diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.phpindex 3d1c184cd..598058ef4 100644--- a/app/Http/Controllers/SettingController.php+++ b/app/Http/Controllers/SettingController.php@@ -67,7 +67,7 @@ class SettingController extends Controller}// Clear logo image if requested- if ($category === 'customization' && $request->get('app_logo_reset', null)) {+ if ($category === 'customization' && $request->get('app_logo_reset', null)) {$this->imageRepo->destroyByType('system');setting()->remove('app-logo');}diff --git a/phpstan.neon.dist b/phpstan.neon.distindex f3aa47e12..ff184f7cd 100644--- a/phpstan.neon.dist+++ b/phpstan.neon.dist@@ -9,7 +9,7 @@ parameters:# The level 8 is the highest levellevel: 1- phpVersion: 70300+ phpVersion: 70400bootstrapFiles:- bootstrap/phpstan.phpdiff --git a/resources/views/settings/customization.blade.php b/resources/views/settings/customization.blade.phpindex 5c6841be2..2bc3531d7 100644--- a/resources/views/settings/customization.blade.php+++ b/resources/views/settings/customization.blade.php@@ -1,7 +1,7 @@@extends('settings.layout')@section('card')- <h1 id="customization" class="list-heading">{{ trans('settings.app_customization') }}</h2>+ <h1 id="customization" class="list-heading">{{ trans('settings.app_customization') }}</h1><form action="{{ url("/settings/customization") }}" method="POST" enctype="multipart/form-data">{!! csrf_field() !!}<input type="hidden" name="section" value="customization">diff --git a/resources/views/settings/registration.blade.php b/resources/views/settings/registration.blade.phpindex 721839b9b..e60704aeb 100644--- a/resources/views/settings/registration.blade.php+++ b/resources/views/settings/registration.blade.php@@ -1,7 +1,7 @@@extends('settings.layout')@section('card')- <h1 id="registration" class="list-heading">{{ trans('settings.reg_settings') }}</h2>+ <h1 id="registration" class="list-heading">{{ trans('settings.reg_settings') }}</h1><form action="{{ url("/settings/registration") }}" method="POST">{!! csrf_field() !!}<input type="hidden" name="section" value="registration">diff --git a/tests/Settings/SettingsTest.php b/tests/Settings/SettingsTest.phpindex 5d8c36996..bef354dac 100644--- a/tests/Settings/SettingsTest.php+++ b/tests/Settings/SettingsTest.php@@ -17,9 +17,9 @@ class SettingsTest extends TestCase{$this->asAdmin();$categories = [- 'features' => 'Features & Security',+ 'features' => 'Features & Security','customization' => 'Customization',- 'registration' => 'Registration',+ 'registration' => 'Registration',];foreach ($categories as $category => $title) {@@ -36,4 +36,4 @@ class SettingsTest extends TestCase$resp->assertStatus(404);$resp->assertSee('Page Not Found');}-}\ No newline at end of file+}