protected function parse($coverallsYmlPath)
    {
        $file = new Path();
        $path = realpath($coverallsYmlPath);

        if ($file->isRealFileReadable($path)) {
            $parser = new Parser();
            $yml = $parser->parse(file_get_contents($path));

            return empty($yml) ? [] : $yml;
        }

        return [];
    }
protected function parse($coverallsYmlPath)
    {
        $file = new Path();
        $path = realpath($coverallsYmlPath);

        if ($file->isRealFileReadable($path)) {
            $parser = new Parser();
            $yml = $parser->parse(file_get_contents($path));

            return empty($yml) ? [] : $yml;
        }

        return [];
    }
protected function parse ( $ coverallsYmlPath ) { $ file = new Path ( ) ; $ path = realpath ( $ coverallsYmlPath ) ; if ( $ file -> isRealFileReadable ( $ path ) ) { $ parser = new Parser ( ) ; $ yml = $ parser -> parse ( file_get_contents ( $ path ) ) ; return empty ( $ yml ) ? [ ] : $ yml ; } return [ ] ; }
Parse .coveralls.yml.

@param string $coverallsYmlPath Path to .coveralls.yml.

@throws \Symfony\Component\Yaml\Exception\ParseException If the YAML is not valid

@return array
Parse . coveralls . yml .