Skip to content

Commit ceeaa60

Browse files
committed
deprecate code no longer used
1 parent 38caeb7 commit ceeaa60

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

app/Domains/RaiseAConcern/Actions/ScrapeWebsitePolicies.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Illuminate\Support\Facades\Http;
66

7+
/**
8+
* @deprecated
9+
*/
710
class ScrapeWebsitePolicies
811
{
912
public function __construct(public string $site)

app/Domains/RaiseAConcern/Enums/SafeguardingLink.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use App\Domains\RaiseAConcern\Actions\ScrapeWebsitePolicies;
66
use Illuminate\Support\Facades\Cache;
77

8+
/**
9+
* @deprecated
10+
*/
811
enum SafeguardingLink
912
{
1013
case SeniorSchool;
@@ -29,7 +32,8 @@ public function getUrl(): string
2932
if (config("services.policies.{$this->getKey()}", 'unkonwn')) {
3033
return config("services.policies.{$this->getKey()}", 'unkonwn');
3134
}
32-
Cache::forget('safeguarding_policy_link_'.$domain);
35+
Cache::forget('safeguarding_policy_link_'.$domain);
36+
3337
// Use caching to avoid repeated requests for the same domain.
3438
return Cache::remember(
3539
'safeguarding_policy_link_'.$domain,

0 commit comments

Comments
 (0)