Code Duplication    Length = 7-7 lines in 2 locations

Controller/AdminBlockController.php 1 location

@@ 118-124 (lines=7) @@
115
            $backToNodeList = true;
116
        }
117
118
        if (null !== $request->get('btn_create_and_create')) {
119
            $params = [];
120
            if ($this->admin->hasActiveSubClass()) {
121
                $params['subclass'] = $request->get('subclass');
122
            }
123
            $url = $this->admin->generateUrl('create', $params);
124
        }
125
126
        if ($this->getRestMethod() === 'DELETE') {
127
            $backToNodeList = true;

Controller/AdminNodeController.php 1 location

@@ 121-127 (lines=7) @@
118
            $backToNodeList = true;
119
        }
120
121
        if (null !== $request->get('btn_create_and_create')) {
122
            $params = [];
123
            if ($this->admin->hasActiveSubClass()) {
124
                $params['subclass'] = $request->get('subclass');
125
            }
126
            $url = $this->admin->generateUrl('create', $params);
127
        }
128
129
        if (null !== $request->get('btn_update_and_see_page') || null !== $request->get('btn_create_and_see_page')) {
130
            return $this->redirectToRoute('alpixel_cms', [