private function validateXml() : void
    {
        if (!isset($this->xml->project) || !isset($this->xml->project->metrics)) {
            throw new RuntimeException('invalid clover xml file');
        }
    }
private function validateXml() : void
    {
        if (!isset($this->xml->project) || !isset($this->xml->project->metrics)) {
            throw new RuntimeException('invalid clover xml file');
        }
    }
private function validateXml ( ) : void { if ( ! isset ( $ this -> xml -> project ) || ! isset ( $ this -> xml -> project -> metrics ) ) { throw new RuntimeException ( 'invalid clover xml file' ) ; } }
Make sure you have a valid xml structure

@return void
@throws \RuntimeException
Make sure you have a valid xml structure