SONARPHP-265 Variable name in double-quoted string should be expanded.
Remove useless test.
Fix duplicated string check according to modification done for SONARPHP-265.