mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02:00
Fix code style
This commit is contained in:
@@ -74,9 +74,9 @@ class Server extends AbstractServer
|
|||||||
|
|
||||||
if (! $app->isInstalled()) {
|
if (! $app->isInstalled()) {
|
||||||
return $this->getInstallerMiddleware($pipe, $app);
|
return $this->getInstallerMiddleware($pipe, $app);
|
||||||
} else if ($app->isDownForMaintenance()) {
|
} elseif ($app->isDownForMaintenance()) {
|
||||||
return $this->getMaintenanceMiddleware($pipe);
|
return $this->getMaintenanceMiddleware($pipe);
|
||||||
} else if (! $app->isUpToDate()) {
|
} elseif (! $app->isUpToDate()) {
|
||||||
return $this->getUpdaterMiddleware($pipe, $app);
|
return $this->getUpdaterMiddleware($pipe, $app);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ class Server extends AbstractServer
|
|||||||
|
|
||||||
if ($this->pathStartsWith($requestPath, $api)) {
|
if ($this->pathStartsWith($requestPath, $api)) {
|
||||||
$pipe->pipe($api, $app->make('flarum.api.middleware'));
|
$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'));
|
$pipe->pipe($admin, $app->make('flarum.admin.middleware'));
|
||||||
} else {
|
} else {
|
||||||
$pipe->pipe($forum, $app->make('flarum.forum.middleware'));
|
$pipe->pipe($forum, $app->make('flarum.forum.middleware'));
|
||||||
|
Reference in New Issue
Block a user