Code Duplication    Length = 6-6 lines in 3 locations

app/Http/Controllers/Admin/AdminModuleController.php 3 locations

@@ 311-316 (lines=6) @@
308
        /**
309
         * Choose the view
310
         */
311
        if(empty($this->customView['index']) == TRUE){
312
            $view = $this->moduleBasicTemplatePath . '.index';
313
        }
314
        else{
315
            $view = $this->customView;
316
        }
317
318
        /**
319
         * Return page
@@ 334-339 (lines=6) @@
331
        /**
332
         * Choose the view
333
         */
334
        if(empty($this->customView['index']) == TRUE){
335
            $view = $this->moduleBasicTemplatePath . '.create_edit';
336
        }
337
        else{
338
            $view = $this->customView;
339
        }
340
        
341
        /**
342
         * Return page
@@ 471-476 (lines=6) @@
468
        /**
469
         * Choose the view
470
         */
471
        if(empty($this->customView['index']) == TRUE){
472
            $view = $this->moduleBasicTemplatePath . '.create_edit';
473
        }
474
        else{
475
            $view = $this->customView;
476
        }
477
478
        $arResults = $this->changeEditResultField($arResults);
479