plugin/exo/Entity/Misc/Hole.php
public function getKeyword($text)
    {
        $found = null;
        $text = trim($text);
        $iText = strtoupper(TextNormalizer::stripDiacritics($text));
        foreach ($this->keywords as $keyword) {
            /** @var Keyword $keyword */
            $tmpText = trim($keyword->getText());
            if ($tmpText === $text
                || (
                    empty($keyword->isCaseSensitive()) &&
                    strtoupper(TextNormalizer::stripDiacritics($tmpText)) === $iText)
            ) {
                $found = $keyword;
                break;
            }
        }

        return $found;
    }
public function getKeyword($text)
    {
        $found = null;
        $text = trim($text);
        $iText = strtoupper(TextNormalizer::stripDiacritics($text));
        foreach ($this->keywords as $keyword) {
            /** @var Keyword $keyword */
            $tmpText = trim($keyword->getText());
            if ($tmpText === $text
                || (
                    empty($keyword->isCaseSensitive()) &&
                    strtoupper(TextNormalizer::stripDiacritics($tmpText)) === $iText)
            ) {
                $found = $keyword;
                break;
            }
        }

        return $found;
    }
public function getKeyword ( $ text ) { $ found = null ; $ text = trim ( $ text ) ; $ iText = strtoupper ( TextNormalizer :: stripDiacritics ( $ text ) ) ; foreach ( $ this -> keywords as $ keyword ) { /** @var Keyword $keyword */ $ tmpText = trim ( $ keyword -> getText ( ) ) ; if ( $ tmpText === $ text || ( empty ( $ keyword -> isCaseSensitive ( ) ) && strtoupper ( TextNormalizer :: stripDiacritics ( $ tmpText ) ) === $ iText ) ) { $ found = $ keyword ; break ; } } return $ found ; }
Get a keyword by text.

@param string $text

@return Keyword
Get a keyword by text .