original_string: public static function clearDocumentRoot()
      {
          $rootDirs = array("css", "js", "media", "font");
          foreach ($rootDirs as $dir) {
              if (file_exists(WEB_DIR . DIRECTORY_SEPARATOR . $dir)) {
                  try {
                      self::deleteDir(WEB_DIR . DIRECTORY_SEPARATOR . $dir);
                  } catch (\Exception $e) {
                      Logger::log($e->getMessage());
                  }
              }
          }
      }
code: public static function clearDocumentRoot()
      {
          $rootDirs = array("css", "js", "media", "font");
          foreach ($rootDirs as $dir) {
              if (file_exists(WEB_DIR . DIRECTORY_SEPARATOR . $dir)) {
                  try {
                      self::deleteDir(WEB_DIR . DIRECTORY_SEPARATOR . $dir);
                  } catch (\Exception $e) {
                      Logger::log($e->getMessage());
                  }
              }
          }
      }
code_tokens: public static function clearDocumentRoot ( ) { $ rootDirs = array ( "css" , "js" , "media" , "font" ) ; foreach ( $ rootDirs as $ dir ) { if ( file_exists ( WEB_DIR . DIRECTORY_SEPARATOR . $ dir ) ) { try { self :: deleteDir ( WEB_DIR . DIRECTORY_SEPARATOR . $ dir ) ; } catch ( \ Exception $ e ) { Logger :: log ( $ e -> getMessage ( ) ) ; } } } }
docstring: Method that remove all data in the document root path
docstring_tokens: Method that remove all data in the document root path