mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code cleanup.
This commit is contained in:
@@ -52,7 +52,7 @@ class JournalList implements BinderInterface
|
||||
$collector->withCategoryInformation()->withBudgetInformation()->withTagInformation()->withAccountInformation();
|
||||
$collector->setJournalIds($list);
|
||||
$result = $collector->getExtractedJournals();
|
||||
if (0 === count($result)) {
|
||||
if (empty($result)) {
|
||||
throw new NotFoundHttpException;
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ class JournalList implements BinderInterface
|
||||
protected static function parseList(string $value): array
|
||||
{
|
||||
$list = array_unique(array_map('\intval', explode(',', $value)));
|
||||
if (0 === count($list)) {
|
||||
if (empty($list)) {
|
||||
throw new NotFoundHttpException;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user