protected function wrapConfigurationContents(SplFileInfo $file, array $contents)
    {
        $key = $file->getBasename('.'.$file->getExtension());
        if (array_keys($contents) !== [$key] || !is_array($contents[$key])) {
            return [$key => $contents];
        } elseif (array_keys($contents) === ['rocketeer']) {
            return $contents['rocketeer'];
        }

        return $contents;
    }