original_string: public function getRules()
      {
          $action = $this->getActionReplaced();
          if (method_exists($this->formRequest, $action)) {
              return call_user_func([$this->formRequest, $action]);
          }
  
          if (method_exists($this->formRequest, 'rules')) {
              return call_user_func([$this->formRequest, 'rules']);
          }
  
          return [];
      }
code: public function getRules()
      {
          $action = $this->getActionReplaced();
          if (method_exists($this->formRequest, $action)) {
              return call_user_func([$this->formRequest, $action]);
          }
  
          if (method_exists($this->formRequest, 'rules')) {
              return call_user_func([$this->formRequest, 'rules']);
          }
  
          return [];
      }
code_tokens: public function getRules ( ) { $ action = $ this -> getActionReplaced ( ) ; if ( method_exists ( $ this -> formRequest , $ action ) ) { return call_user_func ( [ $ this -> formRequest , $ action ] ) ; } if ( method_exists ( $ this -> formRequest , 'rules' ) ) { return call_user_func ( [ $ this -> formRequest , 'rules' ] ) ; } return [ ] ; }
docstring: Get rules from ActionBasedFormRequest or FormRequest instance.
  
  @return array
docstring_tokens: Get rules from ActionBasedFormRequest or FormRequest instance .