From fd4239ae57d9355f524884ded65a6a1668d8d512 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Thu, 25 Jun 2020 16:52:04 +0200 Subject: [PATCH] Cleanup --- src/App.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.php b/src/App.php index e369756..9c3edd8 100644 --- a/src/App.php +++ b/src/App.php @@ -29,7 +29,6 @@ use Psr\Container\ContainerInterface; use Psr\Http\Message\ResponseInterface; use Slim; use Slim\Factory\AppFactory; -use Symfony\Component\Yaml\Yaml; use Twig; use Twig\Loader\FilesystemLoader; @@ -293,17 +292,18 @@ class App { if (!self::$isInitialised) { $calledClass = get_called_class(); - /** @var $tempApp App */ + /** @var App $tempApp */ $tempApp = new $calledClass($options); /** @var ConfigurationService $config */ $config = $tempApp->get(ConfigurationService::class); $configCoreClass = $config->getCore(); - if($configCoreClass != get_called_class()){ + if ($configCoreClass != get_called_class()) { self::$instance = new $configCoreClass($options); - }else { + } else { self::$instance = $tempApp; } } + return self::$instance; }