Skip to content

Commit

Permalink
CS: PSR1/2
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Oct 4, 2017
1 parent 3f7705c commit 881166d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Repositories/Cache/CacheBlockDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public function allOnlineInLang($lang)
{
return $this->cache
->tags([$this->entityName, 'global'])
->remember("{$this->locale}.{$this->entityName}.allOnlineInLang", $this->cacheTime,
->remember(
"{$this->locale}.{$this->entityName}.allOnlineInLang",
$this->cacheTime,
function () use ($lang) {
return $this->repository->allOnlineInLang($lang);
}
Expand All @@ -39,7 +41,9 @@ public function get($name)
{
return $this->cache
->tags([$this->entityName, 'global'])
->remember("{$this->locale}.{$this->entityName}.get.{$name}", $this->cacheTime,
->remember(
"{$this->locale}.{$this->entityName}.get.{$name}",
$this->cacheTime,
function () use ($name) {
return $this->repository->get($name);
}
Expand Down

0 comments on commit 881166d

Please sign in to comment.