Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use array_mergev()

  • Loading branch information...
commit 9cfe794e6cc43e2480c78901c7254ddb30bc3056 1 parent f686427
vrana authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/publisher/DivinerPublisher.php
View
6 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.