| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 10 |
| Ratio | 83.33 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | View Code Duplication | public function get($name) |
|
| 41 | { |
||
| 42 | return $this->cache |
||
| 43 | ->tags([$this->entityName, 'global']) |
||
| 44 | ->remember( |
||
| 45 | "{$this->locale}.{$this->entityName}.get.{$name}", |
||
| 46 | $this->cacheTime, |
||
| 47 | function () use ($name) { |
||
| 48 | return $this->repository->get($name); |
||
| 49 | } |
||
| 50 | ); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |