@@ -73,6 +73,9 @@ |
||
| 73 | 73 | return $classMetadata; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | + /** |
|
| 77 | + * @param string $type |
|
| 78 | + */ |
|
| 76 | 79 | private function extractOptionSet(\DOMXpath $xpath, \DOMElement $fieldEl, $type) |
| 77 | 80 | { |
| 78 | 81 | foreach ($xpath->query('./psict:' . $type, $fieldEl) as $setEl) { |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\ContentType\Standard\Field; |
| 6 | 6 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | 'field_type', |
| 43 | 43 | ]); |
| 44 | 44 | $options->setDefault('field_options', []); |
| 45 | - $options->setFormMapper(function ($options, $sharedOptions) { |
|
| 45 | + $options->setFormMapper(function($options, $sharedOptions) { |
|
| 46 | 46 | $field = $this->registry->get($sharedOptions['field_type']); |
| 47 | 47 | $resolver = new FieldOptionsResolver(); |
| 48 | 48 | $field->configureOptions($resolver); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | ]; |
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | - $options->setViewMapper(function ($options, $shared) { |
|
| 59 | + $options->setViewMapper(function($options, $shared) { |
|
| 60 | 60 | return [ |
| 61 | 61 | 'field_type' => $shared['field_type'], |
| 62 | 62 | 'field_options' => $shared['field_options'], |