mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix phpstan issues.
This commit is contained in:
parent
fe4d139817
commit
3898c0c0ef
@ -44,7 +44,7 @@ use Symfony\Component\HttpFoundation\ParameterBag;
|
|||||||
/**
|
/**
|
||||||
* Class Controller.
|
* Class Controller.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
|
||||||
* @SuppressWarnings(PHPMD.NumberOfChildren)
|
* @SuppressWarnings(PHPMD.NumberOfChildren)
|
||||||
*/
|
*/
|
||||||
abstract class Controller extends BaseController
|
abstract class Controller extends BaseController
|
||||||
|
@ -47,7 +47,7 @@ use Symfony\Component\HttpFoundation\ParameterBag;
|
|||||||
/**
|
/**
|
||||||
* Class Controller
|
* Class Controller
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
|
||||||
* @SuppressWarnings(PHPMD.NumberOfChildren)
|
* @SuppressWarnings(PHPMD.NumberOfChildren)
|
||||||
*/
|
*/
|
||||||
class Controller extends BaseController
|
class Controller extends BaseController
|
||||||
|
@ -36,11 +36,6 @@ class CreatesDatabase extends Command
|
|||||||
|
|
||||||
protected $signature = 'firefly-iii:create-database';
|
protected $signature = 'firefly-iii:create-database';
|
||||||
|
|
||||||
/**
|
|
||||||
* Execute the console command.
|
|
||||||
*
|
|
||||||
* @suppressWarnings(PHPMD.MissingImport)
|
|
||||||
*/
|
|
||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
if ('mysql' !== config('database.default')) {
|
if ('mysql' !== config('database.default')) {
|
||||||
|
@ -54,7 +54,7 @@ use Illuminate\Support\Facades\Log;
|
|||||||
/**
|
/**
|
||||||
* Class TransactionJournalFactory
|
* Class TransactionJournalFactory
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
|
||||||
*/
|
*/
|
||||||
class TransactionJournalFactory
|
class TransactionJournalFactory
|
||||||
{
|
{
|
||||||
|
@ -38,7 +38,7 @@ use Route;
|
|||||||
/**
|
/**
|
||||||
* Class Controller.
|
* Class Controller.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
|
||||||
* @SuppressWarnings(PHPMD.NumberOfChildren)
|
* @SuppressWarnings(PHPMD.NumberOfChildren)
|
||||||
*/
|
*/
|
||||||
abstract class Controller extends BaseController
|
abstract class Controller extends BaseController
|
||||||
|
@ -40,7 +40,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperAccount
|
|
||||||
*/
|
*/
|
||||||
class Account extends Model
|
class Account extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperAccountBalance
|
|
||||||
*/
|
*/
|
||||||
class AccountBalance extends Model
|
class AccountBalance extends Model
|
||||||
{
|
{
|
||||||
|
@ -28,7 +28,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperAccountMeta
|
|
||||||
*/
|
*/
|
||||||
class AccountMeta extends Model
|
class AccountMeta extends Model
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperAccountType
|
|
||||||
*/
|
*/
|
||||||
class AccountType extends Model
|
class AccountType extends Model
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperAttachment
|
|
||||||
*/
|
*/
|
||||||
class Attachment extends Model
|
class Attachment extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperAuditLogEntry
|
|
||||||
*/
|
*/
|
||||||
class AuditLogEntry extends Model
|
class AuditLogEntry extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperAutoBudget
|
|
||||||
*/
|
*/
|
||||||
class AutoBudget extends Model
|
class AutoBudget extends Model
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperAvailableBudget
|
|
||||||
*/
|
*/
|
||||||
class AvailableBudget extends Model
|
class AvailableBudget extends Model
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperBill
|
|
||||||
*/
|
*/
|
||||||
class Bill extends Model
|
class Bill extends Model
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperBudget
|
|
||||||
*/
|
*/
|
||||||
class Budget extends Model
|
class Budget extends Model
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,6 @@ use Illuminate\Database\Eloquent\Relations\MorphMany;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperBudgetLimit
|
|
||||||
*/
|
*/
|
||||||
class BudgetLimit extends Model
|
class BudgetLimit extends Model
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperCategory
|
|
||||||
*/
|
*/
|
||||||
class Category extends Model
|
class Category extends Model
|
||||||
{
|
{
|
||||||
|
@ -28,7 +28,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperConfiguration
|
|
||||||
*/
|
*/
|
||||||
class Configuration extends Model
|
class Configuration extends Model
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperCurrencyExchangeRate
|
|
||||||
*/
|
*/
|
||||||
class CurrencyExchangeRate extends Model
|
class CurrencyExchangeRate extends Model
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperGroupMembership
|
|
||||||
*/
|
*/
|
||||||
class GroupMembership extends Model
|
class GroupMembership extends Model
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperInvitedUser
|
|
||||||
*/
|
*/
|
||||||
class InvitedUser extends Model
|
class InvitedUser extends Model
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperLinkType
|
|
||||||
*/
|
*/
|
||||||
class LinkType extends Model
|
class LinkType extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Relations\MorphMany;
|
|||||||
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperLocation
|
|
||||||
*/
|
*/
|
||||||
class Location extends Model
|
class Location extends Model
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,6 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperNote
|
|
||||||
*/
|
*/
|
||||||
class Note extends Model
|
class Note extends Model
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,6 @@ use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperObjectGroup
|
|
||||||
*/
|
*/
|
||||||
class ObjectGroup extends Model
|
class ObjectGroup extends Model
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperPiggyBank
|
|
||||||
*/
|
*/
|
||||||
class PiggyBank extends Model
|
class PiggyBank extends Model
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperPiggyBankEvent
|
|
||||||
*/
|
*/
|
||||||
class PiggyBankEvent extends Model
|
class PiggyBankEvent extends Model
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperPiggyBankRepetition
|
|
||||||
*/
|
*/
|
||||||
class PiggyBankRepetition extends Model
|
class PiggyBankRepetition extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperPreference
|
|
||||||
*/
|
*/
|
||||||
class Preference extends Model
|
class Preference extends Model
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRecurrence
|
|
||||||
*/
|
*/
|
||||||
class Recurrence extends Model
|
class Recurrence extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRecurrenceMeta
|
|
||||||
*/
|
*/
|
||||||
class RecurrenceMeta extends Model
|
class RecurrenceMeta extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRecurrenceRepetition
|
|
||||||
*/
|
*/
|
||||||
class RecurrenceRepetition extends Model
|
class RecurrenceRepetition extends Model
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,6 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRecurrenceTransaction
|
|
||||||
*/
|
*/
|
||||||
class RecurrenceTransaction extends Model
|
class RecurrenceTransaction extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRecurrenceTransactionMeta
|
|
||||||
*/
|
*/
|
||||||
class RecurrenceTransactionMeta extends Model
|
class RecurrenceTransactionMeta extends Model
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRole
|
|
||||||
*/
|
*/
|
||||||
class Role extends Model
|
class Role extends Model
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRule
|
|
||||||
*/
|
*/
|
||||||
class Rule extends Model
|
class Rule extends Model
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,6 @@ use Illuminate\Support\Facades\Log;
|
|||||||
use Symfony\Component\ExpressionLanguage\SyntaxError;
|
use Symfony\Component\ExpressionLanguage\SyntaxError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRuleAction
|
|
||||||
*/
|
*/
|
||||||
class RuleAction extends Model
|
class RuleAction extends Model
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRuleGroup
|
|
||||||
*/
|
*/
|
||||||
class RuleGroup extends Model
|
class RuleGroup extends Model
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperRuleTrigger
|
|
||||||
*/
|
*/
|
||||||
class RuleTrigger extends Model
|
class RuleTrigger extends Model
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperTag
|
|
||||||
*/
|
*/
|
||||||
class Tag extends Model
|
class Tag extends Model
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperTransaction
|
|
||||||
*/
|
*/
|
||||||
class Transaction extends Model
|
class Transaction extends Model
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperTransactionCurrency
|
|
||||||
*/
|
*/
|
||||||
class TransactionCurrency extends Model
|
class TransactionCurrency extends Model
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperTransactionGroup
|
|
||||||
*/
|
*/
|
||||||
class TransactionGroup extends Model
|
class TransactionGroup extends Model
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,6 @@ use FireflyIII\Enums\TransactionTypeEnum;
|
|||||||
use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
|
use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
|
||||||
use FireflyIII\Support\Models\ReturnsIntegerUserIdTrait;
|
use FireflyIII\Support\Models\ReturnsIntegerUserIdTrait;
|
||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
use Illuminate\Database\Eloquent\Builder;
|
|
||||||
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
|
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
|
||||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
@ -42,7 +41,9 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperTransactionJournal
|
* @method EloquentBuilder|static before()
|
||||||
|
* @method EloquentBuilder|static after()
|
||||||
|
* @method static EloquentBuilder|static query()
|
||||||
*/
|
*/
|
||||||
class TransactionJournal extends Model
|
class TransactionJournal extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\Relations\MorphMany;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperTransactionJournalLink
|
|
||||||
*/
|
*/
|
||||||
class TransactionJournalLink extends Model
|
class TransactionJournalLink extends Model
|
||||||
{
|
{
|
||||||
|
@ -30,7 +30,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperTransactionJournalMeta
|
|
||||||
*/
|
*/
|
||||||
class TransactionJournalMeta extends Model
|
class TransactionJournalMeta extends Model
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperTransactionType
|
|
||||||
*/
|
*/
|
||||||
class TransactionType extends Model
|
class TransactionType extends Model
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,6 @@ use Illuminate\Database\Eloquent\Relations\HasManyThrough;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperUserGroup
|
|
||||||
*/
|
*/
|
||||||
class UserGroup extends Model
|
class UserGroup extends Model
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperUserRole
|
|
||||||
*/
|
*/
|
||||||
class UserRole extends Model
|
class UserRole extends Model
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperWebhook
|
|
||||||
*/
|
*/
|
||||||
class Webhook extends Model
|
class Webhook extends Model
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,6 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperWebhookAttempt
|
|
||||||
*/
|
*/
|
||||||
class WebhookAttempt extends Model
|
class WebhookAttempt extends Model
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,6 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @mixin IdeHelperWebhookMessage
|
|
||||||
*/
|
*/
|
||||||
class WebhookMessage extends Model
|
class WebhookMessage extends Model
|
||||||
{
|
{
|
||||||
|
@ -105,7 +105,7 @@ use Laravel\Passport\Events\AccessTokenCreated;
|
|||||||
/**
|
/**
|
||||||
* Class EventServiceProvider.
|
* Class EventServiceProvider.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
|
||||||
*/
|
*/
|
||||||
class EventServiceProvider extends ServiceProvider
|
class EventServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
@ -79,7 +79,7 @@ use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
|||||||
/**
|
/**
|
||||||
* Class FireflyServiceProvider.
|
* Class FireflyServiceProvider.
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
|
||||||
*/
|
*/
|
||||||
class FireflyServiceProvider extends ServiceProvider
|
class FireflyServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
|
@ -214,7 +214,6 @@ class TagRepository implements TagRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function searchTags(string $query, int $limit): Collection
|
public function searchTags(string $query, int $limit): Collection
|
||||||
{
|
{
|
||||||
/** @var Collection $tags */
|
|
||||||
$tags = $this->user->tags()->orderBy('tag', 'ASC');
|
$tags = $this->user->tags()->orderBy('tag', 'ASC');
|
||||||
if ('' !== $query) {
|
if ('' !== $query) {
|
||||||
$search = sprintf('%%%s%%', $query);
|
$search = sprintf('%%%s%%', $query);
|
||||||
|
@ -106,10 +106,7 @@ class Amount
|
|||||||
/**
|
/**
|
||||||
* This method will properly format the given number, in color or "black and white",
|
* This method will properly format the given number, in color or "black and white",
|
||||||
* as a currency, given two things: the currency required and the current locale.
|
* as a currency, given two things: the currency required and the current locale.
|
||||||
*
|
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
|
||||||
* @SuppressWarnings(PHPMD.MissingImport)
|
|
||||||
*/
|
*/
|
||||||
public function formatFlat(string $symbol, int $decimalPlaces, string $amount, ?bool $coloured = null): string
|
public function formatFlat(string $symbol, int $decimalPlaces, string $amount, ?bool $coloured = null): string
|
||||||
{
|
{
|
||||||
@ -229,8 +226,6 @@ class Amount
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws FireflyException
|
* @throws FireflyException
|
||||||
*
|
|
||||||
* @SuppressWarnings(PHPMD.MissingImport)
|
|
||||||
*/
|
*/
|
||||||
private function getLocaleInfo(): array
|
private function getLocaleInfo(): array
|
||||||
{
|
{
|
||||||
|
@ -62,9 +62,6 @@ class Calculator
|
|||||||
return self::loadIntervalMap()->contains($periodicity);
|
return self::loadIntervalMap()->contains($periodicity);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @SuppressWarnings(PHPMD.MissingImport)
|
|
||||||
*/
|
|
||||||
private static function loadIntervalMap(): \SplObjectStorage
|
private static function loadIntervalMap(): \SplObjectStorage
|
||||||
{
|
{
|
||||||
if (null !== self::$intervalMap) {
|
if (null !== self::$intervalMap) {
|
||||||
|
@ -62,7 +62,7 @@ use Illuminate\Support\Collection;
|
|||||||
/**
|
/**
|
||||||
* Class OperatorQuerySearch
|
* Class OperatorQuerySearch
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
|
||||||
*/
|
*/
|
||||||
class OperatorQuerySearch implements SearchInterface
|
class OperatorQuerySearch implements SearchInterface
|
||||||
{
|
{
|
||||||
|
@ -166,11 +166,12 @@ class TransactionGroupTwig extends AbstractExtension
|
|||||||
private function normalJournalObjectAmount(TransactionJournal $journal): string
|
private function normalJournalObjectAmount(TransactionJournal $journal): string
|
||||||
{
|
{
|
||||||
$type = $journal->transactionType->type;
|
$type = $journal->transactionType->type;
|
||||||
|
/** @var Transaction $first */
|
||||||
$first = $journal->transactions()->where('amount', '<', 0)->first();
|
$first = $journal->transactions()->where('amount', '<', 0)->first();
|
||||||
$currency = $journal->transactionCurrency;
|
$currency = $journal->transactionCurrency;
|
||||||
$amount = $first->amount ?? '0';
|
$amount = $first->amount ?? '0';
|
||||||
$colored = true;
|
$colored = true;
|
||||||
$sourceType = $first->account()->first()->accountType()->first()->type;
|
$sourceType = $first->account->accountType()->first()->type;
|
||||||
|
|
||||||
$amount = $this->signAmount($amount, $type, $sourceType);
|
$amount = $this->signAmount($amount, $type, $sourceType);
|
||||||
|
|
||||||
@ -205,7 +206,7 @@ class TransactionGroupTwig extends AbstractExtension
|
|||||||
$currency = $first->foreignCurrency;
|
$currency = $first->foreignCurrency;
|
||||||
$amount = '' === $first->foreign_amount ? '0' : $first->foreign_amount;
|
$amount = '' === $first->foreign_amount ? '0' : $first->foreign_amount;
|
||||||
$colored = true;
|
$colored = true;
|
||||||
$sourceType = $first->account()->first()->accountType()->first()->type;
|
$sourceType = $first->account->accountType()->first()->type;
|
||||||
|
|
||||||
$amount = $this->signAmount($amount, $type, $sourceType);
|
$amount = $this->signAmount($amount, $type, $sourceType);
|
||||||
|
|
||||||
|
@ -66,9 +66,6 @@ use Laravel\Passport\HasApiTokens;
|
|||||||
use NotificationChannels\Pushover\PushoverReceiver;
|
use NotificationChannels\Pushover\PushoverReceiver;
|
||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
|
||||||
/**
|
|
||||||
* @mixin IdeHelperUser
|
|
||||||
*/
|
|
||||||
class User extends Authenticatable
|
class User extends Authenticatable
|
||||||
{
|
{
|
||||||
use HasApiTokens;
|
use HasApiTokens;
|
||||||
|
Loading…
Reference in New Issue
Block a user