mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Some code cleanup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user