@@ -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 |
@@ -21,23 +21,23 @@ |
||
21 | 21 | |
22 | 22 | public function create(PositionModel $positionModel) |
23 | 23 | { |
24 | - $this->cache->forget(PositionCache::class . '@count'); |
|
25 | - $this->cache->forget(PositionCache::class . '@getByDataProviderId:' . $positionModel->dataProviderId()); |
|
24 | + $this->cache->forget(PositionCache::class.'@count'); |
|
25 | + $this->cache->forget(PositionCache::class.'@getByDataProviderId:'.$positionModel->dataProviderId()); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function delete(PositionModel $position) |
29 | 29 | { |
30 | - $this->cache->forget(PositionCache::class . '@count'); |
|
31 | - $this->cache->forget(PositionCache::class . '@getById:' . $position->id()); |
|
32 | - $this->cache->forget(PositionCache::class . '@getByDataProviderId:' . $position->dataProviderId()); |
|
30 | + $this->cache->forget(PositionCache::class.'@count'); |
|
31 | + $this->cache->forget(PositionCache::class.'@getById:'.$position->id()); |
|
32 | + $this->cache->forget(PositionCache::class.'@getByDataProviderId:'.$position->dataProviderId()); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public function update(PositionModel $oldPosition, PositionModel $newPosition) |
36 | 36 | { |
37 | - $this->cache->forget(PositionCache::class . '@count'); |
|
38 | - $this->cache->forget(PositionCache::class . '@getById:' . $newPosition->id()); |
|
39 | - $this->cache->forget(PositionCache::class . '@getByDataProviderId:' . $oldPosition->dataProviderId()); |
|
40 | - $this->cache->forget(PositionCache::class . '@getByDataProviderId:' . $newPosition->dataProviderId()); |
|
37 | + $this->cache->forget(PositionCache::class.'@count'); |
|
38 | + $this->cache->forget(PositionCache::class.'@getById:'.$newPosition->id()); |
|
39 | + $this->cache->forget(PositionCache::class.'@getByDataProviderId:'.$oldPosition->dataProviderId()); |
|
40 | + $this->cache->forget(PositionCache::class.'@getByDataProviderId:'.$newPosition->dataProviderId()); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | } |
44 | 44 | \ No newline at end of file |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function update(DataGroup $oldDataGroup, DataGroup $newDataGroup) |
23 | 23 | { |
24 | - $this->cache->forget(DataGroupCache::class . '@getById:' . $newDataGroup->id()); |
|
24 | + $this->cache->forget(DataGroupCache::class.'@getById:'.$newDataGroup->id()); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | } |
28 | 28 | \ No newline at end of file |
@@ -21,23 +21,23 @@ |
||
21 | 21 | |
22 | 22 | public function create(GroupModel $groupModel) |
23 | 23 | { |
24 | - $this->cache->forget(GroupCache::class . '@count'); |
|
25 | - $this->cache->forget(GroupCache::class . '@getByDataProviderId:' . $groupModel->dataProviderId()); |
|
24 | + $this->cache->forget(GroupCache::class.'@count'); |
|
25 | + $this->cache->forget(GroupCache::class.'@getByDataProviderId:'.$groupModel->dataProviderId()); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function delete(GroupModel $group) |
29 | 29 | { |
30 | - $this->cache->forget(GroupCache::class . '@count'); |
|
31 | - $this->cache->forget(GroupCache::class . '@getById:' . $group->id()); |
|
32 | - $this->cache->forget(GroupCache::class . '@getByDataProviderId:' . $group->dataProviderId()); |
|
30 | + $this->cache->forget(GroupCache::class.'@count'); |
|
31 | + $this->cache->forget(GroupCache::class.'@getById:'.$group->id()); |
|
32 | + $this->cache->forget(GroupCache::class.'@getByDataProviderId:'.$group->dataProviderId()); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public function update(GroupModel $oldGroup, GroupModel $newGroup) |
36 | 36 | { |
37 | - $this->cache->forget(GroupCache::class . '@count'); |
|
38 | - $this->cache->forget(GroupCache::class . '@getById:' . $newGroup->id()); |
|
39 | - $this->cache->forget(GroupCache::class . '@getByDataProviderId:' . $oldGroup->dataProviderId()); |
|
40 | - $this->cache->forget(GroupCache::class . '@getByDataProviderId:' . $newGroup->dataProviderId()); |
|
37 | + $this->cache->forget(GroupCache::class.'@count'); |
|
38 | + $this->cache->forget(GroupCache::class.'@getById:'.$newGroup->id()); |
|
39 | + $this->cache->forget(GroupCache::class.'@getByDataProviderId:'.$oldGroup->dataProviderId()); |
|
40 | + $this->cache->forget(GroupCache::class.'@getByDataProviderId:'.$newGroup->dataProviderId()); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | } |
44 | 44 | \ No newline at end of file |
@@ -21,23 +21,23 @@ |
||
21 | 21 | |
22 | 22 | public function create(UserModel $userModel) |
23 | 23 | { |
24 | - $this->cache->forget(UserCache::class . '@count'); |
|
25 | - $this->cache->forget(UserCache::class . '@getByDataProviderId:' . $userModel->dataProviderId()); |
|
24 | + $this->cache->forget(UserCache::class.'@count'); |
|
25 | + $this->cache->forget(UserCache::class.'@getByDataProviderId:'.$userModel->dataProviderId()); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function delete(UserModel $user) |
29 | 29 | { |
30 | - $this->cache->forget(UserCache::class . '@count'); |
|
31 | - $this->cache->forget(UserCache::class . '@getById:' . $user->id()); |
|
32 | - $this->cache->forget(UserCache::class . '@getByDataProviderId:' . $user->dataProviderId()); |
|
30 | + $this->cache->forget(UserCache::class.'@count'); |
|
31 | + $this->cache->forget(UserCache::class.'@getById:'.$user->id()); |
|
32 | + $this->cache->forget(UserCache::class.'@getByDataProviderId:'.$user->dataProviderId()); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public function update(UserModel $oldUser, UserModel $newUser) |
36 | 36 | { |
37 | - $this->cache->forget(UserCache::class . '@count'); |
|
38 | - $this->cache->forget(UserCache::class . '@getById:' . $newUser->id()); |
|
39 | - $this->cache->forget(UserCache::class . '@getByDataProviderId:' . $oldUser->dataProviderId()); |
|
40 | - $this->cache->forget(UserCache::class . '@getByDataProviderId:' . $newUser->dataProviderId()); |
|
37 | + $this->cache->forget(UserCache::class.'@count'); |
|
38 | + $this->cache->forget(UserCache::class.'@getById:'.$newUser->id()); |
|
39 | + $this->cache->forget(UserCache::class.'@getByDataProviderId:'.$oldUser->dataProviderId()); |
|
40 | + $this->cache->forget(UserCache::class.'@getByDataProviderId:'.$newUser->dataProviderId()); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | } |
44 | 44 | \ No newline at end of file |
@@ -21,23 +21,23 @@ |
||
21 | 21 | |
22 | 22 | public function delete(RoleTag $roleTag) |
23 | 23 | { |
24 | - $this->cache->forget(RoleTagCache::class . '@allThroughTagCategory:' . $roleTag->categoryId()); |
|
25 | - $this->cache->forget(RoleTagCache::class . '@getById:' . $roleTag->id()); |
|
26 | - $this->cache->forget(RoleTagCache::class . '@getTagByFullReference:' . $roleTag->fullReference()); |
|
24 | + $this->cache->forget(RoleTagCache::class.'@allThroughTagCategory:'.$roleTag->categoryId()); |
|
25 | + $this->cache->forget(RoleTagCache::class.'@getById:'.$roleTag->id()); |
|
26 | + $this->cache->forget(RoleTagCache::class.'@getTagByFullReference:'.$roleTag->fullReference()); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | public function create(RoleTag $roleTag) |
30 | 30 | { |
31 | - return $this->cache->forget(RoleTagCache::class . '@allThroughTagCategory:' . $roleTag->categoryId()); |
|
31 | + return $this->cache->forget(RoleTagCache::class.'@allThroughTagCategory:'.$roleTag->categoryId()); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function update(RoleTag $oldRoleTag, RoleTag $newRoleTag) |
35 | 35 | { |
36 | - $this->cache->forget(RoleTagCache::class . '@getById:' . $newRoleTag->id()); |
|
37 | - $this->cache->forget(RoleTagCache::class . '@getTagByFullReference:' . $oldRoleTag->fullReference()); |
|
38 | - $this->cache->forget(RoleTagCache::class . '@getTagByFullReference:' . $newRoleTag->fullReference()); |
|
39 | - $this->cache->forget(RoleTagCache::class . '@allThroughTagCategory:' . $oldRoleTag->categoryId()); |
|
40 | - $this->cache->forget(RoleTagCache::class . '@allThroughTagCategory:' . $newRoleTag->categoryId()); |
|
36 | + $this->cache->forget(RoleTagCache::class.'@getById:'.$newRoleTag->id()); |
|
37 | + $this->cache->forget(RoleTagCache::class.'@getTagByFullReference:'.$oldRoleTag->fullReference()); |
|
38 | + $this->cache->forget(RoleTagCache::class.'@getTagByFullReference:'.$newRoleTag->fullReference()); |
|
39 | + $this->cache->forget(RoleTagCache::class.'@allThroughTagCategory:'.$oldRoleTag->categoryId()); |
|
40 | + $this->cache->forget(RoleTagCache::class.'@allThroughTagCategory:'.$newRoleTag->categoryId()); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | } |
44 | 44 | \ No newline at end of file |
@@ -21,23 +21,23 @@ |
||
21 | 21 | |
22 | 22 | public function delete(GroupTag $groupTag) |
23 | 23 | { |
24 | - $this->cache->forget(GroupTagCache::class . '@allThroughTagCategory:' . $groupTag->categoryId()); |
|
25 | - $this->cache->forget(GroupTagCache::class . '@getById:' . $groupTag->id()); |
|
26 | - $this->cache->forget(GroupTagCache::class . '@getTagByFullReference:' . $groupTag->fullReference()); |
|
24 | + $this->cache->forget(GroupTagCache::class.'@allThroughTagCategory:'.$groupTag->categoryId()); |
|
25 | + $this->cache->forget(GroupTagCache::class.'@getById:'.$groupTag->id()); |
|
26 | + $this->cache->forget(GroupTagCache::class.'@getTagByFullReference:'.$groupTag->fullReference()); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | public function create(GroupTag $groupTag) |
30 | 30 | { |
31 | - return $this->cache->forget(GroupTagCache::class . '@allThroughTagCategory:' . $groupTag->categoryId()); |
|
31 | + return $this->cache->forget(GroupTagCache::class.'@allThroughTagCategory:'.$groupTag->categoryId()); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function update(GroupTag $oldGroupTag, GroupTag $newGroupTag) |
35 | 35 | { |
36 | - $this->cache->forget(GroupTagCache::class . '@getById:' . $newGroupTag->id()); |
|
37 | - $this->cache->forget(GroupTagCache::class . '@getTagByFullReference:' . $oldGroupTag->fullReference()); |
|
38 | - $this->cache->forget(GroupTagCache::class . '@getTagByFullReference:' . $newGroupTag->fullReference()); |
|
39 | - $this->cache->forget(GroupTagCache::class . '@allThroughTagCategory:' . $oldGroupTag->categoryId()); |
|
40 | - $this->cache->forget(GroupTagCache::class . '@allThroughTagCategory:' . $newGroupTag->categoryId()); |
|
36 | + $this->cache->forget(GroupTagCache::class.'@getById:'.$newGroupTag->id()); |
|
37 | + $this->cache->forget(GroupTagCache::class.'@getTagByFullReference:'.$oldGroupTag->fullReference()); |
|
38 | + $this->cache->forget(GroupTagCache::class.'@getTagByFullReference:'.$newGroupTag->fullReference()); |
|
39 | + $this->cache->forget(GroupTagCache::class.'@allThroughTagCategory:'.$oldGroupTag->categoryId()); |
|
40 | + $this->cache->forget(GroupTagCache::class.'@allThroughTagCategory:'.$newGroupTag->categoryId()); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | } |
44 | 44 | \ No newline at end of file |