Completed
Pull Request — master (#69)
by Greg
05:57
created
src/FormatterManager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,7 @@
 block discarded – undo
128 128
             $defaultFields = $options->get(FormatterOptions::DEFAULT_FIELDS, [], '');
129 129
             $description = 'Available fields: ' . implode(', ', $this->availableFieldsList($availableFields));
130 130
             $automaticOptions[FormatterOptions::FIELDS] = new InputOption(FormatterOptions::FIELDS, '', InputOption::VALUE_REQUIRED, $description, $defaultFields);
131
-        }
132
-        elseif ($dataTypeClass->implementsInterface(RestructureInterface::class)) {
131
+        } elseif ($dataTypeClass->implementsInterface(RestructureInterface::class)) {
133 132
             $automaticOptions[FormatterOptions::FIELDS] = new InputOption(FormatterOptions::FIELDS, '', InputOption::VALUE_REQUIRED, 'Dot notation of fields to include in output.', []);
134 133
         }
135 134
 
Please login to merge, or discard this patch.
src/Transformations/UnstructuredDataTransformation.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
                     foreach ($item as $key => $value) {
42 42
                         $result->set($key, $value);
43 43
                     }
44
-                }
45
-                else {
44
+                } else {
46 45
                     $result->set($label, $data->get($key));
47 46
                 }
48 47
             }
Please login to merge, or discard this patch.