@@ -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 | |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | */ |
| 178 | 178 | protected function cleanAttributesIgnored($attributes) |
| 179 | 179 | { |
| 180 | - if($this->ignore_timestamps) |
|
| 180 | + if ($this->ignore_timestamps) |
|
| 181 | 181 | $this->ignored = array_merge($this->ignored, [ |
| 182 | 182 | 'created', 'updated', 'created_at', 'updated_at', 'timestamp']); |
| 183 | 183 | |
@@ -199,12 +199,12 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | protected function cleanAttributesOverride($attributes) |
| 201 | 201 | { |
| 202 | - if (sizeof($this->override) > 0 && sizeof($attributes) >0) { |
|
| 202 | + if (sizeof($this->override) > 0 && sizeof($attributes) > 0) { |
|
| 203 | 203 | foreach ($this->override as $field => $queryParams) { |
| 204 | 204 | $newOverrideValues = $this->getNewOverrideValues($attributes[$field], $queryParams); |
| 205 | 205 | $saveField = \yii\helpers\ArrayHelper::getValue($queryParams, 'saveField', $field); |
| 206 | 206 | |
| 207 | - if (count($newOverrideValues) >1) { |
|
| 207 | + if (count($newOverrideValues) > 1) { |
|
| 208 | 208 | $attributes[$saveField] = implode(', ', |
| 209 | 209 | \yii\helpers\ArrayHelper::map($newOverrideValues, $queryParams['returnField'], $queryParams['returnField']) |
| 210 | 210 | ); |