Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | protected function buildColumnByCollection(array $row, Collection $columns, $type = 'printable') |
||
38 | { |
||
39 | $results = []; |
||
40 | foreach ($columns->all() as $column) { |
||
41 | if ($column[$type]) { |
||
42 | $data = array_get($row, $column['data']); |
||
43 | |||
44 | $results[$column['title']] = $type == 'exportable' ? strip_tags($data) : $data; |
||
45 | } |
||
46 | } |
||
47 | |||
48 | return $results; |
||
49 | } |
||
50 | } |
||
51 |