original_string: public function getByRole($role_id)
      {
          foreach ($this->getHandlers() as $filter) {
              if (in_array($role_id, (array) $filter['role_id'])) {
                  return $filter;
              }
          }
  
          return array();
      }
code: public function getByRole($role_id)
      {
          foreach ($this->getHandlers() as $filter) {
              if (in_array($role_id, (array) $filter['role_id'])) {
                  return $filter;
              }
          }
  
          return array();
      }
code_tokens: public function getByRole ( $ role_id ) { foreach ( $ this -> getHandlers ( ) as $ filter ) { if ( in_array ( $ role_id , ( array ) $ filter [ 'role_id' ] ) ) { return $ filter ; } } return array ( ) ; }
docstring: Returns a filter for the given user role ID
  @param integer $role_id
  @return array
docstring_tokens: Returns a filter for the given user role ID