Completed
Branch master (117557)
by Vladimir
04:36
created
src/backend/services/BannerService.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 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
     /**
Please login to merge, or discard this patch.
src/common/models/entities/Banner.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
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.