|
@@ -109,8 +109,9 @@ |
|
|
block discarded – undo |
|
109
|
109
|
private function createImage(string $imagePath): UploadedFile |
|
110
|
110
|
{ |
|
111
|
111
|
$imagePath = $this->fileLocator === null ? $imagePath : $this->fileLocator->locate($imagePath); |
|
112
|
|
- if(is_array($imagePath) && count($imagePath) > 0) |
|
113
|
|
- $imagePath = $imagePath[0]; |
|
|
112
|
+ if(is_array($imagePath) && count($imagePath) > 0) { |
|
|
113
|
+ $imagePath = $imagePath[0]; |
|
|
114
|
+ } |
|
114
|
115
|
|
|
115
|
116
|
return new UploadedFile($imagePath, basename($imagePath)); |
|
116
|
117
|
} |
Please login to merge, or discard this patch.