Code
- get_post_data()
- pam_auth_session()
- _php_api_exception_handler()
- calculate_posthash()
- get_call_method()
- authenticate_method()
- get_and_validate_api_headers()
- map_api_hash()
- api_auth_hmac()
- verify_parameters()
- api_auth_key()
- get_parameters_for_method()
- cache_hmac_check_replay()
- calculate_hmac()
- _elgg_ws_get_parameter_names()
- service_handler()
- pam_auth_usertoken()
- serialise_parameters()
- _php_api_error_handler()
- execute_method()

Loading history...
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.