Completed
Push — master ( 117557...43aed4 )
by Vladimir
01:45
created
src/common/components/FileManager.php 2 patches
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.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     /**
79 79
      * @inheritdoc
80
-     * @return false|string
80
+     * @return string|boolean
81 81
      */
82 82
     public function getImageSrc($fileName)
83 83
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     /**
88 88
      * @inheritdoc
89
-     * @return false|string
89
+     * @return string|boolean
90 90
      */
91 91
     public function getImageUrl($fileName)
92 92
     {
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.