@@ -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']), ['error/view', 'id' => $model->id] |
25 | 25 | ); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | 'type', |
15 | 15 | [ |
16 | 16 | 'header' => Yii::t('audit', 'Data'), |
17 | - 'value' => function ($data) { |
|
17 | + 'value' => function($data) { |
|
18 | 18 | return \yii\helpers\VarDumper::dumpAsString($data['data']); |
19 | 19 | } |
20 | 20 | ] |
@@ -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 | ); |
@@ -38,6 +38,6 @@ |
||
38 | 38 | unset($request['result']); |
39 | 39 | } |
40 | 40 | |
41 | -$tabs[] = [ 'label' => \Yii::t('audit', 'Info'), 'content' => $this->render('info_table', ['request' => $request]), 'active' => true ]; |
|
41 | +$tabs[] = ['label' => \Yii::t('audit', 'Info'), 'content' => $this->render('info_table', ['request' => $request]), 'active' => true]; |
|
42 | 42 | |
43 | 43 | echo Html::tag('h2', \Yii::t('audit', 'Request #{id}', ['id' => $index])), Tabs::widget(['items' => array_reverse($tabs)]); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | if (isset($request['error']) && isset($request['error'][1])) { |
12 | 12 | $error = \bedezign\yii2\audit\models\AuditError::findOne($request['error'][1]); |
13 | - $request['error'] = Html::a('[' . $request['error'][0] . '] ' . $error->message, ['error/view', 'id' => $error->id]); |
|
13 | + $request['error'] = Html::a('['.$request['error'][0].'] '.$error->message, ['error/view', 'id' => $error->id]); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | ?> |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | if (is_array($value) || is_object($value)) |
32 | 32 | $value = \yii\helpers\ArrayHelper::toArray($value); |
33 | 33 | elseif ($name == 'duration') |
34 | - $value = number_format($value, 2) . 's'; |
|
34 | + $value = number_format($value, 2).'s'; |
|
35 | 35 | echo $name == 'error' ? $value : $formatter->asText(is_scalar($value) ? $value : VarDumper::dumpAsString($value)); |
36 | 36 | ?> |
37 | 37 | </td> |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | 'class' => 'yii\grid\ActionColumn', |
21 | 21 | 'template' => '{view}', |
22 | 22 | 'buttons' => [ |
23 | - 'view' => function ($url, $model) { |
|
23 | + 'view' => function($url, $model) { |
|
24 | 24 | return Html::a( |
25 | 25 | Html::tag('span', '', ['class' => 'glyphicon glyphicon-eye-open']), ['trail/view', 'id' => $model->id] |
26 | 26 | ); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'attribute' => 'user_id', |
41 | 41 | 'label' => Yii::t('audit', 'User ID'), |
42 | 42 | 'class' => 'yii\grid\DataColumn', |
43 | - 'value' => function ($data) { |
|
43 | + 'value' => function($data) { |
|
44 | 44 | return Audit::getInstance()->getUserIdentifier($data->user_id); |
45 | 45 | }, |
46 | 46 | 'options' => [ |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | ], |
76 | 76 | [ |
77 | 77 | 'label' => Yii::t('audit', 'Diff'), |
78 | - 'value' => function ($data) { |
|
78 | + 'value' => function($data) { |
|
79 | 79 | return $data->getDiffHtml(); |
80 | 80 | }, |
81 | 81 | 'format' => 'raw', |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $this->title = Yii::t('audit', 'Entry #{id}', ['id' => $model->id]); |
21 | 21 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Audit'), 'url' => ['default/index']]; |
22 | 22 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Entries'), 'url' => ['index']]; |
23 | -$this->params['breadcrumbs'][] = '#' . $model->id; |
|
23 | +$this->params['breadcrumbs'][] = '#'.$model->id; |
|
24 | 24 | |
25 | 25 | ?> |
26 | 26 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | <div class="list-group"> |
84 | 84 | <?php |
85 | 85 | foreach ($panels as $id => $panel) { |
86 | - $label = '<i class="glyphicon glyphicon-chevron-right"></i>' . $panel->getLabel(); |
|
86 | + $label = '<i class="glyphicon glyphicon-chevron-right"></i>'.$panel->getLabel(); |
|
87 | 87 | echo Html::a($label, ['view', 'id' => $model->id, 'panel' => $id], [ |
88 | 88 | 'class' => $panel === $activePanel ? 'list-group-item active' : 'list-group-item', |
89 | 89 | ]); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | [ |
32 | 32 | 'attribute' => 'entry_id', |
33 | 33 | 'class' => 'yii\grid\DataColumn', |
34 | - 'value' => function ($data) { |
|
34 | + 'value' => function($data) { |
|
35 | 35 | return $data->entry_id ? Html::a($data->entry_id, ['entry/view', 'id' => $data->entry_id]) : ''; |
36 | 36 | }, |
37 | 37 | 'format' => 'raw', |