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