From b5fa3576815b5abb28a547bff249bb3fcc4d3208 Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Sat, 20 Jun 2015 20:58:19 +0200 Subject: [PATCH] - Removed unused if statement --- src/IPub/Widgets/WidgetsManager.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; }