@@ -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 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * AssetBundle to register when you want to log javascript events as well. |
|
4 | - */ |
|
3 | + * AssetBundle to register when you want to log javascript events as well. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace bedezign\yii2\audit\web; |
7 | 7 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Error Handler allows errors to be logged to the audit_error table. |
|
4 | - */ |
|
3 | + * Error Handler allows errors to be logged to the audit_error table. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace bedezign\yii2\audit\components\base; |
7 | 7 |
@@ -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', |
@@ -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 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | $days = []; |
9 | 9 | $count = []; |
10 | 10 | foreach (range(-6, 0) as $day) { |
11 | - $date = strtotime($day . 'days'); |
|
11 | + $date = strtotime($day.'days'); |
|
12 | 12 | $days[] = date('D: Y-m-d', $date); |
13 | 13 | $count[] = AuditTrail::find()->where(['between', 'created', date('Y-m-d 00:00:00', $date), date('Y-m-d 23:59:59', $date)])->count(); |
14 | 14 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | $days = []; |
9 | 9 | $count = []; |
10 | 10 | foreach (range(-6, 0) as $day) { |
11 | - $date = strtotime($day . 'days'); |
|
11 | + $date = strtotime($day.'days'); |
|
12 | 12 | $days[] = date('D: Y-m-d', $date); |
13 | 13 | $count[] = AuditTrail::find()->where(['between', 'created', date('Y-m-d 00:00:00', $date), date('Y-m-d 23:59:59', $date)])->count(); |
14 | 14 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | $days = []; |
9 | 9 | $count = []; |
10 | 10 | foreach (range(-6, 0) as $day) { |
11 | - $date = strtotime($day . 'days'); |
|
11 | + $date = strtotime($day.'days'); |
|
12 | 12 | $days[] = date('D: Y-m-d', $date); |
13 | 13 | $count[] = AuditTrail::find()->where(['between', 'created', date('Y-m-d 00:00:00', $date), date('Y-m-d 23:59:59', $date)])->count(); |
14 | 14 | } |
@@ -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 | +} |