@@ -15,13 +15,13 @@ |
||
15 | 15 | |
16 | 16 | // a weight of 0 means selections in that category do not increase the score |
17 | 17 | public static $categories = [ |
18 | - [ "id" => 1, "weight" => 0, "name" => "Restoration"], |
|
19 | - [ "id" => 2, "weight" => 1, "name" => "Forgetting Priorities"], |
|
20 | - [ "id" => 3, "weight" => 2, "name" => "Anxiety"], |
|
21 | - [ "id" => 4, "weight" => 4, "name" => "Speeding Up"], |
|
22 | - [ "id" => 5, "weight" => 6, "name" => "Ticked Off"], |
|
23 | - [ "id" => 6, "weight" => 8, "name" => "Exhausted"], |
|
24 | - [ "id" => 7, "weight" => 10, "name" => "Relapse/Moral Failure"], |
|
18 | + ["id" => 1, "weight" => 0, "name" => "Restoration"], |
|
19 | + ["id" => 2, "weight" => 1, "name" => "Forgetting Priorities"], |
|
20 | + ["id" => 3, "weight" => 2, "name" => "Anxiety"], |
|
21 | + ["id" => 4, "weight" => 4, "name" => "Speeding Up"], |
|
22 | + ["id" => 5, "weight" => 6, "name" => "Ticked Off"], |
|
23 | + ["id" => 6, "weight" => 8, "name" => "Exhausted"], |
|
24 | + ["id" => 7, "weight" => 10, "name" => "Relapse/Moral Failure"], |
|
25 | 25 | ]; |
26 | 26 | |
27 | 27 | public static $colors = [ |
@@ -35,12 +35,12 @@ |
||
35 | 35 | <th>Behavior</th> |
36 | 36 | <th>Category</th> |
37 | 37 | </tr> |
38 | -<?php foreach($top_behaviors as $key => $row) { |
|
38 | +<?php foreach ($top_behaviors as $key => $row) { |
|
39 | 39 | $num = $key + 1; |
40 | -print "<tr>". |
|
41 | - "<td>{$row['count']}</td>". |
|
42 | - "<td>{$row['behavior']['name']}</td>". |
|
43 | - "<td>{$row['behavior']['category']['name']}</td>". |
|
40 | +print "<tr>" . |
|
41 | + "<td>{$row['count']}</td>" . |
|
42 | + "<td>{$row['behavior']['name']}</td>" . |
|
43 | + "<td>{$row['behavior']['category']['name']}</td>" . |
|
44 | 44 | "</tr>"; |
45 | 45 | } |
46 | 46 | ?> |