@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | ]; |
42 | 42 | |
43 | 43 | $tmp_pie = []; |
44 | -foreach($answer_pie as $key => $category) { |
|
44 | +foreach ($answer_pie as $key => $category) { |
|
45 | 45 | $json = [ |
46 | 46 | "value" => (int)$category['count'], |
47 | 47 | "color" => $pie_colors[$key]["color"], |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | <th>Behavior</th> |
80 | 80 | <th>Category</th> |
81 | 81 | </tr> |
82 | -<?php foreach($top_behaviors as $key => $row) { |
|
82 | +<?php foreach ($top_behaviors as $key => $row) { |
|
83 | 83 | $num = $key + 1; |
84 | -print "<tr>". |
|
85 | - "<td>{$row['count']}</td>". |
|
86 | - "<td>{$row['behavior']['name']}</td>". |
|
87 | - "<td>{$row['behavior']['category']['name']}</td>". |
|
84 | +print "<tr>" . |
|
85 | + "<td>{$row['count']}</td>" . |
|
86 | + "<td>{$row['behavior']['name']}</td>" . |
|
87 | + "<td>{$row['behavior']['category']['name']}</td>" . |
|
88 | 88 | "</tr>"; |
89 | 89 | |
90 | 90 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | <?= $form->field($model, 'subject') ?> |
58 | 58 | <?= $form->field($model, 'body')->textArea(['rows' => 6]) ?> |
59 | 59 | |
60 | - <?php if(Yii::$app->user->isGuest) { |
|
60 | + <?php if (Yii::$app->user->isGuest) { |
|
61 | 61 | // only show captcha if user is not logged in |
62 | 62 | print $form->field($model, 'verifyCode')->widget(Captcha::class, [ |
63 | 63 | 'template' => '<div class="row"><div class="col-md-3">{image}</div><div class="col-md-6">{input}</div></div>', |