@@ -52,7 +52,7 @@ |
||
| 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 | /** |
@@ -43,7 +43,7 @@ |
||
| 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', |
@@ -43,7 +43,7 @@ |
||
| 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"; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | return [ |
| 17 | 17 | KernelEvents::VIEW => [ |
| 18 | - ['provideDefaultLayout', EventPriorities::PRE_SERIALIZE] |
|
| 18 | + ['provideDefaultLayout', EventPriorities::PRE_SERIALIZE] |
|
| 19 | 19 | ] |
| 20 | 20 | ]; |
| 21 | 21 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public static function getSubscribedServices(): array |
| 24 | 24 | { |
| 25 | 25 | return [ |
| 26 | - '?' . FileDataFactory::class |
|
| 26 | + '?' . FileDataFactory::class |
|
| 27 | 27 | ]; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -56,7 +56,7 @@ |
||
| 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 | |