Code Duplication    Length = 12-13 lines in 2 locations

src/Renderer/Layout.php 2 locations

@@ 99-111 (lines=13) @@
96
                    );
97
                }
98
                break;
99
            case NodeType::TAXONOMY:
100
                $layouts = [
101
                    // 'taxonomy/$singular.html.twig',
102
                    '_default/taxonomy.html.twig',
103
                    '_default/list.html.twig',
104
                ];
105
                if ($page->getVariable('singular')) {
106
                    $layouts = array_merge(
107
                        [sprintf('taxonomy/%s.html.twig', $page->getVariable('singular'))],
108
                        $layouts
109
                    );
110
                }
111
                break;
112
            case NodeType::TERMS:
113
                $layouts = [
114
                    // 'taxonomy/$singular.terms.html.twig',
@@ 112-123 (lines=12) @@
109
                    );
110
                }
111
                break;
112
            case NodeType::TERMS:
113
                $layouts = [
114
                    // 'taxonomy/$singular.terms.html.twig',
115
                    '_default/terms.html.twig',
116
                ];
117
                if ($page->getVariable('singular')) {
118
                    $layouts = array_merge(
119
                        [sprintf('taxonomy/%s.terms.html.twig', $page->getVariable('singular'))],
120
                        $layouts
121
                    );
122
                }
123
                break;
124
            default:
125
                $layouts = [
126
                    // '$section/$layout.twig',