Code Duplication    Length = 9-9 lines in 2 locations

src/Processors/DataProcessor.php 2 locations

@@ 119-127 (lines=9) @@
116
     * @param mixed $row
117
     * @return array
118
     */
119
    protected function addColumns($data, $row)
120
    {
121
        foreach ($this->appendColumns as $key => $value) {
122
            $value['content'] = Helper::compileContent($value['content'], $data, $row, $this->shouldEscapeColumn($key));
123
            $data             = Helper::includeInArray($value, $data);
124
        }
125
126
        return $data;
127
    }
128
129
    /**
130
     * Process add index column.
@@ 153-161 (lines=9) @@
150
     * @param mixed $row
151
     * @return array
152
     */
153
    protected function editColumns($data, $row)
154
    {
155
        foreach ($this->editColumns as $key => $value) {
156
            $value['content'] = Helper::compileContent($value['content'], $data, $row, $this->shouldEscapeColumn($key));
157
            Arr::set($data, $value['name'], $value['content']);
158
        }
159
160
        return $data;
161
    }
162
163
    /**
164
     * Setup additional DT row variables.