mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 17:02:45 +08:00
Fix code style
This commit is contained in:
parent
69b517ea79
commit
051bb5acb8
|
@ -74,9 +74,9 @@ class Server extends AbstractServer
|
|||
|
||||
if (! $app->isInstalled()) {
|
||||
return $this->getInstallerMiddleware($pipe, $app);
|
||||
} else if ($app->isDownForMaintenance()) {
|
||||
} elseif ($app->isDownForMaintenance()) {
|
||||
return $this->getMaintenanceMiddleware($pipe);
|
||||
} else if (! $app->isUpToDate()) {
|
||||
} elseif (! $app->isUpToDate()) {
|
||||
return $this->getUpdaterMiddleware($pipe, $app);
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ class Server extends AbstractServer
|
|||
|
||||
if ($this->pathStartsWith($requestPath, $api)) {
|
||||
$pipe->pipe($api, $app->make('flarum.api.middleware'));
|
||||
} else if ($this->pathStartsWith($requestPath, $admin)) {
|
||||
} elseif ($this->pathStartsWith($requestPath, $admin)) {
|
||||
$pipe->pipe($admin, $app->make('flarum.admin.middleware'));
|
||||
} else {
|
||||
$pipe->pipe($forum, $app->make('flarum.forum.middleware'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user