@@ -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']); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Error handler version for web based modules |
|
4 | - */ |
|
3 | + * Error handler version for web based modules |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace bedezign\yii2\audit\components\web; |
7 | 7 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | $this->title = Yii::t('audit', 'Mail #{id}', ['id' => $model->id]); |
14 | 14 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Audit'), 'url' => ['default/index']]; |
15 | 15 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Mails'), 'url' => ['index']]; |
16 | -$this->params['breadcrumbs'][] = '#' . $model->id; |
|
16 | +$this->params['breadcrumbs'][] = '#'.$model->id; |
|
17 | 17 | |
18 | 18 | echo Html::tag('h1', $this->title); |
19 | 19 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | echo Html::tag('h2', Yii::t('audit', 'HTML')); |
51 | 51 | echo '<div class="well">'; |
52 | -echo '<iframe src="' . Url::to(['mail/view-html', 'id' => $model->id]) . '" style="width:100%;" onload="this.style.height = this.contentWindow.document.body.scrollHeight + \'px\';" frameborder="0"></iframe>'; |
|
52 | +echo '<iframe src="'.Url::to(['mail/view-html', 'id' => $model->id]).'" style="width:100%;" onload="this.style.height = this.contentWindow.document.body.scrollHeight + \'px\';" frameborder="0"></iframe>'; |
|
53 | 53 | //echo Yii::$app->formatter->asHtml($model->html); |
54 | 54 | echo '</div>'; |
55 | 55 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | $this->title = Yii::t('audit', 'Mail #{id}', ['id' => $model->id]); |
10 | 10 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Audit'), 'url' => ['default/index']]; |
11 | 11 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Mails'), 'url' => ['index']]; |
12 | -$this->params['breadcrumbs'][] = '#' . $model->id; |
|
12 | +$this->params['breadcrumbs'][] = '#'.$model->id; |
|
13 | 13 | |
14 | 14 | |
15 | 15 | echo Yii::$app->formatter->asHtml($model->html); |
16 | 16 | \ No newline at end of file |