@@ -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', |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Message translations. |
|
4 | - * |
|
5 | - * This file is automatically generated by 'yii message' command. |
|
6 | - * It contains the localizable messages extracted from source code. |
|
7 | - * You may modify this file by translating the extracted messages. |
|
8 | - * |
|
9 | - * Each array element represents the translation (value) of a message (key). |
|
10 | - * If the value is empty, the message is considered as not translated. |
|
11 | - * Messages that no longer need translation will have their translations |
|
12 | - * enclosed between a pair of '@@' marks. |
|
13 | - * |
|
14 | - * Message string can be used with plural forms format. Check i18n section |
|
15 | - * of the guide for details. |
|
16 | - * |
|
17 | - * NOTE: this file must be saved in UTF-8 encoding. |
|
18 | - */ |
|
3 | + * Message translations. |
|
4 | + * |
|
5 | + * This file is automatically generated by 'yii message' command. |
|
6 | + * It contains the localizable messages extracted from source code. |
|
7 | + * You may modify this file by translating the extracted messages. |
|
8 | + * |
|
9 | + * Each array element represents the translation (value) of a message (key). |
|
10 | + * If the value is empty, the message is considered as not translated. |
|
11 | + * Messages that no longer need translation will have their translations |
|
12 | + * enclosed between a pair of '@@' marks. |
|
13 | + * |
|
14 | + * Message string can be used with plural forms format. Check i18n section |
|
15 | + * of the guide for details. |
|
16 | + * |
|
17 | + * NOTE: this file must be saved in UTF-8 encoding. |
|
18 | + */ |
|
19 | 19 | return [ |
20 | 20 | '<b>{message}</b><br />in <i>{file}</i> on line <i>{line}</i>.<br/>-- {link}' => '', |
21 | 21 | 'Args' => '', |
@@ -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']); |