Skip to content

Commit

Permalink
added: empty array in present if user want to get all
Browse files Browse the repository at this point in the history
  • Loading branch information
nahid committed Aug 25, 2019
1 parent 674b7a0 commit 3284f8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public function process(array $data) : array
$present = $this->present();
$record = [];

if (count($present) == 0) {
$record = $data;
}

foreach ($present as $key => $value) {
if (is_numeric($key)) {
$key = $value;
Expand Down

0 comments on commit 3284f8d

Please sign in to comment.