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

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Burns committed Jan 5, 2017
1 parent 1481edc commit ba50671
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Storage/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ protected function normalizeKeyValuePairs(array & $keyValuePairs)
public function get($key, $default = null)
{
$result = $this->getItem($key);
return $result === null ? $default : $result;
return null === $result ? $default : $result;
}

/**
Expand All @@ -1610,10 +1610,10 @@ public function delete($key)
*/
public function clear()
{
if ($this instanceof FlushableInterface) {
return $this->flush();
if (! $this instanceof FlushableInterface) {
return false;
}
return false;
return $this->flush();
}

/**
Expand Down

0 comments on commit ba50671

Please sign in to comment.