Conditions | 4 |
Paths | 6 |
Total Lines | 27 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 4 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
29 | 1 | public function createTable() |
|
30 | { |
||
31 | $html = |
||
32 | '<table style="width:100%;border: 1px solid black;border-collapse: collapse;"> |
||
33 | 1 | <tr>'; |
|
34 | |||
35 | 1 | foreach($this->headings as $h) |
|
36 | { |
||
37 | 1 | $html .= '<th style="border: 1px solid black;border-collapse: collapse;">'.$h.'</th>'; |
|
38 | 1 | } |
|
39 | |||
40 | 1 | $html .= '</tr>'; |
|
41 | |||
42 | 1 | foreach($this->rows as $row) |
|
43 | { |
||
44 | 1 | $html .= '<tr>'; |
|
45 | 1 | foreach($row as $r) |
|
46 | { |
||
47 | 1 | $html .= '<td style="border: 1px solid black;border-collapse: collapse;">' . $r . '</td>'; |
|
48 | 1 | } |
|
49 | 1 | $html .= '</tr>'; |
|
50 | 1 | } |
|
51 | |||
52 | 1 | $html .= '</table>'; |
|
53 | |||
54 | 1 | return $html; |
|
55 | } |
||
56 | } |
||
57 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.