original_string: public static function clean_file_extensions($extensions) {
  
          debugging('The method workshop::clean_file_extensions() is deprecated.
              Please use the methods provided by the \core_form\filetypes_util class.', DEBUG_DEVELOPER);
  
          $extensions = self::normalize_file_extensions($extensions);
  
          foreach ($extensions as $i => $extension) {
              $extensions[$i] = ltrim($extension, '.');
          }
  
          return implode(', ', $extensions);
      }
code: public static function clean_file_extensions($extensions) {
  
          debugging('The method workshop::clean_file_extensions() is deprecated.
              Please use the methods provided by the \core_form\filetypes_util class.', DEBUG_DEVELOPER);
  
          $extensions = self::normalize_file_extensions($extensions);
  
          foreach ($extensions as $i => $extension) {
              $extensions[$i] = ltrim($extension, '.');
          }
  
          return implode(', ', $extensions);
      }
code_tokens: public static function clean_file_extensions ( $ extensions ) { debugging ( 'The method workshop::clean_file_extensions() is deprecated.
              Please use the methods provided by the \core_form\filetypes_util class.' , DEBUG_DEVELOPER ) ; $ extensions = self :: normalize_file_extensions ( $ extensions ) ; foreach ( $ extensions as $ i => $ extension ) { $ extensions [ $ i ] = ltrim ( $ extension , '.' ) ; } return implode ( ', ' , $ extensions ) ; }
docstring: Cleans the user provided list of file extensions.
  
  @deprecated since Moodle 3.4 MDL-56486 - please use the {@link core_form\filetypes_util}
  @param string $extensions
  @return string
docstring_tokens: Cleans the user provided list of file extensions .