mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Various code cleanup.
This commit is contained in:
@@ -246,7 +246,7 @@ class Account extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
|
@@ -76,7 +76,7 @@ class AccountMeta extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
* @return mixed
|
||||
@@ -87,7 +87,7 @@ class AccountMeta extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
|
@@ -176,7 +176,7 @@ class Bill extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setAmountMaxAttribute($value): void
|
||||
{
|
||||
@@ -184,7 +184,7 @@ class Bill extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
|
@@ -84,7 +84,7 @@ class BudgetLimit extends Model
|
||||
*
|
||||
* @param string $value
|
||||
*
|
||||
* @return mixed
|
||||
* @return BudgetLimit
|
||||
* @throws NotFoundHttpException
|
||||
*/
|
||||
public static function routeBinder(string $value): BudgetLimit
|
||||
|
@@ -70,9 +70,10 @@ class Configuration extends Model
|
||||
protected $table = 'configuration';
|
||||
|
||||
/**
|
||||
* TODO can be replaced by native laravel code
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
@@ -84,7 +85,7 @@ class Configuration extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setDataAttribute($value): void
|
||||
{
|
||||
|
@@ -81,7 +81,7 @@ class LinkType extends Model
|
||||
/**
|
||||
* Route binder. Converts the key in the URL to the specified object (or throw 404).
|
||||
*
|
||||
* @param $value
|
||||
* @param string $value
|
||||
*
|
||||
* @throws NotFoundHttpException
|
||||
* @return LinkType
|
||||
|
@@ -181,7 +181,7 @@ class PiggyBank extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setTargetamountAttribute($value): void
|
||||
{
|
||||
|
@@ -37,7 +37,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
* @property int|null $transaction_journal_id
|
||||
* @property \Illuminate\Support\Carbon $date
|
||||
* @property string $amount
|
||||
* @property-read \FireflyIII\Models\PiggyBank $piggyBank
|
||||
* @property \FireflyIII\Models\PiggyBank $piggyBank
|
||||
* @property-read \FireflyIII\Models\TransactionJournal|null $transactionJournal
|
||||
* @method static Builder|PiggyBankEvent newModelQuery()
|
||||
* @method static Builder|PiggyBankEvent newQuery()
|
||||
@@ -81,7 +81,7 @@ class PiggyBankEvent extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setAmountAttribute($value): void
|
||||
{
|
||||
|
@@ -120,7 +120,7 @@ class PiggyBankRepetition extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setCurrentamountAttribute($value): void
|
||||
{
|
||||
|
@@ -48,10 +48,11 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
* @property bool $active
|
||||
* @property bool $stop_processing
|
||||
* @property bool $strict
|
||||
* @property-read string $action_value
|
||||
* @property-read Collection|RuleAction[] $ruleActions
|
||||
* @property-read int|null $rule_actions_count
|
||||
* @property-read RuleGroup $ruleGroup
|
||||
* @property-read Collection|RuleTrigger[] $ruleTriggers
|
||||
* @property Collection|RuleTrigger[] $ruleTriggers
|
||||
* @property-read int|null $rule_triggers_count
|
||||
* @property-read User $user
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Rule newModelQuery()
|
||||
@@ -148,7 +149,7 @@ class Rule extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
|
@@ -230,7 +230,7 @@ class Transaction extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setAmountAttribute($value): void
|
||||
{
|
||||
|
@@ -81,7 +81,7 @@ class TransactionJournalLink extends Model
|
||||
* @param string $value
|
||||
*
|
||||
* @throws NotFoundHttpException
|
||||
* @return mixed
|
||||
* @return TransactionJournalLink
|
||||
*
|
||||
*/
|
||||
public static function routeBinder(string $value): TransactionJournalLink
|
||||
|
@@ -79,7 +79,7 @@ class TransactionJournalMeta extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
@@ -91,7 +91,7 @@ class TransactionJournalMeta extends Model
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param $value
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function setDataAttribute($value): void
|
||||
{
|
||||
|
@@ -79,7 +79,7 @@ class TransactionType extends Model
|
||||
* @param string $type
|
||||
*
|
||||
* @throws NotFoundHttpException
|
||||
* @return Model|null|static
|
||||
* @return TransactionType
|
||||
*/
|
||||
public static function routeBinder(string $type): TransactionType
|
||||
{
|
||||
|
Reference in New Issue
Block a user