Code Duplication    Length = 3-3 lines in 2 locations

Bundle/WidgetMapBundle/Manager/WidgetMapManager.php 2 locations

@@ 95-97 (lines=3) @@
92
93
        foreach ($parentWidgetMapChildren['views'] as $_view) {
94
            if ($_view !== $view) {
95
                if (isset($parentWidgetMapChildren['before'][$_view->getId()]) && $parentWidgetMapChildren['before'][$_view->getId()]->getPosition() == $widgetMap->getPosition()) {
96
                    $parentWidgetMapChildren['before'][$_view->getId()]->setParent($widgetMap);
97
                }
98
                if (isset($parentWidgetMapChildren['after'][$_view->getId()]) && $parentWidgetMapChildren['after'][$_view->getId()]->getPosition() == $widgetMap->getPosition()) {
99
                    $parentWidgetMapChildren['after'][$_view->getId()]->setParent($widgetMap);
100
                }
@@ 98-100 (lines=3) @@
95
                if (isset($parentWidgetMapChildren['before'][$_view->getId()]) && $parentWidgetMapChildren['before'][$_view->getId()]->getPosition() == $widgetMap->getPosition()) {
96
                    $parentWidgetMapChildren['before'][$_view->getId()]->setParent($widgetMap);
97
                }
98
                if (isset($parentWidgetMapChildren['after'][$_view->getId()]) && $parentWidgetMapChildren['after'][$_view->getId()]->getPosition() == $widgetMap->getPosition()) {
99
                    $parentWidgetMapChildren['after'][$_view->getId()]->setParent($widgetMap);
100
                }
101
            }
102
        }
103
    }