mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Clean up some code.
This commit is contained in:
parent
d8d8002f1e
commit
e449395f3f
12
.ci/php-cs-fixer/composer.lock
generated
12
.ci/php-cs-fixer/composer.lock
generated
@ -226,16 +226,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "friendsofphp/php-cs-fixer",
|
"name": "friendsofphp/php-cs-fixer",
|
||||||
"version": "v3.47.1",
|
"version": "v3.48.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
|
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
|
||||||
"reference": "173c60d1eff911c9c54322704623a45561d3241d"
|
"reference": "a92472c6fb66349de25211f31c77eceae3df024e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/173c60d1eff911c9c54322704623a45561d3241d",
|
"url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/a92472c6fb66349de25211f31c77eceae3df024e",
|
||||||
"reference": "173c60d1eff911c9c54322704623a45561d3241d",
|
"reference": "a92472c6fb66349de25211f31c77eceae3df024e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -305,7 +305,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
|
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
|
||||||
"source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.47.1"
|
"source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.48.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@ -313,7 +313,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2024-01-16T18:54:21+00:00"
|
"time": "2024-01-19T21:44:39+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/container",
|
"name": "psr/container",
|
||||||
|
@ -99,28 +99,28 @@ class Transaction extends Model
|
|||||||
|
|
||||||
protected $casts
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
'identifier' => 'int',
|
'identifier' => 'int',
|
||||||
'encrypted' => 'boolean', // model does not have these fields though
|
'encrypted' => 'boolean', // model does not have these fields though
|
||||||
'bill_name_encrypted' => 'boolean',
|
'bill_name_encrypted' => 'boolean',
|
||||||
'reconciled' => 'boolean',
|
'reconciled' => 'boolean',
|
||||||
'date' => 'datetime',
|
'date' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable
|
protected $fillable
|
||||||
= [
|
= [
|
||||||
'account_id',
|
'account_id',
|
||||||
'transaction_journal_id',
|
'transaction_journal_id',
|
||||||
'description',
|
'description',
|
||||||
'amount',
|
'amount',
|
||||||
'identifier',
|
'identifier',
|
||||||
'transaction_currency_id',
|
'transaction_currency_id',
|
||||||
'foreign_currency_id',
|
'foreign_currency_id',
|
||||||
'foreign_amount',
|
'foreign_amount',
|
||||||
'reconciled',
|
'reconciled',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $hidden = ['encrypted'];
|
protected $hidden = ['encrypted'];
|
||||||
|
|
||||||
|
@ -299,6 +299,7 @@ class SearchRuleEngine implements RuleEngineInterface
|
|||||||
app('log')->debug(sprintf('Now at rule trigger #%d: %s:"%s" (%s).', $ruleTrigger->id, $ruleTrigger->trigger_type, $ruleTrigger->trigger_value, var_export($ruleTrigger->stop_processing, true)));
|
app('log')->debug(sprintf('Now at rule trigger #%d: %s:"%s" (%s).', $ruleTrigger->id, $ruleTrigger->trigger_type, $ruleTrigger->trigger_value, var_export($ruleTrigger->stop_processing, true)));
|
||||||
if (false === $ruleTrigger->active) {
|
if (false === $ruleTrigger->active) {
|
||||||
app('log')->debug('Trigger is not active, continue.');
|
app('log')->debug('Trigger is not active, continue.');
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ('user_action' === $ruleTrigger->trigger_type) {
|
if ('user_action' === $ruleTrigger->trigger_type) {
|
||||||
|
@ -342,21 +342,7 @@ class FireflyValidator extends Validator
|
|||||||
// these triggers need just the word "true":
|
// these triggers need just the word "true":
|
||||||
// TODO create a helper to automatically return these.
|
// TODO create a helper to automatically return these.
|
||||||
$needTrue = [
|
$needTrue = [
|
||||||
'reconciled',
|
'reconciled', 'has_attachments', 'has_any_category', 'has_any_budget', 'has_any_bill', 'has_any_tag', 'any_notes', 'any_external_url', 'has_no_attachments', 'has_no_category', 'has_no_budget', 'has_no_bill', 'has_no_tag', 'no_notes', 'no_external_url',
|
||||||
'has_attachments',
|
|
||||||
'has_any_category',
|
|
||||||
'has_any_budget',
|
|
||||||
'has_any_bill',
|
|
||||||
'has_any_tag',
|
|
||||||
'any_notes',
|
|
||||||
'any_external_url',
|
|
||||||
'has_no_attachments',
|
|
||||||
'has_no_category',
|
|
||||||
'has_no_budget',
|
|
||||||
'has_no_bill',
|
|
||||||
'has_no_tag',
|
|
||||||
'no_notes',
|
|
||||||
'no_external_url',
|
|
||||||
'source_is_cash',
|
'source_is_cash',
|
||||||
'destination_is_cash',
|
'destination_is_cash',
|
||||||
'account_is_cash',
|
'account_is_cash',
|
||||||
|
Loading…
Reference in New Issue
Block a user