Code Duplication    Length = 7-7 lines in 2 locations

src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php 1 location

@@ 207-213 (lines=7) @@
204
        $pagesSelect = array_map(function ($item) {
205
            return $item['name'];
206
        }, $parentPages);
207
        if (count($pagesSelect) > 0) {
208
            $this->assistant->writeLine('');
209
            $parentPageIds = $this->assistant->askSelect('Which existing page(s) can have the new page as sub-page (multiple possible, separated by comma)', $pagesSelect, null, true);
210
            foreach ($parentPageIds as $id) {
211
                $this->parentPages[] = $parentPages[$id]['path'];
212
            }
213
        }
214
215
        // Ask if you want to generate form pageparts.
216
        $this->generateFormPageParts = $this->assistant->askConfirmation('Do you want to generate default form pageparts in your bundle? (y/n)', 'y');

src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php 1 location

@@ 223-229 (lines=7) @@
220
        $pagesSelect = array_map(function ($item) {
221
            return $item['name'];
222
        }, $parentPages);
223
        if (count($pagesSelect) > 0) {
224
            $this->assistant->writeLine('');
225
            $parentPageIds = $this->assistant->askSelect('Which existing page(s) can have the new page as sub-page (multiple possible, separated by comma)', $pagesSelect, null, true);
226
            foreach ($parentPageIds as $id) {
227
                $this->parentPages[] = $parentPages[$id]['path'];
228
            }
229
        }
230
    }
231
232
    /**