Various code cleanup.

This commit is contained in:
James Cole
2025-10-05 12:57:58 +02:00
parent 072212c112
commit 6341743cf9
169 changed files with 482 additions and 305 deletions

View File

@@ -165,7 +165,6 @@ class UserEventHandler
/**
* Set the demo user back to English.
*
* @throws FireflyException
*/
public function demoUserBackToEnglish(Login $event): void
{
@@ -183,7 +182,6 @@ class UserEventHandler
}
/**
* @throws FireflyException
*/
public function notifyNewIPAddress(DetectedNewIPAddress $event): void
{
@@ -448,7 +446,6 @@ class UserEventHandler
}
/**
* @throws FireflyException
*/
public function storeUserIPAddress(ActuallyLoggedIn $event): void
{

View File

@@ -31,6 +31,8 @@ use FireflyIII\Helpers\Update\UpdateTrait;
use FireflyIII\Models\Configuration;
use FireflyIII\Repositories\User\UserRepositoryInterface;
use Illuminate\Support\Facades\Log;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
/**
* Class VersionCheckEventHandler
@@ -42,7 +44,11 @@ class VersionCheckEventHandler
/**
* Checks with GitHub to see if there is a new version.
*
* @param RequestedVersionCheckStatus $event
*
* @throws ContainerExceptionInterface
* @throws FireflyException
* @throws NotFoundExceptionInterface
*/
#[Deprecated(message: '?')]
public function checkForUpdates(RequestedVersionCheckStatus $event): void
@@ -87,7 +93,11 @@ class VersionCheckEventHandler
}
/**
* @param RequestedVersionCheckStatus $event
*
* @throws FireflyException
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
protected function warnToCheckForUpdates(RequestedVersionCheckStatus $event): void
{