@@ -113,8 +113,9 @@ |
||
113 | 113 | private function createImage(string $imagePath): UploadedFile |
114 | 114 | { |
115 | 115 | $imagePath = $this->fileLocator === null ? $imagePath : $this->fileLocator->locate($imagePath); |
116 | - if(is_array($imagePath) && count($imagePath) > 0) |
|
117 | - $imagePath = $imagePath[0]; |
|
116 | + if(is_array($imagePath) && count($imagePath) > 0) { |
|
117 | + $imagePath = $imagePath[0]; |
|
118 | + } |
|
118 | 119 | |
119 | 120 | return new UploadedFile($imagePath, basename($imagePath)); |
120 | 121 | } |