$common['files']]; // no more required. unset($common['files']); /** * $collection => id of the parent collection where this will be inserted * $id => id of this collection * name => name of this collection * project => whether this collection should be created per project * attributes => list of attributes * indexes => list of indexes */ $collections = [ 'buckets' => $buckets, 'databases' => $databases, 'projects' => array_merge_recursive($projects, $common), 'console' => array_merge_recursive($platform, $common), 'logs' => $logs, ]; return $collections;