Skip to content

Commit

Permalink
Update ScratchUserCheck.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsrec authored Mar 12, 2024
1 parent 7243a61 commit 55c5e8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/verification/ScratchUserCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 55c5e8e

Please sign in to comment.