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 4a283d4 commit 9dff177Copy full SHA for 9dff177
Helper/ArrayDeduplicator.php
@@ -47,10 +47,16 @@ public function dedupeArrayOfArrays(array $data): array {
47
// );
48
49
// Experiment 2
50
+ // $decoded = [];
51
+ // array_walk($unique, function($item) use (&$decoded) {
52
+ // $decoded[] = json_decode((string) $item, true);
53
+ // });
54
+
55
+ // Experiment 3
56
$decoded = [];
- array_walk($unique, function($item) use (&$decoded) {
57
+ foreach ($unique as $item) {
58
$decoded[] = json_decode((string) $item, true);
- });
59
+ }
60
61
return $decoded;
62
}
0 commit comments