Code Duplication    Length = 6-6 lines in 3 locations

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

@@ 281-286 (lines=6) @@
278
        /**
279
         * Choose the view
280
         */
281
        if(empty($this->customView['index']) == TRUE){
282
            $view = $this->moduleBasicTemplatePath . '.index';
283
        }
284
        else{
285
            $view = $this->customView;
286
        }
287
288
289
        /**
@@ 305-310 (lines=6) @@
302
        /**
303
         * Choose the view
304
         */
305
        if(empty($this->customView['index']) == TRUE){
306
            $view = $this->moduleBasicTemplatePath . '.create_edit';
307
        }
308
        else{
309
            $view = $this->customView;
310
        }
311
        
312
        /**
313
         * Return page
@@ 432-437 (lines=6) @@
429
        /**
430
         * Choose the view
431
         */
432
        if(empty($this->customView['index']) == TRUE){
433
            $view = $this->moduleBasicTemplatePath . '.create_edit';
434
        }
435
        else{
436
            $view = $this->customView;
437
        }
438
439
        $arResults = $this->changeEditResultField($arResults);
440