| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function tableRow($line, $colCount, $delim = '|') |
||
| 57 | { |
||
| 58 | $row = "<tr>\n"; |
||
| 59 | |||
| 60 | foreach (\explode($delim, \trim($line, $delim)) as $i => $col) { |
||
| 61 | if ($i > $colCount) { |
||
| 62 | break; |
||
| 63 | } |
||
| 64 | |||
| 65 | $col = \trim($col); |
||
| 66 | $row .= "<td>{$col}</td>\n"; |
||
| 67 | } |
||
| 68 | |||
| 69 | $row .= "</tr>\n"; |
||
| 70 | |||
| 71 | return $row; |
||
| 72 | } |
||
| 74 |