@@ -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 | ); |
@@ -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 | +} |
@@ -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 | ]); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | $this->title = Yii::t('audit', 'Error #{id}', ['id' => $model->id]); |
12 | 12 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Audit'), 'url' => ['default/index']]; |
13 | 13 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Errors'), 'url' => ['index']]; |
14 | -$this->params['breadcrumbs'][] = '#' . $model->id; |
|
14 | +$this->params['breadcrumbs'][] = '#'.$model->id; |
|
15 | 15 | |
16 | 16 | echo Html::tag('h1', $this->title); |
17 | 17 | |
@@ -44,16 +44,15 @@ discard block |
||
44 | 44 | 'line', |
45 | 45 | [ |
46 | 46 | 'header' => Yii::t('audit', 'Called'), |
47 | - 'value' => function ($data) { |
|
47 | + 'value' => function($data) { |
|
48 | 48 | return |
49 | 49 | isset($data['type']) ? |
50 | - (( isset($data['class']) ? $data['class'] : '[unknown]') . $data['type'] . $data['function']) : |
|
51 | - $data['function']; |
|
50 | + ((isset($data['class']) ? $data['class'] : '[unknown]').$data['type'].$data['function']) : $data['function']; |
|
52 | 51 | } |
53 | 52 | ], |
54 | 53 | [ |
55 | 54 | 'header' => Yii::t('audit', 'Args'), |
56 | - 'value' => function ($data) { |
|
55 | + 'value' => function($data) { |
|
57 | 56 | $out = '<a class="args-toggle glyphicon glyphicon-plus" href="javascript:void(0);"></a>'; |
58 | 57 | $out .= '<pre style="display:none;">'; |
59 | 58 | $out .= VarDumper::dumpAsString($data['args']); |
@@ -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', |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | [ |
28 | 28 | 'attribute' => 'entry_id', |
29 | 29 | 'class' => 'yii\grid\DataColumn', |
30 | - 'value' => function ($data) { |
|
30 | + 'value' => function($data) { |
|
31 | 31 | return $data->entry_id ? Html::a($data->entry_id, ['entry/view', 'id' => $data->entry_id]) : ''; |
32 | 32 | }, |
33 | 33 | 'format' => 'raw', |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | 'attribute' => 'user_id', |
37 | 37 | 'label' => Yii::t('audit', 'User ID'), |
38 | 38 | 'class' => 'yii\grid\DataColumn', |
39 | - 'value' => function ($data) { |
|
39 | + 'value' => function($data) { |
|
40 | 40 | return Audit::getInstance()->getUserIdentifier($data->user_id); |
41 | 41 | }, |
42 | 42 | 'format' => 'raw', |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'field', |
51 | 51 | [ |
52 | 52 | 'label' => Yii::t('audit', 'Diff'), |
53 | - 'value' => function ($model) { |
|
53 | + 'value' => function($model) { |
|
54 | 54 | return $model->getDiffHtml(); |
55 | 55 | }, |
56 | 56 | 'format' => 'raw', |
@@ -10,7 +10,7 @@ |
||
10 | 10 | $this->title = Yii::t('audit', 'Trail #{id}', ['id' => $model->id]); |
11 | 11 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Audit'), 'url' => ['default/index']]; |
12 | 12 | $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Trails'), 'url' => ['trail/index']]; |
13 | -$this->params['breadcrumbs'][] = '#' . $model->id; |
|
13 | +$this->params['breadcrumbs'][] = '#'.$model->id; |
|
14 | 14 | |
15 | 15 | echo Html::tag('h1', $this->title); |
16 | 16 |
@@ -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', |