original_string: private function setupRules($rules)
      {
          // prepares filter for requiredIf
          $rules = Utils\HelperRequiredIf::prepare($this, $rules);
  
          // prepares filter for sameWith.
          $rules = Utils\HelperSameWith::prepare($this, $rules);
  
          return $rules;
      }
code: private function setupRules($rules)
      {
          // prepares filter for requiredIf
          $rules = Utils\HelperRequiredIf::prepare($this, $rules);
  
          // prepares filter for sameWith.
          $rules = Utils\HelperSameWith::prepare($this, $rules);
  
          return $rules;
      }
code_tokens: private function setupRules ( $ rules ) { // prepares filter for requiredIf $ rules = Utils \ HelperRequiredIf :: prepare ( $ this , $ rules ) ; // prepares filter for sameWith. $ rules = Utils \ HelperSameWith :: prepare ( $ this , $ rules ) ; return $ rules ; }
docstring: set up rules;
  - add required rule based on requiredIf rule.
  - add sameAs rule based on sameWith rule.
  
  @param array|Rules $rules
  @return array|Rules
docstring_tokens: set up rules ; - add required rule based on requiredIf rule . - add sameAs rule based on sameWith rule .