src/Rocketeer/Services/Config/Files/Loaders/ConfigurationLoader.php
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;
    }
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;
    }
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 ; }
Automatically wrap configuration in their arrays.

@param SplFileInfo $file
@param array       $contents

@return array
Automatically wrap configuration in their arrays .