Completed
Pull Request — master (#53)
by Daniel
04:47
created
src/Metadata/Driver/XmlDriver.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $dom->load($path);
23 23
 
24 24
         if (!$dom->schemaValidate(__DIR__ . '/../../../schema/mapping.xsd')) {
25
-            $message = array_reduce(libxml_get_errors(), function ($foo, $error) {
25
+            $message = array_reduce(libxml_get_errors(), function($foo, $error) {
26 26
                 return $error->message;
27 27
             });
28 28
             throw new \InvalidArgumentException(sprintf(
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 $shared = $this->extractOptionSet($xpath, $fieldEl, 'shared-options');
51 51
                 $form = $this->extractOptionSet($xpath, $fieldEl, 'form-options');
52 52
                 $view = $this->extractOptionSet($xpath, $fieldEl, 'view-options');
53
-                $storage  = $this->extractOptionSet($xpath, $fieldEl, 'storage-options');
53
+                $storage = $this->extractOptionSet($xpath, $fieldEl, 'storage-options');
54 54
 
55 55
                 $propertyMetadata = new PropertyMetadata(
56 56
                     $class->getName(),
Please login to merge, or discard this patch.
src/Standard/Field/CollectionField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'],
Please login to merge, or discard this patch.