@@ -6,5 +6,6 @@ |
||
6 | 6 | |
7 | 7 | echo Html::tag('h1', $panel->name); |
8 | 8 | |
9 | -foreach ($dataProvider->allModels as $index => $request) |
|
9 | +foreach ($dataProvider->allModels as $index => $request) { |
|
10 | 10 | echo $this->render('detail', ['panel' => $panel, 'request' => $request, 'index' => $index + 1]); |
11 | +} |
@@ -37,7 +37,7 @@ |
||
37 | 37 | ], |
38 | 38 | [ |
39 | 39 | 'header' => Yii::t('audit', 'Data'), |
40 | - 'value' => function ($data) { |
|
40 | + 'value' => function($data) { |
|
41 | 41 | $out = '<a class="data-toggle glyphicon glyphicon-plus" href="javascript:void(0);"></a>'; |
42 | 42 | $out .= '<pre style="display:none;">'; |
43 | 43 | $out .= \yii\helpers\VarDumper::dumpAsString($data['data']); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | 'class' => 'yii\grid\ActionColumn', |
20 | 20 | 'template' => '{view}', |
21 | 21 | 'buttons' => [ |
22 | - 'view' => function ($url, $model) { |
|
22 | + 'view' => function($url, $model) { |
|
23 | 23 | return Html::a( |
24 | 24 | Html::tag('span', '', ['class' => 'glyphicon glyphicon-eye-open']), ['mail/view', 'id' => $model->id] |
25 | 25 | ); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | [ |
33 | 33 | 'attribute' => 'entry_id', |
34 | 34 | 'class' => 'yii\grid\DataColumn', |
35 | - 'value' => function ($data) { |
|
35 | + 'value' => function($data) { |
|
36 | 36 | return $data->entry_id ? Html::a($data->entry_id, ['entry/view', 'id' => $data->entry_id]) : ''; |
37 | 37 | }, |
38 | 38 | 'format' => 'raw', |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function getLabel() |
24 | 24 | { |
25 | - return $this->getName() . ' <small>(' . count($this->data) . ')</small>'; |
|
25 | + return $this->getName().' <small>('.count($this->data).')</small>'; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -35,8 +35,9 @@ |
||
35 | 35 | { |
36 | 36 | $this->module->registerPanel($this); |
37 | 37 | |
38 | - if (!is_array($this->data)) |
|
39 | - $this->data = []; |
|
38 | + if (!is_array($this->data)) { |
|
39 | + $this->data = []; |
|
40 | + } |
|
40 | 41 | |
41 | 42 | if (isset($data['error'])) { |
42 | 43 | $error = $this->module->exception($data['error']); |