protected function readComposerFile(SplFileInfo $file)
    {
        $json = $file->getContents();
        $data = json_decode($json, true);

        return $data;
    }
protected function readComposerFile(SplFileInfo $file)
    {
        $json = $file->getContents();
        $data = json_decode($json, true);

        return $data;
    }
protected function readComposerFile ( SplFileInfo $ file ) { $ json = $ file -> getContents ( ) ; $ data = json_decode ( $ json , true ) ; return $ data ; }
Reads a "composer.json" file.

@param SplFileInfo $file The file

@return array The parsed JSON filename
Reads a composer . json file .