Skip to content

Commit 3284f8d

Browse files
committed
added: empty array in present if user want to get all
1 parent 674b7a0 commit 3284f8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Presenter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public function process(array $data) : array
7272
$present = $this->present();
7373
$record = [];
7474

75+
if (count($present) == 0) {
76+
$record = $data;
77+
}
78+
7579
foreach ($present as $key => $value) {
7680
if (is_numeric($key)) {
7781
$key = $value;

0 commit comments

Comments
 (0)