@@ -26,5 +26,5 @@ |
||
| 26 | 26 | public ?string $uiComponent = null; |
| 27 | 27 | |
| 28 | 28 | /** @ORM\Column(type="json", nullable=true) */ |
| 29 | - public ?array $uiClassNames = null; |
|
| 29 | + public ? array $uiClassNames = null; |
|
| 30 | 30 | } |
@@ -130,7 +130,4 @@ |
||
| 130 | 130 | throw new Exception($label . ' can not be empty'); |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - return $string; |
|
| 134 | - }; |
|
| 135 | - } |
|
| 136 | -} |
|
| 133 | + return $string |
|
| 137 | 134 | \ No newline at end of file |
@@ -130,7 +130,4 @@ |
||
| 130 | 130 | throw new Exception($label . ' can not be empty'); |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - return $string; |
|
| 134 | - }; |
|
| 135 | - } |
|
| 136 | -} |
|
| 133 | + return $string |
|
| 137 | 134 | \ No newline at end of file |
@@ -138,8 +138,7 @@ |
||
| 138 | 138 | $request = $requestStack->getMasterRequest(); |
| 139 | 139 | |
| 140 | 140 | $path = ($request && $this->redirectPathQueryKey) ? |
| 141 | - $request->query->get($this->redirectPathQueryKey, $this->defaultRedirectPath) : |
|
| 142 | - $this->defaultRedirectPath; |
|
| 141 | + $request->query->get($this->redirectPathQueryKey, $this->defaultRedirectPath) : $this->defaultRedirectPath; |
|
| 143 | 142 | |
| 144 | 143 | if (null === $path) { |
| 145 | 144 | throw new UnexpectedValueException(sprintf('The querystring key `%s` could not be found in the request to generate a token URL', $this->redirectPathQueryKey)); |
@@ -30,5 +30,5 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * @var string[] |
| 32 | 32 | */ |
| 33 | - public ?array $validationGroups = null; |
|
| 33 | + public ? array $validationGroups = null; |
|
| 34 | 34 | } |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | class ImagineRemoveEvent extends Event |
| 22 | 22 | { |
| 23 | - public ?array $paths; |
|
| 24 | - public ?array $filters; |
|
| 23 | + public ? array $paths; |
|
| 24 | + public ? array $filters; |
|
| 25 | 25 | |
| 26 | 26 | public function __construct(?array $paths, ?array $filters) |
| 27 | 27 | { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $mediaObject->width = (int) $xmlattributes->width; |
| 48 | 48 | $mediaObject->height = (int) $xmlattributes->height; |
| 49 | 49 | } else { |
| 50 | - [ $mediaObject->width, $mediaObject->height ] = @getimagesize($file); |
|
| 50 | + [$mediaObject->width, $mediaObject->height] = @getimagesize($file); |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | public ?string $prefix = null; |
| 27 | 27 | |
| 28 | - public ?array $imagineFilters = []; |
|
| 28 | + public ? array $imagineFilters = []; |
|
| 29 | 29 | |
| 30 | 30 | // Nice to have - feature to configure the IRI in the output media objects for this field |
| 31 | 31 | // public string $iri = 'http://schema.org/MediaObject'; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function onStore(ImagineStoreEvent $event): void |
| 40 | 40 | { |
| 41 | 41 | $content = $event->binary->getContent(); |
| 42 | - [ $width, $height ] = getimagesizefromstring($content); |
|
| 42 | + [$width, $height] = getimagesizefromstring($content); |
|
| 43 | 43 | $fileSize = \strlen($content); |
| 44 | 44 | |
| 45 | 45 | $fileInfo = new FileInfo($event->path, $event->binary->getMimeType(), $fileSize, $width, $height, $event->filter); |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | $configuration = $this->annotationReader->getConfiguration($timestamped); |
| 38 | 38 | $classMetadata = $this->getClassMetadata($timestamped); |
| 39 | 39 | $classMetadata->setFieldValue($timestamped, $configuration->createdAtField, $isNew ? |
| 40 | - new \DateTimeImmutable() : |
|
| 41 | - $classMetadata->getFieldValue($timestamped, $configuration->createdAtField)); |
|
| 40 | + new \DateTimeImmutable() : $classMetadata->getFieldValue($timestamped, $configuration->createdAtField)); |
|
| 42 | 41 | $classMetadata->setFieldValue($timestamped, $configuration->modifiedAtField, new \DateTime()); |
| 43 | 42 | } |
| 44 | 43 | } |