@@ -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 (array $options, array $shared) { |
|
| 45 | + $options->setFormMapper(function(array $options, array $shared) { |
|
| 46 | 46 | |
| 47 | 47 | // default to allowing add / delete (contrary to the form types |
| 48 | 48 | // default behavior). |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | return $options; |
| 65 | 65 | }); |
| 66 | 66 | |
| 67 | - $options->setViewMapper(function ($options, $shared) { |
|
| 67 | + $options->setViewMapper(function($options, $shared) { |
|
| 68 | 68 | return array_merge($options, [ |
| 69 | 69 | 'field_type' => $shared['field_type'], |
| 70 | 70 | 'field_options' => $shared['field_options'], |