Small refactor.
SONARPHP-388 False positive in rule S1172/Unused function parameters should be removed