Various code cleanup.

This commit is contained in:
James Cole
2017-06-05 11:12:50 +02:00
parent 64831b4c86
commit c4039b53e6
50 changed files with 274 additions and 217 deletions

View File

@@ -95,26 +95,6 @@ class JournalServiceProvider extends ServiceProvider
);
}
/**
*
*/
private function registerUpdater()
{
$this->app->bind(
JournalUpdateInterface::class,
function (Application $app) {
/** @var JournalUpdateInterface $tasker */
$update = app(JournalUpdate::class);
if ($app->auth->check()) {
$update->setUser(auth()->user());
}
return $update;
}
);
}
/**
*
*/
@@ -134,4 +114,24 @@ class JournalServiceProvider extends ServiceProvider
}
);
}
/**
*
*/
private function registerUpdater()
{
$this->app->bind(
JournalUpdateInterface::class,
function (Application $app) {
/** @var JournalUpdateInterface $tasker */
$update = app(JournalUpdate::class);
if ($app->auth->check()) {
$update->setUser(auth()->user());
}
return $update;
}
);
}
}