@@ -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'), |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | $targetPath = Yii::getAlias($this->currentConfig['path']); |
| 100 | 100 | Yii::createObject(FolderBackupMaker::class, [$this->model->getFullPath(), $targetPath, $this->currentConfig['io']])->execute(); |
| 101 | 101 | } |
| 102 | - } catch (MysqlDumpException|PostgresDumpException|FolderDumpException $exception) { |
|
| 102 | + } catch (MysqlDumpException | PostgresDumpException | FolderDumpException $exception) { |
|
| 103 | 103 | $this->setBackupFailed(); |
| 104 | 104 | throw new $exception; |
| 105 | 105 | } |