original_string: public function getRulesFor($action, $resource)
      {
          $aliases = array_merge((array) $action, $this->getAliasesForAction($action));
          return $this->rules->getRelevantRules($aliases, $resource);
      }
code: public function getRulesFor($action, $resource)
      {
          $aliases = array_merge((array) $action, $this->getAliasesForAction($action));
          return $this->rules->getRelevantRules($aliases, $resource);
      }
code_tokens: public function getRulesFor ( $ action , $ resource ) { $ aliases = array_merge ( ( array ) $ action , $ this -> getAliasesForAction ( $ action ) ) ; return $ this -> rules -> getRelevantRules ( $ aliases , $ resource ) ; }
docstring: Returns all rules relevant to the given action and resource
  
  @return RuleRepository
docstring_tokens: Returns all rules relevant to the given action and resource