Code Duplication    Length = 3-3 lines in 2 locations

Bundle/WidgetMapBundle/Manager/WidgetMapManager.php 2 locations

@@ 104-106 (lines=3) @@
101
102
        foreach ($parentWidgetMapChildren['views'] as $_view) {
103
            if ($_view !== $view) {
104
                if (isset($parentWidgetMapChildren['before'][$_view->getId()]) && $parentWidgetMapChildren['before'][$_view->getId()]->getPosition() == $widgetMap->getPosition()) {
105
                    $parentWidgetMapChildren['before'][$_view->getId()]->setParent($widgetMap);
106
                }
107
                if (isset($parentWidgetMapChildren['after'][$_view->getId()]) && $parentWidgetMapChildren['after'][$_view->getId()]->getPosition() == $widgetMap->getPosition()) {
108
                    $parentWidgetMapChildren['after'][$_view->getId()]->setParent($widgetMap);
109
                }
@@ 107-109 (lines=3) @@
104
                if (isset($parentWidgetMapChildren['before'][$_view->getId()]) && $parentWidgetMapChildren['before'][$_view->getId()]->getPosition() == $widgetMap->getPosition()) {
105
                    $parentWidgetMapChildren['before'][$_view->getId()]->setParent($widgetMap);
106
                }
107
                if (isset($parentWidgetMapChildren['after'][$_view->getId()]) && $parentWidgetMapChildren['after'][$_view->getId()]->getPosition() == $widgetMap->getPosition()) {
108
                    $parentWidgetMapChildren['after'][$_view->getId()]->setParent($widgetMap);
109
                }
110
            }
111
        }
112
    }