1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Use more honest method names

This commit is contained in:
Franz Liedke
2018-08-21 23:46:02 +02:00
parent 72ba76b825
commit 554322f0b8

View File

@@ -47,9 +47,9 @@ class InstalledApp implements AppInterface
public function getRequestHandler()
{
if ($this->inMaintenanceMode()) {
return $this->getMaintenanceMiddleware();
return $this->getMaintenanceHandler();
} elseif ($this->needsUpdate()) {
return $this->getUpdaterMiddleware();
return $this->getUpdaterHandler();
}
$pipe = new MiddlewarePipe;
@@ -69,7 +69,7 @@ class InstalledApp implements AppInterface
/**
* @return \Psr\Http\Server\RequestHandlerInterface
*/
private function getMaintenanceMiddleware()
private function getMaintenanceHandler()
{
$pipe = new MiddlewarePipe;
@@ -95,7 +95,7 @@ class InstalledApp implements AppInterface
/**
* @return \Psr\Http\Server\RequestHandlerInterface
*/
public function getUpdaterMiddleware()
public function getUpdaterHandler()
{
$pipe = new MiddlewarePipe;
$pipe->pipe(