@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function getById(int $id): PositionModel |
36 | 36 | { |
37 | - return $this->cache->rememberForever(static::class . '@getById:' . $id, function() use ($id) { |
|
37 | + return $this->cache->rememberForever(static::class.'@getById:'.$id, function() use ($id) { |
|
38 | 38 | return $this->positionRepository->getById($id); |
39 | 39 | }); |
40 | 40 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function getByDataProviderId(int $dataProviderId): PositionModel |
49 | 49 | { |
50 | - return $this->cache->rememberForever(static::class . '@getByDataProviderId:' . $dataProviderId, function() use ($dataProviderId) { |
|
50 | + return $this->cache->rememberForever(static::class.'@getByDataProviderId:'.$dataProviderId, function() use ($dataProviderId) { |
|
51 | 51 | return $this->positionRepository->getByDataProviderId($dataProviderId); |
52 | 52 | }); |
53 | 53 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function count(): int |
105 | 105 | { |
106 | - return $this->cache->rememberForever(static::class . '@count', function() { |
|
106 | + return $this->cache->rememberForever(static::class.'@count', function() { |
|
107 | 107 | return $this->positionRepository->count(); |
108 | 108 | }); |
109 | 109 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function getById(int $id): GroupModel |
35 | 35 | { |
36 | - return $this->cache->rememberForever(static::class . '@getById:' . $id, function() use ($id) { |
|
36 | + return $this->cache->rememberForever(static::class.'@getById:'.$id, function() use ($id) { |
|
37 | 37 | return $this->groupRepository->getById($id); |
38 | 38 | }); |
39 | 39 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function getByDataProviderId(int $dataProviderId): GroupModel |
48 | 48 | { |
49 | - return $this->cache->rememberForever(static::class . '@getByDataProviderId:' . $dataProviderId, function() use ($dataProviderId) { |
|
49 | + return $this->cache->rememberForever(static::class.'@getByDataProviderId:'.$dataProviderId, function() use ($dataProviderId) { |
|
50 | 50 | return $this->groupRepository->getByDataProviderId($dataProviderId); |
51 | 51 | }); |
52 | 52 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function count(): int |
104 | 104 | { |
105 | - return $this->cache->rememberForever(static::class . '@count', function() { |
|
105 | + return $this->cache->rememberForever(static::class.'@count', function() { |
|
106 | 106 | return $this->groupRepository->count(); |
107 | 107 | }); |
108 | 108 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function getById(int $id): \BristolSU\ControlDB\Contracts\Models\DataPosition |
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->dataPositionRepository->getById($id); |
37 | 37 | }); |
38 | 38 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function getById(int $id): RoleModel |
32 | 32 | { |
33 | - return $this->cache->rememberForever(static::class . '@getById:' . $id, function() use ($id) { |
|
33 | + return $this->cache->rememberForever(static::class.'@getById:'.$id, function() use ($id) { |
|
34 | 34 | return $this->roleRepository->getById($id); |
35 | 35 | }); |
36 | 36 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function getByDataProviderId(int $dataProviderId): RoleModel |
50 | 50 | { |
51 | - return $this->cache->rememberForever(static::class . '@getByDataProviderId:' . $dataProviderId, function() use ($dataProviderId) { |
|
51 | + return $this->cache->rememberForever(static::class.'@getByDataProviderId:'.$dataProviderId, function() use ($dataProviderId) { |
|
52 | 52 | return $this->roleRepository->getByDataProviderId($dataProviderId); |
53 | 53 | }); |
54 | 54 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function allThroughGroup(\BristolSU\ControlDB\Contracts\Models\Group $group): Collection |
76 | 76 | { |
77 | - return $this->cache->rememberForever(static::class . '@allThroughGroup:' . $group->id(), function() use ($group) { |
|
77 | + return $this->cache->rememberForever(static::class.'@allThroughGroup:'.$group->id(), function() use ($group) { |
|
78 | 78 | return $this->roleRepository->allThroughGroup($group); |
79 | 79 | }); |
80 | 80 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function allThroughPosition(\BristolSU\ControlDB\Contracts\Models\Position $position): Collection |
86 | 86 | { |
87 | - return $this->cache->rememberForever(static::class . '@allThroughPosition:' . $position->id(), function() use ($position) { |
|
87 | + return $this->cache->rememberForever(static::class.'@allThroughPosition:'.$position->id(), function() use ($position) { |
|
88 | 88 | return $this->roleRepository->allThroughPosition($position); |
89 | 89 | }); |
90 | 90 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function count(): int |
111 | 111 | { |
112 | - return $this->cache->rememberForever(static::class . '@count', function() { |
|
112 | + return $this->cache->rememberForever(static::class.'@count', function() { |
|
113 | 113 | return $this->roleRepository->count(); |
114 | 114 | }); |
115 | 115 |
@@ -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 | } |