| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function tableRow($line, $colCount, $delim = '|') |
||
| 48 | { |
||
| 49 | $row = "<tr>\n"; |
||
| 50 | |||
| 51 | foreach (\explode($delim, \trim($line, $delim)) as $i => $col) { |
||
| 52 | if ($i > $colCount) { |
||
| 53 | break; |
||
| 54 | } |
||
| 55 | |||
| 56 | $col = \trim($col); |
||
| 57 | $row .= "<td>{$col}</td>\n"; |
||
| 58 | } |
||
| 59 | |||
| 60 | $row .= "</tr>\n"; |
||
| 61 | |||
| 62 | return $row; |
||
| 63 | } |
||
| 65 |