We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c036a15 commit 457c6fdCopy full SHA for 457c6fd
src/Processors/DataProcessor.php
@@ -180,17 +180,7 @@ protected function selectOnlyNeededColumns(array $data)
180
if (is_null($this->onlyColumns)) {
181
return $data;
182
} else {
183
- $dotted_array = array_intersect_key(
184
- array_dot($data),
185
- array_flip(array_merge($this->onlyColumns, $this->exceptions))
186
- );
187
-
188
- $nested_array = [];
189
- foreach ($dotted_array as $key => $value) {
190
- array_set($nested_array, $key, $value);
191
- }
192
193
- return $nested_array;
+ return array_intersect_key($data, array_flip(array_merge($this->onlyColumns, $this->exceptions)));
194
}
195
196
0 commit comments