Merge pull request #8757 from ItzNotABug/update-walter-references

Fix Walter References
This commit is contained in:
Steven Nguyen 2024-10-07 13:51:47 -07:00 committed by GitHub
commit a49c3a33f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -412,6 +412,7 @@ august
sammy sammy
cool cool
brian brian
brien
platinum platinum
jake jake
bronco bronco
@ -1935,6 +1936,7 @@ panama
lucy lucy
buffy buffy
brianna brianna
brienna
welcome1 welcome1
vette vette
blue22 blue22
@ -3053,6 +3055,7 @@ randall
abstr abstr
napster napster
brian1 brian1
brien1
bogart bogart
high high
hitler hitler
@ -4123,6 +4126,7 @@ truman
cubbies cubbies
nitram nitram
briana briana
briena
ebony ebony
kings kings
warner warner

View file

@ -609,9 +609,9 @@ App::get('/v1/cards/cloud')
$isPlatinum = $user->getInternalId() % 100 === 0; $isPlatinum = $user->getInternalId() % 100 === 0;
} else { } else {
$name = $mock === 'normal-long' ? 'Sir First Walter O\'Brian Junior' : 'Walter O\'Brian'; $name = $mock === 'normal-long' ? 'Sir First Walter O\'Brien Junior' : 'Walter O\'Brien';
$createdAt = new \DateTime('now'); $createdAt = new \DateTime('now');
$githubName = $mock === 'normal-no-github' ? '' : ($mock === 'normal-long' ? 'sir-first-walterobrian-junior' : 'walterobrian'); $githubName = $mock === 'normal-no-github' ? '' : ($mock === 'normal-long' ? 'sir-first-walterobrien-junior' : 'walterobrien');
$isHero = $mock === 'hero'; $isHero = $mock === 'hero';
$isContributor = $mock === 'contributor'; $isContributor = $mock === 'contributor';
$isEmployee = \str_starts_with($mock, 'employee'); $isEmployee = \str_starts_with($mock, 'employee');
@ -900,9 +900,9 @@ App::get('/v1/cards/cloud-og')
} else { } else {
$bgVariation = \str_ends_with($mock, '-bg2') ? '2' : (\str_ends_with($mock, '-bg3') ? '3' : '1'); $bgVariation = \str_ends_with($mock, '-bg2') ? '2' : (\str_ends_with($mock, '-bg3') ? '3' : '1');
$cardVariation = \str_ends_with($mock, '-right') ? '2' : (\str_ends_with($mock, '-middle') ? '3' : '1'); $cardVariation = \str_ends_with($mock, '-right') ? '2' : (\str_ends_with($mock, '-middle') ? '3' : '1');
$name = \str_starts_with($mock, 'normal-long') ? 'Sir First Walter O\'Brian Junior' : 'Walter O\'Brian'; $name = \str_starts_with($mock, 'normal-long') ? 'Sir First Walter O\'Brien Junior' : 'Walter O\'Brien';
$createdAt = new \DateTime('now'); $createdAt = new \DateTime('now');
$githubName = $mock === 'normal-no-github' ? '' : (\str_starts_with($mock, 'normal-long') ? 'sir-first-walterobrian-junior' : 'walterobrian'); $githubName = $mock === 'normal-no-github' ? '' : (\str_starts_with($mock, 'normal-long') ? 'sir-first-walterobrien-junior' : 'walterobrien');
$isHero = \str_starts_with($mock, 'hero'); $isHero = \str_starts_with($mock, 'hero');
$isContributor = \str_starts_with($mock, 'contributor'); $isContributor = \str_starts_with($mock, 'contributor');
$isEmployee = \str_starts_with($mock, 'employee'); $isEmployee = \str_starts_with($mock, 'employee');