@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use ymaker\banner\backend\exceptions\FileUploadException; |
| 18 | 18 | use ymaker\banner\backend\models\entities\Banner; |
| 19 | 19 | use ymaker\banner\backend\models\entities\BannerTranslation; |
| 20 | -use ymaker\banner\backend\Module; |
|
| 21 | 20 | use ymaker\banner\common\components\FileManager; |
| 22 | 21 | |
| 23 | 22 | /** |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | */ |
| 185 | 185 | public function update(array $data) |
| 186 | 186 | { |
| 187 | - return (bool)$this->save($data); |
|
| 187 | + return (bool) $this->save($data); |
|
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | /** |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | /** |
| 59 | 59 | * Returns list of translation attributes. |
| 60 | 60 | * |
| 61 | - * @return array |
|
| 61 | + * @return string[] |
|
| 62 | 62 | */ |
| 63 | 63 | public function getTranslationAttributes() |
| 64 | 64 | { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function setFilesRoot($filesRoot) |
| 40 | 40 | { |
| 41 | - $this->filesRoot =$filesRoot; |
|
| 41 | + $this->filesRoot = $filesRoot; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | 'attribute' => 'file_name', |
| 60 | 60 | 'label' => BannerModule::t('Banner image'), |
| 61 | 61 | 'format' => 'html', |
| 62 | - 'value' => function (Banner $model) { |
|
| 62 | + 'value' => function(Banner $model) { |
|
| 63 | 63 | return Html::img(ImageHelper::getUrl($model->file_name), ['width' => 300]); |
| 64 | 64 | } |
| 65 | 65 | ], |