We are using in_array in some parts, when we are just hardcoding one element. Replace with just === is faster and compatible.
We are using in_array($variable, array_keys($array)) when we could use array_key_exists(). This improves performance and is compatible.
We can improve performance on some things:
- We are using in_array in some parts, when we are just hardcoding one element. Replace with just === is faster and compatible.
- We are using `in_array($variable, array_keys($array))` when we could use array_key_exists(). This improves performance and is compatible.
<!-- github-sync-id:802752275 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
We can improve performance on some things:
in_array($variable, array_keys($array))when we could use array_key_exists(). This improves performance and is compatible.