mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 22:58:09 +00:00
Code clean up and reformat.
This commit is contained in:
@@ -16,8 +16,8 @@ class JsonController extends BaseController
|
||||
{
|
||||
/** @var \FireflyIII\Database\Category $categories */
|
||||
$categories = App::make('FireflyIII\Database\Category');
|
||||
$list = $categories->get();
|
||||
$return = [];
|
||||
$list = $categories->get();
|
||||
$return = [];
|
||||
foreach ($list as $entry) {
|
||||
$return[] = $entry->name;
|
||||
}
|
||||
@@ -36,8 +36,8 @@ class JsonController extends BaseController
|
||||
{
|
||||
/** @var \FireflyIII\Database\Account $accounts */
|
||||
$accounts = App::make('FireflyIII\Database\Account');
|
||||
$list = $accounts->getExpenseAccounts();
|
||||
$return = [];
|
||||
$list = $accounts->getExpenseAccounts();
|
||||
$return = [];
|
||||
foreach ($list as $entry) {
|
||||
$return[] = $entry->name;
|
||||
}
|
||||
@@ -53,8 +53,8 @@ class JsonController extends BaseController
|
||||
{
|
||||
/** @var \FireflyIII\Database\Account $accounts */
|
||||
$accounts = App::make('FireflyIII\Database\Account');
|
||||
$list = $accounts->getRevenueAccounts();
|
||||
$return = [];
|
||||
$list = $accounts->getRevenueAccounts();
|
||||
$return = [];
|
||||
foreach ($list as $entry) {
|
||||
$return[] = $entry->name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user