Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/zendframework/zendframework#6093-dead-code-clean…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Apr 8, 2014
2 parents 18ac29e + e095fa4 commit ec7ea9f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Reader/Feed/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ protected function indexEntries()
{
if ($this->getType() == Reader\Reader::TYPE_ATOM_10 ||
$this->getType() == Reader\Reader::TYPE_ATOM_03) {
$entries = array();
$entries = $this->xpath->evaluate('//atom:entry');

foreach ($entries as $index => $entry) {
Expand Down
2 changes: 0 additions & 2 deletions src/Reader/Feed/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,6 @@ public function getCategories()
*/
protected function indexEntries()
{
$entries = array();

if ($this->getType() !== Reader\Reader::TYPE_RSS_10 && $this->getType() !== Reader\Reader::TYPE_RSS_090) {
$entries = $this->xpath->evaluate('//item');
} else {
Expand Down
1 change: 0 additions & 1 deletion src/Reader/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ public static function import($uri, $etag = null, $lastModified = null)
{
$cache = self::getCache();
$feed = null;
$responseXml = '';
$client = self::getHttpClient();
$client->resetParameters();
$headers = new ZendHttp\Headers();
Expand Down
1 change: 0 additions & 1 deletion src/Writer/AbstractFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ protected function _validateTagUri($id)
{
if (preg_match('/^tag:(?P<name>.*),(?P<date>\d{4}-?\d{0,2}-?\d{0,2}):(?P<specific>.*)(.*:)*$/', $id, $matches)) {
$dvalid = false;
$nvalid = false;
$date = $matches['date'];
$d6 = strtotime($date);
if ((strlen($date) == 4) && $date <= date('Y')) {
Expand Down
2 changes: 0 additions & 2 deletions src/Writer/Renderer/Entry/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ protected function _validateTagUri($id)
{
if (preg_match('/^tag:(?P<name>.*),(?P<date>\d{4}-?\d{0,2}-?\d{0,2}):(?P<specific>.*)(.*:)*$/', $id, $matches)) {
$dvalid = false;
$nvalid = false;
$date = $matches['date'];
$d6 = strtotime($date);
if ((strlen($date) == 4) && $date <= date('Y')) {
Expand Down Expand Up @@ -353,7 +352,6 @@ protected function _setContent(DOMDocument $dom, DOMElement $root)
*/
protected function _loadXhtml($content)
{
$xhtml = '';
if (class_exists('tidy', false)) {
$tidy = new \tidy;
$config = array(
Expand Down

0 comments on commit ec7ea9f

Please sign in to comment.