Code Duplication    Length = 17-17 lines in 3 locations

src/DataTables/CategoriesDataTable.php 1 location

@@ 137-153 (lines=17) @@
134
    /**
135
     * @return array
136
     */
137
    protected function getBuilderParameters()
138
    {
139
        return [
140
            'stateSave' => true,
141
            'order'     => [[0, 'asc']],
142
            'buttons'   => [
143
                [
144
                    'extend' => 'create',
145
                    'text'   => '<i class="fa fa-plus"></i>&nbsp;&nbsp;New Category',
146
                ],
147
                'export',
148
                'print',
149
                'reset',
150
                'reload',
151
            ],
152
        ];
153
    }
154
155
    /**
156
     * Get filename for export.

src/DataTables/MenuItemsDataTable.php 1 location

@@ 121-137 (lines=17) @@
118
    /**
119
     * @return array
120
     */
121
    protected function getBuilderParameters()
122
    {
123
        return [
124
            'stateSave' => true,
125
            'order'     => [[0, 'asc']],
126
            'buttons'   => [
127
                [
128
                    'extend' => 'create',
129
                    'text'   => '<i class="fa fa-plus"></i>&nbsp;&nbsp;New Menu',
130
                ],
131
                'export',
132
                'print',
133
                'reset',
134
                'reload',
135
            ],
136
        ];
137
    }
138
139
    /**
140
     * Get filename for export.

src/DataTables/WidgetsDataTable.php 1 location

@@ 100-116 (lines=17) @@
97
    /**
98
     * @return array
99
     */
100
    protected function getBuilderParameters()
101
    {
102
        return [
103
            'stateSave' => true,
104
            'order'     => [0, 'desc'],
105
            'buttons'   => [
106
                [
107
                    'extend' => 'create',
108
                    'text'   => '<i class="fa fa-plus"></i>&nbsp;&nbsp;New Widget',
109
                ],
110
                'export',
111
                'print',
112
                'reset',
113
                'reload',
114
            ],
115
        ];
116
    }
117
118
    /**
119
     * Get filename for export.