@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | public function getSettings(Group $group, array $settings) |
| 38 | 38 | { |
| 39 | - if(Cache::has($this->getCacheKey($group))) { |
|
| 39 | + if (Cache::has($this->getCacheKey($group))) { |
|
| 40 | 40 | return Cache::get($this->getCacheKey($group)); |
| 41 | 41 | } |
| 42 | 42 | foreach ($settings as $setting) { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | protected function getCacheKey(Group $group) |
| 52 | 52 | { |
| 53 | - return RequiredSettingRetrieval::class . '.' . $group->id(); |
|
| 53 | + return RequiredSettingRetrieval::class.'.'.$group->id(); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | protected function groupIsForSetting(Group $group, array $setting): bool |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $logic = $this->logicRepository->getById($setting['logic_id']); |
| 65 | 65 | return app(LogicTester::class)->evaluate($logic, $user, $group, $role); |
| 66 | 66 | |
| 67 | - $groups = collect($this->logicAudience->groupAudience($logic))->map(function (Group $group) { |
|
| 67 | + $groups = collect($this->logicAudience->groupAudience($logic))->map(function(Group $group) { |
|
| 68 | 68 | return $group->id(); |
| 69 | 69 | }); |
| 70 | 70 | return $groups->contains($group->id()); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | public function getSettings(Group $group) |
| 38 | 38 | { |
| 39 | - if(Cache::has($this->getCacheKey($group))) { |
|
| 39 | + if (Cache::has($this->getCacheKey($group))) { |
|
| 40 | 40 | return Cache::get($this->getCacheKey($group)); |
| 41 | 41 | } |
| 42 | 42 | $settings = settings('position_settings', []); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | protected function getCacheKey(Group $group) |
| 69 | 69 | { |
| 70 | - return PositionSettingRetrieval::class . '.' . $group->id(); |
|
| 70 | + return PositionSettingRetrieval::class.'.'.$group->id(); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | public function parse($setting) |