@@ -72,12 +72,12 @@ discard block |
||
| 72 | 72 | 'filename', |
| 73 | 73 | [ |
| 74 | 74 | 'attribute' => 'status', |
| 75 | - 'content' => function (Backup $model) { |
|
| 75 | + 'content' => function(Backup $model) { |
|
| 76 | 76 | return BackupStatus::getLabel($model->status); |
| 77 | 77 | } |
| 78 | 78 | ], |
| 79 | 79 | [ |
| 80 | - 'content' => function (Backup $model) { |
|
| 80 | + 'content' => function(Backup $model) { |
|
| 81 | 81 | $html = ' '; |
| 82 | 82 | if (file_exists($model->getFullPath())) |
| 83 | 83 | $html .= Html::tag('span', IconHelper::CHECK, ['title' => 'Файл найден', 'style' => 'color:#38b704;']); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | 'size:size', |
| 99 | 99 | [ |
| 100 | 100 | 'contentOptions' => ['class' => 'text-right'], |
| 101 | - 'content' => function (Backup $model) { |
|
| 101 | + 'content' => function(Backup $model) { |
|
| 102 | 102 | $html = Html::a(IconHelper::PLAY, null, [ |
| 103 | 103 | 'class' => 'btn btn-default btn-sm', |
| 104 | 104 | 'title' => Yii::t('app.f12.backup', 'Restore'), |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function execute() |
| 53 | 53 | { |
| 54 | - $this->dumper = new $this->dumperClass |
|
| 55 | - ( |
|
| 54 | + $this->dumper = new $this->dumperClass( |
|
| 56 | 55 | $this->connection->dsn, |
| 57 | 56 | $this->connection->username, |
| 58 | 57 | $this->connection->password, |