Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request spatie#77 from faisuc/patch-1
Browse files Browse the repository at this point in the history
fix spacing
  • Loading branch information
freekmurze authored Aug 15, 2022
2 parents 35441a3 + c4c0128 commit 948e206
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function once(callable $callback): mixed
return call_user_func($callback);
}


$object = $backtrace->getObject();

$hash = $backtrace->getHash();
Expand All @@ -39,7 +38,7 @@ function once(callable $callback): mixed
if (! $cache->has($object, $hash)) {
$result = call_user_func($callback, $backtrace->getArguments());

$cache->set($object, $hash, $result);
$cache->set($object, $hash, $result);
}

return $cache->get($object, $hash);
Expand Down

0 comments on commit 948e206

Please # to comment.