src/main/php/request/UserAgent.php
public function isBot(): bool
    {
        if (null === $this->isBot) {
            $this->isBot = false;
            foreach ($this->botSignatures as $botSignature) {
                if (preg_match($botSignature, $this->name) === 1) {
                    $this->isBot = true;
                    break;
                }
            }
        }

        return $this->isBot;

    }
public function isBot(): bool
    {
        if (null === $this->isBot) {
            $this->isBot = false;
            foreach ($this->botSignatures as $botSignature) {
                if (preg_match($botSignature, $this->name) === 1) {
                    $this->isBot = true;
                    break;
                }
            }
        }

        return $this->isBot;

    }
public function isBot ( ) : bool { if ( null === $ this -> isBot ) { $ this -> isBot = false ; foreach ( $ this -> botSignatures as $ botSignature ) { if ( preg_match ( $ botSignature , $ this -> name ) === 1 ) { $ this -> isBot = true ; break ; } } } return $ this -> isBot ; }
returns whether user agent is a bot or not

@XmlAttribute(attributeName='isBot')
@api
@return  bool
returns whether user agent is a bot or not