Unrelated code cleanup.

This commit is contained in:
James Cole
2017-12-16 19:48:31 +01:00
parent 8176356509
commit 1d58d519a0
19 changed files with 52 additions and 50 deletions

View File

@@ -45,28 +45,6 @@ class ReportFormRequest extends Request
return auth()->check();
}
/**
* @return Collection
*/
public function getExpenseList(): Collection
{
// fixed
/** @var AccountRepositoryInterface $repository */
$repository = app(AccountRepositoryInterface::class);
$set = $this->get('exp_rev');
$collection = new Collection;
if (is_array($set)) {
foreach ($set as $accountId) {
$account = $repository->find(intval($accountId));
if (null !== $account->id) {
$collection->push($account);
}
}
}
return $collection;
}
/**
* @return Collection
*/
@@ -152,6 +130,28 @@ class ReportFormRequest extends Request
return $date;
}
/**
* @return Collection
*/
public function getExpenseList(): Collection
{
// fixed
/** @var AccountRepositoryInterface $repository */
$repository = app(AccountRepositoryInterface::class);
$set = $this->get('exp_rev');
$collection = new Collection;
if (is_array($set)) {
foreach ($set as $accountId) {
$account = $repository->find(intval($accountId));
if (null !== $account->id) {
$collection->push($account);
}
}
}
return $collection;
}
/**
* @return Carbon
*