From 55c5e8e9551c239d1a756ee8bf2818b1dedb8e9b Mon Sep 17 00:00:00 2001 From: mrsrec <6236968+mrsrec@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:40:34 -0500 Subject: [PATCH] Update ScratchUserCheck.php --- src/verification/ScratchUserCheck.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/verification/ScratchUserCheck.php b/src/verification/ScratchUserCheck.php index f402f26..e5808d3 100644 --- a/src/verification/ScratchUserCheck.php +++ b/src/verification/ScratchUserCheck.php @@ -8,9 +8,9 @@ class ScratchUserCheck { private static function fetchProfile($username, &$isScratcher, &$joinedAt, &$error) { $url = sprintf(self::PROFILE_URL, $username); - $html = @file_get_contents($url, false, stream_context_create( - "http" => ["header" => "Accept-Language: en\r\nCookie: scratchlanguage=en"] - )); + $html = @file_get_contents($url, false, stream_context_create([ + 'http' => ['header' => 'Accept-Language: en\r\nCookie: scratchlanguage=en'] + ])); if ($html === false) { $isScratcher = null; // can't tell Scratcher status $error = 'scratch-confirmaccount-profile-error';