original_string: public static function trim_extension_off($name)
      {
          if (strrpos($name, '.') !== false) {
              return substr($name, 0, strrpos($name, '.'));
          }
          
          return $name;
      }
code: public static function trim_extension_off($name)
      {
          if (strrpos($name, '.') !== false) {
              return substr($name, 0, strrpos($name, '.'));
          }
          
          return $name;
      }
code_tokens: public static function trim_extension_off ( $ name ) { if ( strrpos ( $ name , '.' ) !== false ) { return substr ( $ name , 0 , strrpos ( $ name , '.' ) ) ; } return $ name ; }
docstring: Helper function to strip the extension off and return the name without
  the extension.
  
  @param string
  
  @return string
docstring_tokens: Helper function to strip the extension off and return the name without the extension .