PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Code Inspection: Suspicious names combination

Last modified: 16 May 2022

Reports the assignments and function calls where the name of the variable or parameter probably doesn't match the name of the assigned or passed value.

The following sets of names are supported:

  • needle, haystack

  • x, y

  • top, bottom, left, right

  • year, month, week, day, hour, minute, second