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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Reader/Reader.php
Expand Up @@ -20,7 +20,7 @@

namespace Zend\Feed\Reader;

use Zend\Cache\Storage\Adapter\AdapterInterface as CacheAdapter,
use Zend\Cache\Storage\StorageInterface as CacheStorage,
Zend\Http,
Zend\Loader,
Zend\Stdlib\ErrorHandler,
Expand Down Expand Up @@ -66,7 +66,7 @@ class Reader
/**
* Cache instance
*
* @var CacheAdapter
* @var CacheStorage
*/
protected static $_cache = null;

Expand Down Expand Up @@ -112,7 +112,7 @@ class Reader
/**
* Get the Feed cache
*
* @return CacheAdapter
* @return CacheStorage
*/
public static function getCache()
{
Expand All @@ -122,10 +122,10 @@ public static function getCache()
/**
* Set the feed cache
*
* @param CacheAdapter $cache
* @param CacheStorage $cache
* @return void
*/
public static function setCache(CacheAdapter $cache)
public static function setCache(CacheStorage $cache)
{
self::$_cache = $cache;
}
Expand Down Expand Up @@ -253,7 +253,7 @@ public static function import($uri, $etag = null, $lastModified = null)
return self::importString($responseXml);
} elseif ($cache) {
$data = $cache->getItem($cacheId);
if ($data !== false) {
if ($data) {
return self::importString($data);
}
$response = $client->send();
Expand Down

0 comments on commit f8868a0

Please sign in to comment.