| Conditions | 4 |
| Paths | 6 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 4 |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | public function getTable(){ |
|
| 29 | |||
| 30 | $table = "<div class='dbtable'> |
||
| 31 | <table class> |
||
| 32 | 1 | <tr class='rows'>"; |
|
| 33 | |||
| 34 | 1 | foreach($this->headline as $h) { |
|
| 35 | 1 | $table.= "<th>" . $h ."</th>"; |
|
| 36 | 1 | } |
|
| 37 | |||
| 38 | 1 | $table .= "</tr>"; |
|
| 39 | 1 | foreach($this->data as $d){ |
|
| 40 | 1 | $table .= "<tr>"; |
|
| 41 | 1 | foreach ($d as $v) { |
|
| 42 | 1 | $table .= "<td>$v</td>"; |
|
| 43 | 1 | } |
|
| 44 | 1 | $table .= "</tr>"; |
|
| 45 | 1 | } |
|
| 46 | 1 | $table .="</table></div>"; |
|
| 47 | |||
| 48 | 1 | return $table; |
|
| 49 | } |
||
| 50 | } |
||
| 51 |