@@ -195,8 +195,9 @@ |
||
195 | 195 | private function createImage(string $imagePath): UploadedFile |
196 | 196 | { |
197 | 197 | $imagePath = $this->fileLocator === null ? $imagePath : $this->fileLocator->locate($imagePath); |
198 | - if(is_array($imagePath) && count($imagePath) > 0) |
|
199 | - $imagePath = $imagePath[0]; |
|
198 | + if(is_array($imagePath) && count($imagePath) > 0) { |
|
199 | + $imagePath = $imagePath[0]; |
|
200 | + } |
|
200 | 201 | |
201 | 202 | return new UploadedFile($imagePath, basename($imagePath)); |
202 | 203 | } |