Completed
Push — master ( 89806d...3422f1 )
by Benjamin
04:05 queued 01:15
created
Services/MediaManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.