Code Duplication    Length = 12-12 lines in 2 locations

includes/class-sensei-templates.php 2 locations

@@ 152-163 (lines=12) @@
149
            $find[] = $file;
150
            $find[] = Sensei()->template_url . $file;
151
152
        } elseif ( is_single() && get_post_type() == 'course' ) {
153
154
            // possible backward compatible template include if theme overrides content-single-course.php
155
            // this template was removed in 1.9.0 and code all moved into the main single-course.php file
156
            self::locate_and_load_template_overrides( Sensei()->template_url . 'content-single-course.php', true );
157
158
            $file 	= 'single-course.php';
159
            $find[] = $file;
160
            $find[] = Sensei()->template_url . $file;
161
162
163
        } elseif ( is_single() && get_post_type() == 'lesson' ) {  // check
164
165
            // possible backward compatible template include if theme overrides content-single-lesson.php
166
            // this template was removed in 1.9.0 and code all moved into the main single-lesson.php file
@@ 173-184 (lines=12) @@
170
            $find[] = $file;
171
            $find[] = Sensei()->template_url . $file;
172
173
        } elseif ( is_single() && get_post_type() == 'quiz' ) {  // check
174
175
            // possible backward compatible template include if theme overrides content-single-quiz.php
176
            // this template was removed in 1.9.0 and code all moved into the main single-quiz.php file
177
            self::locate_and_load_template_overrides( Sensei()->template_url . 'content-single-quiz.php' , true);
178
179
            $file 	= 'single-quiz.php';
180
            $find[] = $file;
181
            $find[] = Sensei()->template_url . $file;
182
183
184
        } elseif ( is_single() && get_post_type() == 'sensei_message' ) { //// check
185
186
            // possible backward compatible template include if theme overrides content-single-message.php
187
            // this template was removed in 1.9.0 and code all moved into the main single-message.php file