Code Duplication    Length = 11-13 lines in 2 locations

app/DataTables/SensorDataTable.php 1 location

@@ 61-71 (lines=11) @@
58
     *
59
     * @return array
60
     */
61
    protected function getColumns()
62
    {
63
        return [
64
            'id',
65
            [ 'name' => 'device_id', 'data' => 'device_id', 'title' => 'Device', 'render' => null, 'searchable' => true, 'orderable' => false, 'exportable' => true, 'printable' => true, 'footer' => '' ],
66
            'name',
67
            'type',
68
            'value',
69
            'action'
70
        ];
71
    }
72
73
    /**
74
     * Get builder parameters.

app/DataTables/UsersDataTable.php 1 location

@@ 79-91 (lines=13) @@
76
     *
77
     * @return array
78
     */
79
    protected function getColumns()
80
    {
81
        return [
82
            'id',
83
            'name',
84
            'email',
85
            'phone',
86
            'role',
87
            'created_at',
88
            'updated_at',
89
            [ 'name' => 'action', 'data' => 'action', 'title' => 'Actions', 'render' => null, 'searchable' => false, 'orderable' => false, 'exportable' => false, 'printable' => true, 'footer' => '' ],
90
        ];
91
    }
92
93
    /**
94
     * Get filename for export.