Code Duplication    Length = 10-10 lines in 6 locations

backend/controllers/MediaController.php 1 location

@@ 73-82 (lines=10) @@
70
     *
71
     * @return mixed
72
     */
73
    public function actionIndex()
74
    {
75
        $searchModel = new MediaSearch();
76
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
77
78
        return $this->render('index', [
79
            'searchModel' => $searchModel,
80
            'dataProvider' => $dataProvider,
81
        ]);
82
    }
83
84
85
    /**

backend/controllers/ModuleController.php 1 location

@@ 63-72 (lines=10) @@
60
     *
61
     * @return mixed
62
     */
63
    public function actionIndex()
64
    {
65
        $searchModel = new ModuleSearch();
66
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
67
68
        return $this->render('index', [
69
            'searchModel' => $searchModel,
70
            'dataProvider' => $dataProvider,
71
        ]);
72
    }
73
74
    /**
75
     * Creates a new Module model.

backend/controllers/PostTypeController.php 1 location

@@ 61-70 (lines=10) @@
58
     *
59
     * @return mixed
60
     */
61
    public function actionIndex()
62
    {
63
        $searchModel = new PostTypeSearch();
64
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
65
66
        return $this->render('index', [
67
            'searchModel' => $searchModel,
68
            'dataProvider' => $dataProvider,
69
        ]);
70
    }
71
72
    /**
73
     * Displays a single PostType model.

backend/controllers/SettingController.php 1 location

@@ 62-71 (lines=10) @@
59
     *
60
     * @return mixed
61
     */
62
    public function actionIndex()
63
    {
64
        $searchModel = new OptionSearch();
65
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
66
67
        return $this->render('index', [
68
            'searchModel' => $searchModel,
69
            'dataProvider' => $dataProvider,
70
        ]);
71
    }
72
73
    /**
74
     * Displays single Option model.

backend/controllers/TaxonomyController.php 1 location

@@ 68-77 (lines=10) @@
65
     *
66
     * @return mixed
67
     */
68
    public function actionIndex()
69
    {
70
        $searchModel = new TaxonomySearch();
71
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
72
73
        return $this->render('index', [
74
            'searchModel' => $searchModel,
75
            'dataProvider' => $dataProvider,
76
        ]);
77
    }
78
79
    /**
80
     * View single taxonomy, list all Term from it and create a new Term model.

backend/controllers/UserController.php 1 location

@@ 63-72 (lines=10) @@
60
     *
61
     * @return mixed
62
     */
63
    public function actionIndex()
64
    {
65
        $searchModel = new UserSearch();
66
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
67
68
        return $this->render('index', [
69
            'searchModel' => $searchModel,
70
            'dataProvider' => $dataProvider,
71
        ]);
72
    }
73
74
    /**
75
     * Displays a single User model.