Skip to content

Commit

Permalink
Merge pull request #19 from suitmedia/analysis-EAxNRM
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI

[ci skip] [skip ci]
  • Loading branch information
richan-fongdasen authored Aug 19, 2020
2 parents 410efc3 + e4788bd commit e62ff6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/CacheableDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ private function generateCustomTags(Collection $tags, Model $object)
$class = class_basename(get_class($object));
$baseTags = (array) $this->repository->cacheTags();

$tags->push($class . ':' . $object->getKey());
$tags->push($class.':'.$object->getKey());

foreach ($baseTags as $tag) {
$tags->push($tag . ':' . $class . ':' . $object->getKey());
$tags->push($tag.':'.$class.':'.$object->getKey());
}
}

Expand All @@ -77,9 +77,10 @@ private function generateTags($args)
}

/**
* Get the correct return value if the repository returns itself
* Get the correct return value if the repository returns itself.
*
* @param mixed $value
*
* @return mixed
*/
private function getReturnValue($value)
Expand Down

0 comments on commit e62ff6c

Please sign in to comment.