diff --git a/src/IPub/Widgets/WidgetsManager.php b/src/IPub/Widgets/WidgetsManager.php index dc62b2d..bf5d5c0 100644 --- a/src/IPub/Widgets/WidgetsManager.php +++ b/src/IPub/Widgets/WidgetsManager.php @@ -86,11 +86,7 @@ public function register(Widgets\IFactory $factory, $group = 'default') $type = $factory::WIDGET_TYPE; // Check if widget is already registered - if ($this->has($type, $group)) { - - - // If not, register new widget - } else { + if (!$this->has($type, $group)) { $this->widgets[$group][$type] = $factory; }