@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $userCreateStruct = $data->payload; |
| 25 | 25 | $contentType = $userCreateStruct->contentType; |
| 26 | 26 | |
| 27 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 27 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 28 | 28 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 29 | 29 | |
| 30 | 30 | if (null === $fieldDefinition) { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $userCreateStruct = $data->payload; |
| 54 | 54 | $contentType = $userCreateStruct->contentType; |
| 55 | 55 | |
| 56 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 56 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 57 | 57 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 58 | 58 | |
| 59 | 59 | if (null === $fieldDefinition) { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** @var ContentType $contentType */ |
| 31 | 31 | $contentType = $data->definition; |
| 32 | 32 | |
| 33 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 33 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 34 | 34 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 35 | 35 | |
| 36 | 36 | if (null === $fieldDefinition) { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** @var ContentType $contentType */ |
| 69 | 69 | $contentType = $data->definition; |
| 70 | 70 | |
| 71 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 71 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 72 | 72 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 73 | 73 | |
| 74 | 74 | if (null === $fieldDefinition) { |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $contentCreateStruct = $data->payload; |
| 25 | 25 | $contentType = $contentCreateStruct->contentType; |
| 26 | 26 | |
| 27 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 27 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 28 | 28 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 29 | 29 | |
| 30 | 30 | if (null === $fieldDefinition) { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $contentCreateStruct = $data->payload; |
| 54 | 54 | $contentType = $contentCreateStruct->contentType; |
| 55 | 55 | |
| 56 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 56 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 57 | 57 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 58 | 58 | |
| 59 | 59 | if (null === $fieldDefinition) { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | /** @var \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType */ |
| 28 | 28 | $contentType = $data->definition; |
| 29 | 29 | |
| 30 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 30 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 31 | 31 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 32 | 32 | |
| 33 | 33 | if (null === $fieldDefinition) { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** @var \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType */ |
| 71 | 71 | $contentType = $data->definition; |
| 72 | 72 | |
| 73 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 73 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 74 | 74 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 75 | 75 | |
| 76 | 76 | if (null === $fieldDefinition) { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | /** @var \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType */ |
| 28 | 28 | $contentType = $data->definition; |
| 29 | 29 | |
| 30 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 30 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 31 | 31 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 32 | 32 | |
| 33 | 33 | if (null === $fieldDefinition) { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** @var \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType */ |
| 71 | 71 | $contentType = $data->definition; |
| 72 | 72 | |
| 73 | - $fieldDefinitionIdentifier = (string) $propertyPath; |
|
| 73 | + $fieldDefinitionIdentifier = (string)$propertyPath; |
|
| 74 | 74 | $fieldDefinition = $contentType->getFieldDefinition($fieldDefinitionIdentifier); |
| 75 | 75 | |
| 76 | 76 | if (null === $fieldDefinition) { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | public function convertFieldValueToForm(Value $value, ?FieldDefinition $fieldDefinition = null): int |
| 30 | 30 | { |
| 31 | - return (int) $value->value; |
|
| 31 | + return (int)$value->value; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function convertFieldValueFromForm($data): IntegerValue\Value |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $options = $this->getDefaultFieldOptions($fieldDefinition, $languageCode, $content); |
| 50 | 50 | |
| 51 | 51 | if (!$content instanceof Content && $fieldDefinition->defaultValue instanceof IntegerValue\Value) { |
| 52 | - $options['data'] = (int) $fieldDefinition->defaultValue->value; |
|
| 52 | + $options['data'] = (int)$fieldDefinition->defaultValue->value; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | if (!empty($fieldDefinition->getValidatorConfiguration()['IntegerValueValidator'])) { |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if (!$content instanceof Content && $fieldDefinition->defaultValue instanceof FloatValue\Value) { |
| 71 | - $options['data'] = (float) $fieldDefinition->defaultValue->value; |
|
| 71 | + $options['data'] = (float)$fieldDefinition->defaultValue->value; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | $formBuilder->add($fieldDefinition->identifier, NumberType::class, $options); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | public function convertFieldValueFromForm($value): SelectionValue\Value |
| 18 | 18 | { |
| 19 | - return new SelectionValue\Value((array) $value); |
|
| 19 | + return new SelectionValue\Value((array)$value); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function convertFieldValueToForm(Value $value, ?FieldDefinition $fieldDefinition = null) |