From 8e7b056b849100f9fb9f6b5d9e177cd762d407e8 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Thu, 24 Sep 2015 16:27:00 +0200 Subject: [PATCH] Clean up unused variable Closes #501. --- framework/core/src/Support/ExtensionManager.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/framework/core/src/Support/ExtensionManager.php b/framework/core/src/Support/ExtensionManager.php index a09c182fd..a7022b899 100644 --- a/framework/core/src/Support/ExtensionManager.php +++ b/framework/core/src/Support/ExtensionManager.php @@ -53,7 +53,7 @@ class ExtensionManager $enabled[] = $extension; - $class = $this->load($extension); + $this->load($extension); $this->migrate($extension); @@ -130,10 +130,8 @@ class ExtensionManager if (file_exists($file = $this->getExtensionsDir() . '/' . $extension . '/bootstrap.php')) { $className = require $file; - $class = new $className($this->app); + $ext = new $className($this->app); } - - return $class; } protected function getExtensionsDir()