Code Duplication    Length = 10-10 lines in 5 locations

modules/feedback/controllers/ManagementController.php 1 location

@@ 56-65 (lines=10) @@
53
     *
54
     * @return mixed
55
     */
56
    public function actionIndex()
57
    {
58
        $searchModel = new FeedbackSearch();
59
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
60
61
        return $this->render('index', [
62
            'searchModel' => $searchModel,
63
            'dataProvider' => $dataProvider,
64
        ]);
65
    }
66
67
    /**
68
     * Displays a single Feedback model.

modules/mailTemplate/controllers/ManagementController.php 1 location

@@ 42-51 (lines=10) @@
39
     *
40
     * @return mixed
41
     */
42
    public function actionIndex()
43
    {
44
        $searchModel = new SearchMailTemplate();
45
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
46
47
        return $this->render('index', [
48
            'searchModel' => $searchModel,
49
            'dataProvider' => $dataProvider,
50
        ]);
51
    }
52
53
    /**
54
     * Displays a single MailTemplate model.

modules/option/controllers/ManagementController.php 1 location

@@ 42-51 (lines=10) @@
39
     *
40
     * @return mixed
41
     */
42
    public function actionIndex()
43
    {
44
        $searchModel = new OptionSearch();
45
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
46
47
        return $this->render('index', [
48
            'searchModel' => $searchModel,
49
            'dataProvider' => $dataProvider,
50
        ]);
51
    }
52
53
    /**
54
     * Displays a single Option model.

modules/page/controllers/ManagementController.php 1 location

@@ 41-50 (lines=10) @@
38
     * Lists all Page models.
39
     * @return mixed
40
     */
41
    public function actionIndex()
42
    {
43
        $searchModel = new PageSearch();
44
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
45
46
        return $this->render('index', [
47
            'searchModel' => $searchModel,
48
            'dataProvider' => $dataProvider,
49
        ]);
50
    }
51
52
    /**
53
     * Displays a single Page model.

modules/user/controllers/ManagementController.php 1 location

@@ 42-51 (lines=10) @@
39
     *
40
     * @return mixed
41
     */
42
    public function actionIndex()
43
    {
44
        $searchModel = new SearchUser();
45
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
46
47
        return $this->render('index', [
48
            'searchModel' => $searchModel,
49
            'dataProvider' => $dataProvider,
50
        ]);
51
    }
52
53
    /**
54
     * Displays a single Users model.