@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | public function __construct(EntityManager $entityManager, $uploadDir, $allowedMimetypes) |
32 | 32 | { |
33 | 33 | $this->entityManager = $entityManager; |
34 | -if(substr($uploadDir, -1) !== '/') { |
|
34 | +if (substr($uploadDir, -1) !== '/') { |
|
35 | 35 | $uploadDir = $uploadDir.'/'; |
36 | 36 | } |
37 | 37 | $this->uploadDir = $uploadDir; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | // Sanitizing the filename |
73 | 73 | $slugify = new Slugify(); |
74 | -if($file instanceof UploadedFile) { |
|
74 | +if ($file instanceof UploadedFile) { |
|
75 | 75 | $filename = $slugify->slugify($file->getClientOriginalName()); |
76 | 76 | } else { |
77 | 77 | $filename = $slugify->slugify($file->getFilename()); |