SONARPHP-254 Class complexity should not include complexity of function declared outside the class.