@@ -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 | ], |
@@ -197,7 +197,7 @@ |
||
197 | 197 | Yii::trace('Cannot delete "' . $translation->file_name . '" file', 'yii2-banner'); |
198 | 198 | } |
199 | 199 | } |
200 | - return (bool)$model->delete(); |
|
200 | + return (bool) $model->delete(); |
|
201 | 201 | } catch (\Exception $ex) { |
202 | 202 | Yii::$app->getErrorHandler()->logException($ex); |
203 | 203 | } |