Code Duplication    Length = 9-11 lines in 2 locations

app/DataTables/LocationDataTable.php 1 location

@@ 58-66 (lines=9) @@
55
     *
56
     * @return array
57
     */
58
    protected function getColumns()
59
    {
60
        return [
61
            'id',
62
            'name',
63
            [ 'data' => 'site_id', 'name' => 'site_id', 'title' => 'Site' ],
64
            [ 'data' => 'action', 'name' => 'action', 'title' => 'Action', 'searchable' => false, 'orderable' => false, 'exportable' => false, 'printable' => false ]
65
        ];
66
    }
67
    
68
    /**
69
     * Get builder parameters.

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',
66
            [ 'data' => 'device_id', 'name' => 'device_id', 'title' => 'Device' ],
67
            'type',
68
            'value',
69
            [ 'data' => 'action', 'name' => 'action', 'title' => 'Action', 'searchable' => false, 'orderable' => false, 'exportable' => false, 'printable' => false ]
70
        ];
71
    }
72
73
    /**
74
     * Get builder parameters.