original_string: public function isMobile()
      {
          deprecationWarning(
              'RequestHandlerComponent::isMobile() is deprecated. Use ServerRequest::is(\'mobile\') instead.'
          );
  
          $request = $this->getController()->getRequest();
  
          return $request->is('mobile') || $this->accepts('wap');
      }
code: public function isMobile()
      {
          deprecationWarning(
              'RequestHandlerComponent::isMobile() is deprecated. Use ServerRequest::is(\'mobile\') instead.'
          );
  
          $request = $this->getController()->getRequest();
  
          return $request->is('mobile') || $this->accepts('wap');
      }
code_tokens: public function isMobile ( ) { deprecationWarning ( 'RequestHandlerComponent::isMobile() is deprecated. Use ServerRequest::is(\'mobile\') instead.' ) ; $ request = $ this -> getController ( ) -> getRequest ( ) ; return $ request -> is ( 'mobile' ) || $ this -> accepts ( 'wap' ) ; }
docstring: Returns true if user agent string matches a mobile web browser, or if the
  client accepts WAP content.
  
  @return bool True if user agent is a mobile web browser
  @deprecated 3.7.0 Use ServerRequest::is('mobile') instead.
docstring_tokens: Returns true if user agent string matches a mobile web browser or if the client accepts WAP content .