@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | $cache = new FilesystemAdapter(); |
| 33 | 33 | |
| 34 | - $count = $cache->get('users_count', function (ItemInterface $item) { |
|
| 34 | + $count = $cache->get('users_count', function(ItemInterface $item) { |
|
| 35 | 35 | $item->expiresAfter(3600); |
| 36 | 36 | |
| 37 | 37 | return $this->countAll(); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $cache = new FilesystemAdapter(); |
| 39 | 39 | |
| 40 | - $count = $cache->get('categories_count', function (ItemInterface $item) { |
|
| 40 | + $count = $cache->get('categories_count', function(ItemInterface $item) { |
|
| 41 | 41 | $item->expiresAfter(3600); |
| 42 | 42 | |
| 43 | 43 | return $this->countAll(); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | { |
| 54 | 54 | $cache = new FilesystemAdapter(); |
| 55 | 55 | |
| 56 | - $count = $cache->get('properties_count', function () { |
|
| 56 | + $count = $cache->get('properties_count', function() { |
|
| 57 | 57 | return $this->em->getRepository(Property::class)->countAll(); |
| 58 | 58 | }); |
| 59 | 59 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $cache = new FilesystemAdapter(); |
| 39 | 39 | |
| 40 | - $count = $cache->get('cities_count', function (ItemInterface $item) { |
|
| 40 | + $count = $cache->get('cities_count', function(ItemInterface $item) { |
|
| 41 | 41 | $item->expiresAfter(3600); |
| 42 | 42 | |
| 43 | 43 | return $this->countAll(); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $cache = new FilesystemAdapter(); |
| 39 | 39 | |
| 40 | - $count = $cache->get('deal_types_count', function (ItemInterface $item) { |
|
| 40 | + $count = $cache->get('deal_types_count', function(ItemInterface $item) { |
|
| 41 | 41 | $item->expiresAfter(3600); |
| 42 | 42 | |
| 43 | 43 | return $this->countAll(); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $cache = new FilesystemAdapter(); |
| 52 | 52 | |
| 53 | - $count = $cache->get('pages_count', function () { |
|
| 53 | + $count = $cache->get('pages_count', function() { |
|
| 54 | 54 | return $this->em->getRepository(Page::class)->countAll(); |
| 55 | 55 | }); |
| 56 | 56 | |