diff --git a/src/FuzeWorks/Configurator.php b/src/FuzeWorks/Configurator.php index af22039..9e72214 100644 --- a/src/FuzeWorks/Configurator.php +++ b/src/FuzeWorks/Configurator.php @@ -403,9 +403,7 @@ class Configurator { Logger::logDebug("Adding directories for '" . $component . "'"); if (method_exists($container->{$component}, 'setDirectories')) - { $container->{$component}->setDirectories($priorityArray); - } } $container->initFactory(); diff --git a/src/FuzeWorks/Plugins.php b/src/FuzeWorks/Plugins.php index 5516055..5799d54 100644 --- a/src/FuzeWorks/Plugins.php +++ b/src/FuzeWorks/Plugins.php @@ -115,9 +115,7 @@ class Plugins // If directory does not exist, skip it if (!file_exists($pluginPath) || !is_dir($pluginPath)) - { continue; - } // Fetch the contents of the path $pluginPathContents = array_diff(scandir($pluginPath), array('..', '.')); @@ -126,9 +124,7 @@ class Plugins foreach ($pluginPathContents as $pluginFolder) { // @codeCoverageIgnoreStart if (!is_dir($pluginPath . DS . $pluginFolder)) - { continue; - } // @codeCoverageIgnoreEnd // If a header file exists, use it @@ -141,9 +137,7 @@ class Plugins require_once($file); $header = new $className(); if (!$header instanceof iPluginHeader) - { continue; - } // Load the header $this->loadHeader($header); @@ -249,7 +243,6 @@ class Plugins $prefix = $header->getClassesPrefix(); $filePath = dirname($headerReflection->getFileName()) . (!empty($header->getSourceDirectory()) ? DS . $header->getSourceDirectory() : ''); $pluginClass = $header->getPluginClass(); - if (!is_null($prefix) && !is_null($filePath)) { try { diff --git a/src/FuzeWorks/iComponent.php b/src/FuzeWorks/iComponent.php index 863d490..6dd91ff 100644 --- a/src/FuzeWorks/iComponent.php +++ b/src/FuzeWorks/iComponent.php @@ -34,10 +34,8 @@ * @version Version 1.2.0 */ - namespace FuzeWorks; - interface iComponent { public function getName(): string;