private function findSimilarityIndex(string $line)
    {
        $matches = [];
        if (preg_match('/^similarity index (.*)\%$/', $line, $matches)) {
            $this->similarityIndex = $matches[1];
        }
    }
private function findSimilarityIndex(string $line)
    {
        $matches = [];
        if (preg_match('/^similarity index (.*)\%$/', $line, $matches)) {
            $this->similarityIndex = $matches[1];
        }
    }
private function findSimilarityIndex ( string $ line ) { $ matches = [ ] ; if ( preg_match ( '/^similarity index (.*)\%$/' , $ line , $ matches ) ) { $ this -> similarityIndex = $ matches [ 1 ] ; } }
look for similarity index in the line

@param string $line line content
look for similarity index in the line