SONARPHP-126 Fix bug and improve the rule.