mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 06:01:21 +00:00
Code cleanup
This commit is contained in:
@@ -327,7 +327,7 @@ trait AttachmentCollection
|
||||
foreach ($transaction['attachments'] as $attachment) {
|
||||
/** @var null|Attachment $object */
|
||||
$object = auth()->user()->attachments()->find($attachment['id']);
|
||||
$notes = (string)$object?->notes()->first()?->text;
|
||||
$notes = (string) $object?->notes()->first()?->text;
|
||||
|
||||
return '' !== $notes && $notes === $value;
|
||||
}
|
||||
@@ -351,7 +351,7 @@ trait AttachmentCollection
|
||||
foreach ($transaction['attachments'] as $attachment) {
|
||||
/** @var null|Attachment $object */
|
||||
$object = auth()->user()->attachments()->find($attachment['id']);
|
||||
$notes = (string)$object?->notes()->first()?->text;
|
||||
$notes = (string) $object?->notes()->first()?->text;
|
||||
|
||||
return '' !== $notes && $notes !== $value;
|
||||
}
|
||||
@@ -375,7 +375,7 @@ trait AttachmentCollection
|
||||
foreach ($transaction['attachments'] as $attachment) {
|
||||
/** @var null|Attachment $object */
|
||||
$object = auth()->user()->attachments()->find($attachment['id']);
|
||||
$notes = (string)$object?->notes()->first()?->text;
|
||||
$notes = (string) $object?->notes()->first()?->text;
|
||||
|
||||
return '' !== $notes && str_contains(strtolower($notes), strtolower($value));
|
||||
}
|
||||
@@ -399,7 +399,7 @@ trait AttachmentCollection
|
||||
foreach ($transaction['attachments'] as $attachment) {
|
||||
/** @var null|Attachment $object */
|
||||
$object = auth()->user()->attachments()->find($attachment['id']);
|
||||
$notes = (string)$object?->notes()->first()?->text;
|
||||
$notes = (string) $object?->notes()->first()?->text;
|
||||
|
||||
return '' !== $notes && !str_contains(strtolower($notes), strtolower($value));
|
||||
}
|
||||
@@ -423,7 +423,7 @@ trait AttachmentCollection
|
||||
foreach ($transaction['attachments'] as $attachment) {
|
||||
/** @var null|Attachment $object */
|
||||
$object = auth()->user()->attachments()->find($attachment['id']);
|
||||
$notes = (string)$object?->notes()->first()?->text;
|
||||
$notes = (string) $object?->notes()->first()?->text;
|
||||
|
||||
return '' !== $notes && !str_ends_with(strtolower($notes), strtolower($value));
|
||||
}
|
||||
@@ -447,7 +447,7 @@ trait AttachmentCollection
|
||||
foreach ($transaction['attachments'] as $attachment) {
|
||||
/** @var null|Attachment $object */
|
||||
$object = auth()->user()->attachments()->find($attachment['id']);
|
||||
$notes = (string)$object?->notes()->first()?->text;
|
||||
$notes = (string) $object?->notes()->first()?->text;
|
||||
|
||||
return '' !== $notes && !str_starts_with(strtolower($notes), strtolower($value));
|
||||
}
|
||||
@@ -471,7 +471,7 @@ trait AttachmentCollection
|
||||
foreach ($transaction['attachments'] as $attachment) {
|
||||
/** @var null|Attachment $object */
|
||||
$object = auth()->user()->attachments()->find($attachment['id']);
|
||||
$notes = (string)$object?->notes()->first()?->text;
|
||||
$notes = (string) $object?->notes()->first()?->text;
|
||||
|
||||
return '' !== $notes && str_ends_with(strtolower($notes), strtolower($value));
|
||||
}
|
||||
@@ -495,7 +495,7 @@ trait AttachmentCollection
|
||||
foreach ($transaction['attachments'] as $attachment) {
|
||||
/** @var null|Attachment $object */
|
||||
$object = auth()->user()->attachments()->find($attachment['id']);
|
||||
$notes = (string)$object?->notes()->first()?->text;
|
||||
$notes = (string) $object?->notes()->first()?->text;
|
||||
|
||||
return '' !== $notes && str_starts_with(strtolower($notes), strtolower($value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user