private function loadFile(string $file) : string
    {
        if (!file_exists($file)) {
            throw new \Exception($file . ' not found');
        }
        return (string)file_get_contents($file);
    }
private function loadFile(string $file) : string
    {
        if (!file_exists($file)) {
            throw new \Exception($file . ' not found');
        }
        return (string)file_get_contents($file);
    }
private function loadFile ( string $ file ) : string { if ( ! file_exists ( $ file ) ) { throw new \ Exception ( $ file . ' not found' ) ; } return ( string ) file_get_contents ( $ file ) ; }
Load a composer file

@param  string $file
@return string
@throws \Exception
Load a composer file