@@ -24,7 +24,7 @@ public function findByUserId(int $uid, int $limit = 1000): array
2424 {
2525 return $ this ->cache ->remember (
2626 "events:uid: {$ uid }" ,
27- fn () => $ this ->repository ->findByUserId ($ uid , $ limit ),
27+ fn () => $ this ->repository ->findByUserId ($ uid , $ limit ),
2828 self ::DEFAULT_TTL
2929 );
3030 }
@@ -33,7 +33,7 @@ public function findWithPagination(int $limit, int $offset): array
3333 {
3434 return $ this ->cache ->remember (
3535 "events:page: {$ limit }: {$ offset }" ,
36- fn () => $ this ->repository ->findWithPagination ($ limit , $ offset ),
36+ fn () => $ this ->repository ->findWithPagination ($ limit , $ offset ),
3737 self ::DEFAULT_TTL
3838 );
3939 }
@@ -42,7 +42,7 @@ public function findBeforeDate(DateTimeInterface $date): int
4242 {
4343 return $ this ->cache ->remember (
4444 "events:before: {$ date ->getTimestamp ()}" ,
45- fn () => $ this ->repository ->findBeforeDate ($ date ),
45+ fn () => $ this ->repository ->findBeforeDate ($ date ),
4646 self ::DEFAULT_TTL
4747 );
4848 }
@@ -57,16 +57,16 @@ public function getStats(
5757
5858 return $ this ->cache ->remember (
5959 "events:stats: {$ suffix }" ,
60- fn () => $ this ->repository ->getStats ($ limit , $ from , $ to , $ eventTypeId ),
60+ fn () => $ this ->repository ->getStats ($ limit , $ from , $ to , $ eventTypeId ),
6161 self ::DEFAULT_TTL
6262 );
6363 }
6464
6565 public function countAll (): int
6666 {
6767 return $ this ->cache ->remember (
68- " events:count:all " ,
69- fn () => $ this ->repository ->countAll (),
68+ ' events:count:all ' ,
69+ fn () => $ this ->repository ->countAll (),
7070 self ::DEFAULT_TTL
7171 );
7272 }
@@ -91,6 +91,6 @@ public function delete(Event $event): void
9191
9292 public function invalidateCache (): void
9393 {
94- $ this ->cache ->deleteBatch (" events:* " );
94+ $ this ->cache ->deleteBatch (' events:* ' );
9595 }
9696}
0 commit comments