Completed
Push — develop ( f05cec...11f198 )
by Daniel
07:33
created
src/Serializer/ImageMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         }
53 53
 
54 54
         [$this->width, $this->height] = getimagesize($filePath);
55
-        $this->imagineKey= $imagineKey;
55
+        $this->imagineKey = $imagineKey;
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
src/Entity/Content/Component/Gallery/GalleryItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         $metadata->addPropertyConstraints(
45 45
             'filePath',
46
-            [ new Assert\Image() ] // new Assert\NotBlank(),
46
+            [new Assert\Image()] // new Assert\NotBlank(),
47 47
         );
48 48
         $metadata->addPropertyConstraint(
49 49
             'title',
Please login to merge, or discard this patch.
src/Uploader/FileUploader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $ext = $file->guessExtension();
44 44
         $basename = pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME);
45 45
         $filename = "$basename.$ext";
46
-        $i=0;
46
+        $i = 0;
47 47
         while ($fs->exists($this->getRealPath($moveToDir, $filename))) {
48 48
             $i++;
49 49
             $filename = "$basename.$i.$ext";
Please login to merge, or discard this patch.
src/EventSubscriber/ApiPlatform/FileSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public static function getSubscribedServices(): array
24 24
     {
25 25
         return [
26
-            '?' .  FileDataFactory::class
26
+            '?' . FileDataFactory::class
27 27
         ];
28 28
     }
29 29
 
Please login to merge, or discard this patch.
src/Factory/FileDataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $objectId = $this->iriConverter->getIriFromItem($file);
57 57
         return $this->router->generate(
58 58
             'files_upload',
59
-            [ 'field' => 'filePath', 'id' => $objectId ]
59
+            ['field' => 'filePath', 'id' => $objectId]
60 60
         );
61 61
     }
62 62
 
Please login to merge, or discard this patch.