src/Repository/RemoteWorkshopRepository.php
/**
     * Check if a string matches a search term.
     */
Check if a string matches a search term.
Check if a string matches a search term .
private function matches(string $string, string $searchTerm): bool
    {
        $string = strtolower($string);
        if (false !== strpos($string, $searchTerm)) {
            return true;
        }
        if (levenshtein($searchTerm, $string) <= 3) {
            return true;
        }
        return false;
    }
private function matches ( string $ string , string $ searchTerm ) : bool { $ string = strtolower ( $ string ) ; if ( false !== strpos ( $ string , $ searchTerm ) ) { return true ; } if ( levenshtein ( $ searchTerm , $ string ) <= 3 ) { return true ; } return false ; }
Check if a string matches a search term.
Check if a string matches a search term .