Completed
Push — master ( 43aed4...11e9cb )
by Vladimir
01:45
created
src/common/components/FileManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function setFilesRoot($filesRoot)
40 40
     {
41
-        $this->filesRoot =$filesRoot;
41
+        $this->filesRoot = $filesRoot;
42 42
     }
43 43
 
44 44
     /**
Please login to merge, or discard this patch.
src/backend/views/default/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
                     ],
Please login to merge, or discard this patch.
src/backend/services/BannerService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
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
     /**
@@ -202,6 +202,6 @@  discard block
 block discarded – undo
202 202
                 Yii::trace('Cannot delete "' . $translation->file_name . '" file', 'yii2-banner');
203 203
             }
204 204
         }
205
-        return (bool)$model->delete();
205
+        return (bool) $model->delete();
206 206
     }
207 207
 }
Please login to merge, or discard this patch.