Permalink
Browse files

Rename variable.

  • Loading branch information...
sebastianbergmann committed Jan 21, 2011
1 parent 83f8fec commit a26e50e4abd79290ce05eeec57da304a1b8b4891
Showing with 5 additions and 5 deletions.
  1. +5 −5 PHPUnit/Util/XML.php
View
@@ -188,17 +188,17 @@ public static function load($actual, $isHtml = FALSE, $filename = '')
return $actual;
}
+ $document = new DOMDocument;
$internal = libxml_use_internal_errors(TRUE);
+ $message = '';
$reporting = error_reporting(0);
- $dom = new DOMDocument;
if ($isHtml) {
- $loaded = $dom->loadHTML($actual);
+ $loaded = $document->loadHTML($actual);
} else {
- $loaded = $dom->loadXML($actual);
+ $loaded = $document->loadXML($actual);
}
- $message = '';
foreach (libxml_get_errors() as $error) {
$message .= $error->message;
}
@@ -221,7 +221,7 @@ public static function load($actual, $isHtml = FALSE, $filename = '')
}
}
- return $dom;
+ return $document;
}
/**

0 comments on commit a26e50e

Please sign in to comment.