@@ -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 |
@@ -192,11 +192,11 @@ |
||
192 | 192 | */ |
193 | 193 | protected function cleanAttributesOverride($attributes) |
194 | 194 | { |
195 | - if (sizeof($this->override) > 0 && sizeof($attributes) >0) { |
|
195 | + if (sizeof($this->override) > 0 && sizeof($attributes) > 0) { |
|
196 | 196 | foreach ($this->override as $field => $queryParams) { |
197 | 197 | $newOverrideValues = $this->getNewOverrideValues($attributes[$field], $queryParams); |
198 | 198 | |
199 | - if (count($newOverrideValues) >1) { |
|
199 | + if (count($newOverrideValues) > 1) { |
|
200 | 200 | $attributes[$field] = implode(', ', |
201 | 201 | \yii\helpers\ArrayHelper::map($newOverrideValues, $queryParams['returnField'], $queryParams['returnField']) |
202 | 202 | ); |