original_string: protected function isAllowed() : bool
      {
          return $this->request->has('referral')
              && in_array($this->request->get('referral'), $this->allowedReferral);
      }
code: protected function isAllowed() : bool
      {
          return $this->request->has('referral')
              && in_array($this->request->get('referral'), $this->allowedReferral);
      }
code_tokens: protected function isAllowed ( ) : bool { return $ this -> request -> has ( 'referral' ) && in_array ( $ this -> request -> get ( 'referral' ) , $ this -> allowedReferral ) ; }
docstring: Checks whether the referral form is allowed to make the incoming request.
  
  @return bool
docstring_tokens: Checks whether the referral form is allowed to make the incoming request .