Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to StrToId in Parts.php #687

Merged
merged 6 commits into from Dec 6, 2020
Merged

Conversation

CamerTheDragon
Copy link
Contributor

@CamerTheDragon CamerTheDragon commented Nov 26, 2020

  • Moved the jump_start element to the start of the jumpstart hat's array and the top_hat element to the start of the top hat's array (this was because I was originally going to set the id with the 1st element of the array as upper case but then I realised I could just do it with the last element)
  • Put all the arrays in 1 big array
  • Made a foreach loop that goes through the array that checks whether the string is in each of the sub-arrays
  • If it's in the sub-array, then the id is the last element of the sub-array

It didn't say anything was wrong in code checker for both versions 7.3 and 5.6 but I've never used php before so there's a good chance that something here is wrong

EDIT: IdToStr too

Northadox and others added 3 commits November 25, 2020 00:06
- Moved the jump_start element to the start of the jumpstart hat's array and the top_hat element to the start of the top hat's array (this was because I was originally going to set the id with the 1st element of the array as upper case but then I realised I could just do it with the last element)
- Put all the arrays in 1 big array
- Made a foreach loop that goes through the array that checks whether the string is in each of the sub-arrays
- If it's in the sub-array, then the id is the last element of the sub-array

It didn't say anything was wrong in code checker for both versions 7.3 and 5.6 but I've never used php before so there's a good chance that something here is wrong
@bls1999
Copy link
Collaborator

bls1999 commented Dec 5, 2020

I'll review this tonight

@bls1999 bls1999 merged commit a3030cc into jacob-grahn:master Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants