diff --git a/src/Reader/Entry/Rss.php b/src/Reader/Entry/Rss.php index 1e34fc83..9cfb7111 100644 --- a/src/Reader/Entry/Rss.php +++ b/src/Reader/Entry/Rss.php @@ -97,9 +97,9 @@ public function getAuthors() } $authors = array(); - $authors_dc = $this->getExtension('DublinCore')->getAuthors(); - if (!empty($authors_dc)) { - foreach ($authors_dc as $author) { + $authorsDc = $this->getExtension('DublinCore')->getAuthors(); + if (!empty($authorsDc)) { + foreach ($authorsDc as $author) { $authors[] = array( 'name' => $author['name'] ); diff --git a/src/Reader/Feed/Rss.php b/src/Reader/Feed/Rss.php index 4e80e273..978d22f9 100644 --- a/src/Reader/Feed/Rss.php +++ b/src/Reader/Feed/Rss.php @@ -88,9 +88,9 @@ public function getAuthors() } $authors = array(); - $authors_dc = $this->getExtension('DublinCore')->getAuthors(); - if (!empty($authors_dc)) { - foreach ($authors_dc as $author) { + $authorsDc = $this->getExtension('DublinCore')->getAuthors(); + if (!empty($authorsDc)) { + foreach ($authorsDc as $author) { $authors[] = array( 'name' => $author['name'] ); diff --git a/src/Reader/Reader.php b/src/Reader/Reader.php index c2075ed4..2b71781c 100644 --- a/src/Reader/Reader.php +++ b/src/Reader/Reader.php @@ -269,7 +269,7 @@ public static function import($uri, $etag = null, $lastModified = null) */ public static function importString($string) { - $libxml_errflag = libxml_use_internal_errors(true); + $libxmlErrflag = libxml_use_internal_errors(true); $oldValue = libxml_disable_entity_loader(true); $dom = new DOMDocument; $status = $dom->loadXML(trim($string)); @@ -281,7 +281,7 @@ public static function importString($string) } } libxml_disable_entity_loader($oldValue); - libxml_use_internal_errors($libxml_errflag); + libxml_use_internal_errors($libxmlErrflag); if (!$status) { // Build error message @@ -346,12 +346,12 @@ public static function findFeedLinks($uri) throw new Exception\RuntimeException("Failed to access $uri, got response code " . $response->getStatusCode()); } $responseHtml = $response->getBody(); - $libxml_errflag = libxml_use_internal_errors(true); + $libxmlErrflag = libxml_use_internal_errors(true); $oldValue = libxml_disable_entity_loader(true); $dom = new DOMDocument; $status = $dom->loadHTML(trim($responseHtml)); libxml_disable_entity_loader($oldValue); - libxml_use_internal_errors($libxml_errflag); + libxml_use_internal_errors($libxmlErrflag); if (!$status) { // Build error message $error = libxml_get_last_error(); @@ -401,14 +401,14 @@ public static function detectType($feed, $specOnly = false) ini_restore('track_errors'); ErrorHandler::stop(); if (!$status) { - if (!isset($php_errormsg)) { + if (!isset($phpErrormsg)) { if (function_exists('xdebug_is_enabled')) { - $php_errormsg = '(error message not available, when XDebug is running)'; + $phpErrormsg = '(error message not available, when XDebug is running)'; } else { - $php_errormsg = '(error message not available)'; + $phpErrormsg = '(error message not available)'; } } - throw new Exception\RuntimeException("DOMDocument cannot parse XML: $php_errormsg"); + throw new Exception\RuntimeException("DOMDocument cannot parse XML: $phpErrormsg"); } } else { throw new Exception\InvalidArgumentException('Invalid object/scalar provided: must'