original_string: public static function append_suffix($filename) {
          debugging('The function repository::append_suffix() has been deprecated. Use repository::get_unused_filename() instead.',
              DEBUG_DEVELOPER);
          $pathinfo = pathinfo($filename);
          if (empty($pathinfo['extension'])) {
              return $filename . RENAME_SUFFIX;
          } else {
              return $pathinfo['filename'] . RENAME_SUFFIX . '.' . $pathinfo['extension'];
          }
      }
code: public static function append_suffix($filename) {
          debugging('The function repository::append_suffix() has been deprecated. Use repository::get_unused_filename() instead.',
              DEBUG_DEVELOPER);
          $pathinfo = pathinfo($filename);
          if (empty($pathinfo['extension'])) {
              return $filename . RENAME_SUFFIX;
          } else {
              return $pathinfo['filename'] . RENAME_SUFFIX . '.' . $pathinfo['extension'];
          }
      }
code_tokens: public static function append_suffix ( $ filename ) { debugging ( 'The function repository::append_suffix() has been deprecated. Use repository::get_unused_filename() instead.' , DEBUG_DEVELOPER ) ; $ pathinfo = pathinfo ( $ filename ) ; if ( empty ( $ pathinfo [ 'extension' ] ) ) { return $ filename . RENAME_SUFFIX ; } else { return $ pathinfo [ 'filename' ] . RENAME_SUFFIX . '.' . $ pathinfo [ 'extension' ] ; } }
docstring: Append a suffix to filename.
  
  @static
  @param string $filename
  @return string
  @deprecated since 2.5
docstring_tokens: Append a suffix to filename .