Skip to content

Commit

Permalink
Merge pull request #9 from Kevinrob/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
Kevinrob committed Jul 16, 2015
2 parents 865528a + 9013866 commit 9556387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CacheMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected static function getRequestWithReValidationHeader(RequestInterface $req
*/
protected static function addReValidationRequest(
RequestInterface $request,
CacheStorageInterface &$cacheStorage,
CacheStorageInterface & $cacheStorage,
CacheEntry $cacheEntry
) {
// Add the promise for revalidate
Expand All @@ -181,7 +181,7 @@ protected static function addReValidationRequest(
$request = $request->withHeader("X-ReValidation", "1");
static::$waitingRevalidate[] = static::$client
->sendAsync($request)
->then(function (ResponseInterface $response) use ($request, &$cacheStorage, $cacheEntry) {
->then(function(ResponseInterface $response) use ($request, &$cacheStorage, $cacheEntry) {
if ($response->getStatusCode() == 304) {
// Not modified => cache entry is re-validate
/** @var ResponseInterface $response */
Expand Down

0 comments on commit 9556387

Please sign in to comment.