Clean up code.

This commit is contained in:
James Cole
2023-12-10 06:51:59 +01:00
parent c2b22a2bac
commit 46e130fdfe
195 changed files with 973 additions and 984 deletions

View File

@@ -25,21 +25,22 @@ namespace FireflyIII\Models;
use Carbon\Carbon;
use Eloquent;
use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
/**
* FireflyIII\Models\RuleAction
*
* @property int $id
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property int $rule_id
* @property int $rule_id
* @property string|null $action_type
* @property string|null $action_value
* @property int $order
* @property int $order
* @property bool $active
* @property bool $stop_processing
* @property-read Rule $rule
@@ -84,7 +85,7 @@ class RuleAction extends Model
/**
* @return Attribute
*/
protected function ruleId(): Attribute
protected function order(): Attribute
{
return Attribute::make(
get: static fn($value) => (int)$value,
@@ -94,7 +95,7 @@ class RuleAction extends Model
/**
* @return Attribute
*/
protected function order(): Attribute
protected function ruleId(): Attribute
{
return Attribute::make(
get: static fn($value) => (int)$value,