@@ -128,8 +128,7 @@ |
||
| 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 | |
@@ -41,8 +41,7 @@ |
||
| 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 | } |