src/Repository/RemoteWorkshopRepository.php
/**
     * Check if a workshop matches a search term.
     */
Check if a workshop matches a search term.
Check if a workshop matches a search term .
private function matchesWorkshop(Workshop $workshop, string $searchTerm): bool
    {
        if ($this->matches($workshop->getCode(), $searchTerm)) {
            return true;
        }
        if ($this->matches($workshop->getDisplayName(), $searchTerm)) {
            return true;
        }
        return false;
    }
private function matchesWorkshop ( Workshop $ workshop , string $ searchTerm ) : bool { if ( $ this -> matches ( $ workshop -> getCode ( ) , $ searchTerm ) ) { return true ; } if ( $ this -> matches ( $ workshop -> getDisplayName ( ) , $ searchTerm ) ) { return true ; } return false ; }
Check if a workshop matches a search term.
Check if a workshop matches a search term .