Completed
Push — develop ( 577744...2a342c )
by Daniel
05:38
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/Serializer/ApiNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
             $objectId = $this->iriConverter->getIriFromItem($object);
142 142
             $data['file:publicPath'] = $this->router->generate(
143 143
                 'files_upload',
144
-                [ 'field' => 'filePath', 'id' => $objectId ]
144
+                ['field' => 'filePath', 'id' => $objectId]
145 145
             );
146 146
             // $this->getPublicPath($filePath);
147 147
             if (\exif_imagetype($filePath)) {
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.