Skip to content

Commit

Permalink
CS: return instead of return null
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus authored and Ocramius committed Dec 16, 2014
1 parent 1075196 commit c012790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Storage/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected function internalGetItem(& $normalizedKey, & $success = null, & $casTo

if ($value === false) {
$success = false;
return null;
return;
}

$success = true;
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/RedisResourceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ protected function extractPassword($resource, $serverUri)
}

if (! is_string($serverUri)) {
return null;
return;
}

// parse server from URI host{:?port}
$server = trim($serverUri);

if (strpos($server, '/') === 0) {
return null;
return;
}

//non unix domain socket connection
Expand Down

0 comments on commit c012790

Please sign in to comment.