@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | */ |
| 632 | 632 | protected function processCollection($results, callable $before = null, callable $after = null) |
| 633 | 633 | { |
| 634 | - $collection = $this->createCollection(); |
|
| 634 | + $collection = $this->createCollection(); |
|
| 635 | 635 | foreach ($results as $objData) { |
| 636 | 636 | $obj = $this->processModel($objData, $before, $after); |
| 637 | 637 | |
@@ -662,13 +662,13 @@ discard block |
||
| 662 | 662 | $obj = $this->factory()->create($objType); |
| 663 | 663 | |
| 664 | 664 | if ($before !== null) { |
| 665 | - call_user_func_array($before, [ &$obj ]); |
|
| 665 | + call_user_func_array($before, [&$obj]); |
|
| 666 | 666 | } |
| 667 | 667 | |
| 668 | 668 | $obj->setFlatData($objData); |
| 669 | 669 | |
| 670 | 670 | if ($after !== null) { |
| 671 | - call_user_func_array($after, [ &$obj ]); |
|
| 671 | + call_user_func_array($after, [&$obj]); |
|
| 672 | 672 | } |
| 673 | 673 | |
| 674 | 674 | return $obj; |