Permalink
Browse files

Use array_mergev()

  • Loading branch information...
1 parent f686427 commit 9cfe794e6cc43e2480c78901c7254ddb30bc3056 vrana committed Jun 15, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/publisher/DivinerPublisher.php
@@ -61,11 +61,7 @@ private static function flattenAtoms(array $atoms) {
$all_atoms[] = array($atom);
$all_atoms[] = $atom->getAllChildren();
}
- if ($all_atoms) {
- return call_user_func_array('array_merge', $all_atoms);
- } else {
- return array();
- }
+ return array_mergev($all_atoms);
}
private static function selectTopLevelAtoms(array $atoms) {

0 comments on commit 9cfe794

Please sign in to comment.