fix phpstan warnings

This commit is contained in:
James Cole
2025-01-03 15:53:10 +01:00
parent d95f3ca59f
commit fe4d139817
173 changed files with 374 additions and 360 deletions

View File

@@ -90,7 +90,7 @@ trait AccountServiceTrait
/**
* Update metadata for account. Depends on type which fields are valid.
*
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings("PHPMD.NPathComplexity")
*
* TODO this method treats expense accounts and liabilities the same way (tries to save interest)
*/

View File

@@ -236,9 +236,9 @@ class CreditRecalculateService
/**
* A complex and long method, but rarely used luckily.
*
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
* @SuppressWarnings("PHPMD.NPathComplexity")
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
*/
private function processTransaction(Account $account, string $direction, Transaction $transaction, string $leftOfDebt): string
{

View File

@@ -91,7 +91,7 @@ trait RecurringTransactionTrait
*
* @throws FireflyException
*
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings("PHPMD.NPathComplexity")
*/
protected function createTransactions(Recurrence $recurrence, array $transactions): void
{

View File

@@ -131,7 +131,7 @@ class BillUpdateService
}
/**
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings("PHPMD.NPathComplexity")
*/
private function updateBillProperties(Bill $bill, array $data): Bill
{

View File

@@ -250,8 +250,8 @@ class RecurrenceUpdateService
/**
* It's a complex method but nothing surprising.
*
* @SuppressWarnings(PHPMD.NPathComplexity)
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings("PHPMD.NPathComplexity")
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
*/
private function updateCombination(Recurrence $recurrence, array $combination): void
{

View File

@@ -49,7 +49,7 @@ class StandardWebhookSender implements WebhookSenderInterface
/**
* @throws GuzzleException
*
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
*/
public function send(): void
{