mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some cleaning up [skip ci]
This commit is contained in:
parent
dfbe6e5b6e
commit
edf9dbc6e8
@ -53,16 +53,4 @@ class Kernel extends ConsoleKernel
|
|||||||
UpgradeFireflyInstructions::class,
|
UpgradeFireflyInstructions::class,
|
||||||
VerifyDatabase::class,
|
VerifyDatabase::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* Define the application's command schedule.
|
|
||||||
*
|
|
||||||
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
protected function schedule(Schedule $schedule)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,7 @@ class CsvExporter extends BasicExporter implements ExporterInterface
|
|||||||
$rows = [];
|
$rows = [];
|
||||||
|
|
||||||
// add header:
|
// add header:
|
||||||
|
/** @var Entry $first */
|
||||||
$first = $this->getEntries()->first();
|
$first = $this->getEntries()->first();
|
||||||
$rows[] = array_keys(get_object_vars($first));
|
$rows[] = array_keys(get_object_vars($first));
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace FireflyIII\Providers;
|
namespace FireflyIII\Providers;
|
||||||
|
|
||||||
use Auth;
|
|
||||||
use FireflyIII\Exceptions\FireflyException;
|
use FireflyIII\Exceptions\FireflyException;
|
||||||
use Illuminate\Foundation\Application;
|
use Illuminate\Foundation\Application;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
@ -34,10 +33,10 @@ class JournalServiceProvider extends ServiceProvider
|
|||||||
$this->app->bind(
|
$this->app->bind(
|
||||||
'FireflyIII\Repositories\Journal\JournalRepositoryInterface',
|
'FireflyIII\Repositories\Journal\JournalRepositoryInterface',
|
||||||
function (Application $app, array $arguments) {
|
function (Application $app, array $arguments) {
|
||||||
if (!isset($arguments[0]) && Auth::check()) {
|
if (!isset($arguments[0]) && $app->auth->check()) {
|
||||||
return app('FireflyIII\Repositories\Journal\JournalRepository', [Auth::user()]);
|
return app('FireflyIII\Repositories\Journal\JournalRepository', [$app->auth->user()]);
|
||||||
} else {
|
} else {
|
||||||
if (!isset($arguments[0]) && !Auth::check()) {
|
if (!isset($arguments[0]) && !$app->auth->check()) {
|
||||||
throw new FireflyException('There is no user present.');
|
throw new FireflyException('There is no user present.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user