@@ -26,8 +26,9 @@ |
||
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, |