@@ -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']); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | $this->title = Yii::t('audit', 'Javascript #{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', 'Javascripts'), 'url' => ['index']]; |
12 | -$this->params['breadcrumbs'][] = '#' . $model->id; |
|
12 | +$this->params['breadcrumbs'][] = '#'.$model->id; |
|
13 | 13 | |
14 | 14 | echo Html::tag('h1', $this->title); |
15 | 15 |
@@ -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 |
@@ -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 |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | public function getLabel() |
22 | 22 | { |
23 | 23 | $memory = isset($this->data['memory']) ? sprintf('%.1f MB', $this->data['memory'] / 1048576) : ''; |
24 | - $time = isset($this->data['time']) ? number_format($this->data['time'] * 1000) . ' ms' : ''; |
|
25 | - return $this->getName() . ' <small>(' . $memory . ' / ' . $time . ')</small>'; |
|
24 | + $time = isset($this->data['time']) ? number_format($this->data['time'] * 1000).' ms' : ''; |
|
25 | + return $this->getName().' <small>('.$memory.' / '.$time.')</small>'; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | 'dataProvider' => $dataProvider, |
39 | 39 | 'searchModel' => $searchModel, |
40 | 40 | 'memory' => isset($this->data['memory']) ? sprintf('%.1f MB', $this->data['memory'] / 1048576) : '', |
41 | - 'time' => isset($this->data['time']) ? number_format($this->data['time'] * 1000) . ' ms' : '', |
|
41 | + 'time' => isset($this->data['time']) ? number_format($this->data['time'] * 1000).' ms' : '', |
|
42 | 42 | ]); |
43 | 43 | } |
44 | 44 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function getLabel() |
38 | 38 | { |
39 | - return $this->getName() . ' <small>(' . count($this->data) . ')</small>'; |
|
39 | + return $this->getName().' <small>('.count($this->data).')</small>'; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function getUrl($additionalParams = NULL) |
82 | 82 | { |
83 | - return Url::toRoute(['/' . $this->module->id . '/entry/view', |
|
83 | + return Url::toRoute(['/'.$this->module->id.'/entry/view', |
|
84 | 84 | 'panel' => $this->id, |
85 | 85 | 'id' => $this->tag, |
86 | 86 | ]); |
@@ -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', |