It's probably not a big deal but I think the code should be consistent and I think case sensitivity is important for function calls. Is their a way to get PhpStorm to identify if a function call does not have the same case as it's definition?
Occasionally I find functions like updateNote
looking like updateNOte
due to my right hand typing faster than my left. I want to catch these and fix them.
PhpStorm finds a lot of other syntax items like data types and such, but I can't find an inspection for this. Does such an inspection exist?
In PHP, class names as well as function/method names are case-insensitive, but it is considered good practice to them functions as they appear in their declaration.
In PHP, variable and constant names are case sensitive, while function names are not.
PyCharm, a dedicated Python Integrated Development Environment (IDE), assumes that macOS filesystems are case-insensitive. However, if you are on a case-sensitive file system, unexpected things may happen, such as missing files, undetected external changes, file cache conflicts and excessive indexing.
So while not intentional to answer my own question I finally found (after over an hour of searching and 5min after posting to stack overflow) a built in inspection for this in PHPStorm.
It is turned off by default and stored under an odd but perhaps good name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With