public function distance($text1, $text2)
    {
        return max(strlen($text1), strlen($text2)) - $this->similarity($text1, $text2);
    }
public function distance($text1, $text2)
    {
        return max(strlen($text1), strlen($text2)) - $this->similarity($text1, $text2);
    }
public function distance ( $ text1 , $ text2 ) { return max ( strlen ( $ text1 ) , strlen ( $ text2 ) ) - $ this -> similarity ( $ text1 , $ text2 ) ; }
Returns the distance max string length minus similarity
@param string $text1
@param string $text2
@return int
Returns the distance max string length minus similarity