Passed
Push — master ( f4a7db...eb2a3d )
by Evgenii
02:24
created
src/components/PictureWidget.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,11 +28,13 @@
 block discarded – undo
28 28
      */
29 29
     public function run(): ?string
30 30
     {
31
-        if (empty($this->model) || !in_array($this->model->type, [FileType::IMAGE, FileType::VIDEO]))
32
-            return null;
31
+        if (empty($this->model) || !in_array($this->model->type, [FileType::IMAGE, FileType::VIDEO])) {
32
+                    return null;
33
+        }
33 34
 
34
-        if (is_array($this->width))
35
-            $this->view = 'mediaPictureWidget';
35
+        if (is_array($this->width)) {
36
+                    $this->view = 'mediaPictureWidget';
37
+        }
36 38
 
37 39
         return $this->render($this->view, [
38 40
             'model' => $this->model,
Please login to merge, or discard this patch.