@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function getUsersThroughRole(Role $role): Collection |
36 | 36 | { |
37 | - return $this->cache->rememberForever(static::class . '@getUsersThroughRole:' . $role->id(), function() use ($role) { |
|
37 | + return $this->cache->rememberForever(static::class.'@getUsersThroughRole:'.$role->id(), function() use ($role) { |
|
38 | 38 | return $this->userRole->getUsersThroughRole($role); |
39 | 39 | }); |
40 | 40 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function getRolesThroughUser(User $user): Collection |
49 | 49 | { |
50 | - return $this->cache->rememberForever(static::class . '@getRolesThroughUser:' . $user->id(), function() use ($user) { |
|
50 | + return $this->cache->rememberForever(static::class.'@getRolesThroughUser:'.$user->id(), function() use ($user) { |
|
51 | 51 | return $this->userRole->getRolesThroughUser($user); |
52 | 52 | }); |
53 | 53 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function getTagsThroughRole(Role $role): Collection |
59 | 59 | { |
60 | - return $this->cache->rememberForever(static::class . '@getTagsThroughRole:' . $role->id(), function() use ($role) { |
|
60 | + return $this->cache->rememberForever(static::class.'@getTagsThroughRole:'.$role->id(), function() use ($role) { |
|
61 | 61 | return $this->roleRoleTagRepository->getTagsThroughRole($role); |
62 | 62 | }); |
63 | 63 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getRolesThroughTag(RoleTag $roleTag): Collection |
72 | 72 | { |
73 | - return $this->cache->rememberForever(static::class . '@getRolesThroughTag:' . $roleTag->id(), function() use ($roleTag) { |
|
73 | + return $this->cache->rememberForever(static::class.'@getRolesThroughTag:'.$roleTag->id(), function() use ($roleTag) { |
|
74 | 74 | return $this->roleRoleTagRepository->getRolesThroughTag($roleTag); |
75 | 75 | }); |
76 | 76 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function getTagsThroughUser(User $user): Collection |
59 | 59 | { |
60 | - return $this->cache->rememberForever(static::class . '@getTagsThroughUser:' . $user->id(), function() use ($user) { |
|
60 | + return $this->cache->rememberForever(static::class.'@getTagsThroughUser:'.$user->id(), function() use ($user) { |
|
61 | 61 | return $this->userUserTagRepository->getTagsThroughUser($user); |
62 | 62 | }); |
63 | 63 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getUsersThroughTag(UserTag $userTag): Collection |
72 | 72 | { |
73 | - return $this->cache->rememberForever(static::class . '@getUsersThroughTag:' . $userTag->id(), function() use ($userTag) { |
|
73 | + return $this->cache->rememberForever(static::class.'@getUsersThroughTag:'.$userTag->id(), function() use ($userTag) { |
|
74 | 74 | return $this->userUserTagRepository->getUsersThroughTag($userTag); |
75 | 75 | }); |
76 | 76 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function getTagsThroughPosition(Position $position): Collection |
59 | 59 | { |
60 | - return $this->cache->rememberForever(static::class . '@getTagsThroughPosition:' . $position->id(), function() use ($position) { |
|
60 | + return $this->cache->rememberForever(static::class.'@getTagsThroughPosition:'.$position->id(), function() use ($position) { |
|
61 | 61 | return $this->positionPositionTagRepository->getTagsThroughPosition($position); |
62 | 62 | }); |
63 | 63 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getPositionsThroughTag(PositionTag $positionTag): Collection |
72 | 72 | { |
73 | - return $this->cache->rememberForever(static::class . '@getPositionsThroughTag:' . $positionTag->id(), function() use ($positionTag) { |
|
73 | + return $this->cache->rememberForever(static::class.'@getPositionsThroughTag:'.$positionTag->id(), function() use ($positionTag) { |
|
74 | 74 | return $this->positionPositionTagRepository->getPositionsThroughTag($positionTag); |
75 | 75 | }); |
76 | 76 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function getTagsThroughGroup(Group $group): Collection |
59 | 59 | { |
60 | - return $this->cache->rememberForever(static::class . '@getTagsThroughGroup:' . $group->id(), function() use ($group) { |
|
60 | + return $this->cache->rememberForever(static::class.'@getTagsThroughGroup:'.$group->id(), function() use ($group) { |
|
61 | 61 | return $this->groupGroupTagRepository->getTagsThroughGroup($group); |
62 | 62 | }); |
63 | 63 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getGroupsThroughTag(GroupTag $groupTag): Collection |
72 | 72 | { |
73 | - return $this->cache->rememberForever(static::class . '@getGroupsThroughTag:' . $groupTag->id(), function() use ($groupTag) { |
|
73 | + return $this->cache->rememberForever(static::class.'@getGroupsThroughTag:'.$groupTag->id(), function() use ($groupTag) { |
|
74 | 74 | return $this->groupGroupTagRepository->getGroupsThroughTag($groupTag); |
75 | 75 | }); |
76 | 76 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function getUsersThroughGroup(Group $group): Collection |
36 | 36 | { |
37 | - return $this->cache->rememberForever(static::class . '@getUsersThroughGroup:' . $group->id(), function() use ($group) { |
|
37 | + return $this->cache->rememberForever(static::class.'@getUsersThroughGroup:'.$group->id(), function() use ($group) { |
|
38 | 38 | return $this->userGroup->getUsersThroughGroup($group); |
39 | 39 | }); |
40 | 40 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function getGroupsThroughUser(User $user): Collection |
49 | 49 | { |
50 | - return $this->cache->rememberForever(static::class . '@getGroupsThroughUser:' . $user->id(), function() use ($user) { |
|
50 | + return $this->cache->rememberForever(static::class.'@getGroupsThroughUser:'.$user->id(), function() use ($user) { |
|
51 | 51 | return $this->userGroup->getGroupsThroughUser($user); |
52 | 52 | }); |
53 | 53 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function getById(int $id): \BristolSU\ControlDB\Contracts\Models\DataUser |
34 | 34 | { |
35 | - return $this->cache->rememberForever(static::class . '@getById:' . $id, function() use ($id) { |
|
35 | + return $this->cache->rememberForever(static::class.'@getById:'.$id, function() use ($id) { |
|
36 | 36 | return $this->dataUserRepository->getById($id); |
37 | 37 | }); |
38 | 38 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function getById(int $id): \BristolSU\ControlDB\Contracts\Models\DataRole |
34 | 34 | { |
35 | - return $this->cache->rememberForever(static::class . '@getById:' . $id, function() use ($id) { |
|
35 | + return $this->cache->rememberForever(static::class.'@getById:'.$id, function() use ($id) { |
|
36 | 36 | return $this->dataRoleRepository->getById($id); |
37 | 37 | }); |
38 | 38 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function update(DataRole $oldDataRole, DataRole $newDataRole) |
23 | 23 | { |
24 | - $this->cache->forget(DataRoleCache::class . '@getById:' . $newDataRole->id()); |
|
24 | + $this->cache->forget(DataRoleCache::class.'@getById:'.$newDataRole->id()); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | } |
28 | 28 | \ No newline at end of file |