original_string: public function rules() : array
      {
          $referral = mb_strtolower($this->request->get('referral') ?? 'profile');
  
          $resolver = 'rulesFor' . ucfirst($referral);
  
          return $this->$resolver();
      }
code: public function rules() : array
      {
          $referral = mb_strtolower($this->request->get('referral') ?? 'profile');
  
          $resolver = 'rulesFor' . ucfirst($referral);
  
          return $this->$resolver();
      }
code_tokens: public function rules ( ) : array { $ referral = mb_strtolower ( $ this -> request -> get ( 'referral' ) ?? 'profile' ) ; $ resolver = 'rulesFor' . ucfirst ( $ referral ) ; return $ this -> $ resolver ( ) ; }
docstring: Resolves the validation rules for a given referral form.
  
  @return array
docstring_tokens: Resolves the validation rules for a given referral form .