Skip to content

Commit

Permalink
Merge pull request #104 from Kevinrob/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
Kevinrob authored Jan 10, 2018
2 parents 6905aaf + b347a58 commit dda3440
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Storage/Psr16CacheStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public function fetch($key)
*/
public function save($key, CacheEntry $data)
{
$ttl = $data->getTTL();
if ($ttl === 0) {
$ttl = $data->getTTL();
if ($ttl === 0) {
return $this->cache->set($key, $data);
}
return $this->cache->set($key, $data, $data->getTTL());
}
return $this->cache->set($key, $data, $data->getTTL());
}

/**
Expand Down

0 comments on commit dda3440

Please # to comment.