Use more honest method names

This commit is contained in:
Franz Liedke 2018-08-21 23:46:02 +02:00
parent 973fbcf17b
commit 7439069fe2
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

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