original_string: protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
      {
          $routeName = parent::getDefaultRouteName($class, $method);
  
          return preg_replace(array(
              '/(module_|controller_?)/',
              '/__/'
          ), array(
              '_',
              '_'
          ), $routeName);
      }
code: protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
      {
          $routeName = parent::getDefaultRouteName($class, $method);
  
          return preg_replace(array(
              '/(module_|controller_?)/',
              '/__/'
          ), array(
              '_',
              '_'
          ), $routeName);
      }
code_tokens: protected function getDefaultRouteName ( \ ReflectionClass $ class , \ ReflectionMethod $ method ) { $ routeName = parent :: getDefaultRouteName ( $ class , $ method ) ; return preg_replace ( array ( '/(module_|controller_?)/' , '/__/' ) , array ( '_' , '_' ) , $ routeName ) ; }
docstring: Makes the default route name more sane by removing common keywords.
  
  @param  \ReflectionClass $class A ReflectionClass instance
  @param  \ReflectionMethod $method A ReflectionMethod instance
  @return string
docstring_tokens: Makes the default route name more sane by removing common keywords .