Various code cleanup.

This commit is contained in:
James Cole
2021-04-07 07:53:05 +02:00
parent 49013264d5
commit eddf0c1200
50 changed files with 138 additions and 152 deletions

View File

@@ -246,7 +246,7 @@ class Account extends Model
/**
* @codeCoverageIgnore
*
* @param $value
* @param mixed $value
*
* @codeCoverageIgnore
*/

View File

@@ -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
*/

View File

@@ -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
*/

View File

@@ -84,7 +84,7 @@ class BudgetLimit extends Model
*
* @param string $value
*
* @return mixed
* @return BudgetLimit
* @throws NotFoundHttpException
*/
public static function routeBinder(string $value): BudgetLimit

View File

@@ -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
{

View File

@@ -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

View File

@@ -181,7 +181,7 @@ class PiggyBank extends Model
/**
* @codeCoverageIgnore
*
* @param $value
* @param mixed $value
*/
public function setTargetamountAttribute($value): void
{

View File

@@ -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
{

View File

@@ -120,7 +120,7 @@ class PiggyBankRepetition extends Model
/**
* @codeCoverageIgnore
*
* @param $value
* @param mixed $value
*/
public function setCurrentamountAttribute($value): void
{

View File

@@ -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
*/

View File

@@ -230,7 +230,7 @@ class Transaction extends Model
/**
* @codeCoverageIgnore
*
* @param $value
* @param mixed $value
*/
public function setAmountAttribute($value): void
{

View File

@@ -81,7 +81,7 @@ class TransactionJournalLink extends Model
* @param string $value
*
* @throws NotFoundHttpException
* @return mixed
* @return TransactionJournalLink
*
*/
public static function routeBinder(string $value): TransactionJournalLink

View File

@@ -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
{

View File

@@ -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
{