@@ -28,11 +28,13 @@ |
||
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, |