mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some code cleanup
This commit is contained in:
parent
060c9648f1
commit
441a8a8408
@ -237,6 +237,7 @@ class AttachmentHelper implements AttachmentHelperInterface
|
||||
|
||||
if (0 === $file->getSize()) {
|
||||
$this->errors->add('attachments', trans('validation.file_zero_length'));
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ class SearchRuleEngine implements RuleEngineInterface
|
||||
continue;
|
||||
}
|
||||
$contextSearch = $ruleTrigger->trigger_type;
|
||||
if(str_starts_with($ruleTrigger->trigger_type, '-')) {
|
||||
if (str_starts_with($ruleTrigger->trigger_type, '-')) {
|
||||
$contextSearch = substr($ruleTrigger->trigger_type, 1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user