Code Duplication    Length = 10-10 lines in 4 locations

controllers/ContentTypeController.php 1 location

@@ 44-53 (lines=10) @@
41
     *
42
     * @return string
43
     */
44
    public function actionIndex()
45
    {
46
        $dataProvider = new ActiveDataProvider([
47
            'query' => ContentType::find(),
48
        ]);
49
50
        return $this->render('index', [
51
            'dataProvider' => $dataProvider,
52
        ]);
53
    }
54
55
    /**
56
     * Enables or disables a Device.

controllers/DeviceController.php 1 location

@@ 46-55 (lines=10) @@
43
     *
44
     * @return string
45
     */
46
    public function actionIndex()
47
    {
48
        $dataProvider = new ActiveDataProvider([
49
            'query' => Device::find(),
50
        ]);
51
52
        return $this->render('index', [
53
            'dataProvider' => $dataProvider,
54
        ]);
55
    }
56
57
    /**
58
     * Displays a single Device model.

controllers/ScreenTemplateController.php 1 location

@@ 48-57 (lines=10) @@
45
     *
46
     * @return string
47
     */
48
    public function actionIndex()
49
    {
50
        $dataProvider = new ActiveDataProvider([
51
            'query' => ScreenTemplate::find(),
52
        ]);
53
54
        return $this->render('index', [
55
            'dataProvider' => $dataProvider,
56
        ]);
57
    }
58
59
    /**
60
     * Displays a single ScreenTemplate model.

controllers/UserController.php 1 location

@@ 51-60 (lines=10) @@
48
     *
49
     * @return string render
50
     */
51
    public function actionIndex()
52
    {
53
        $dataProvider = new ActiveDataProvider([
54
            'query' => User::find(),
55
        ]);
56
57
        return $this->render('index', [
58
            'dataProvider' => $dataProvider,
59
        ]);
60
    }
61
62
    /**
63
     * Displays a single User model.