src/Parser/FileParser.php
protected function parse($file)
    {
        $data = json_decode(file_get_contents($file), true) ?: Yaml::parse(file_get_contents($file));

        return $data;
    }
protected function parse($file)
    {
        $data = json_decode(file_get_contents($file), true) ?: Yaml::parse(file_get_contents($file));

        return $data;
    }
protected function parse ( $ file ) { $ data = json_decode ( file_get_contents ( $ file ) , true ) ? : Yaml :: parse ( file_get_contents ( $ file ) ) ; return $ data ; }
Parse the swagger file

@param string $file - fully qualified file path
@return array
Parse the swagger file