Passed
Push — master ( 693518...f4a7db )
by Evgenii
04:33
created
src/components/PictureWidget.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@
 block discarded – undo
26 26
      */
27 27
     public function run(): ?string
28 28
     {
29
-        if (empty($this->model) || !in_array($this->model->type, [FileType::IMAGE, FileType::VIDEO]))
30
-            return null;
29
+        if (empty($this->model) || !in_array($this->model->type, [FileType::IMAGE, FileType::VIDEO])) {
30
+                    return null;
31
+        }
31 32
         return $this->render('pictureWidget', [
32 33
             'model' => $this->model,
33 34
             'width' => $this->width,
Please login to merge, or discard this patch.