original_string: protected static function getRulesGroups()
      {
          $groups = [];
  
          foreach (get_class_vars(get_called_class()) as $property => $val) {
              if (preg_match('/^.*rules$/i', $property)) {
                  $groups[] = $property;
              }
          }
  
          return $groups;
      }
code: protected static function getRulesGroups()
      {
          $groups = [];
  
          foreach (get_class_vars(get_called_class()) as $property => $val) {
              if (preg_match('/^.*rules$/i', $property)) {
                  $groups[] = $property;
              }
          }
  
          return $groups;
      }
code_tokens: protected static function getRulesGroups ( ) { $ groups = [ ] ; foreach ( get_class_vars ( get_called_class ( ) ) as $ property => $ val ) { if ( preg_match ( '/^.*rules$/i' , $ property ) ) { $ groups [ ] = $ property ; } } return $ groups ; }
docstring: Get all the rules groups defined on this model.
  
  @return array
docstring_tokens: Get all the rules groups defined on this model .