My phpcodesniffer report is producing lines like the following example :
146 | ERROR | Variable "tw_text" is not in valid camel caps format (Zend.NamingConventions.ValidVariableName.NotCamelCaps)
148 | ERROR | Variable "tw_text" is not in valid camel caps format (Zend.NamingConventions.ValidVariableName.NotCamelCaps)
154 | ERROR | Variable "tw_text" is not in valid camel caps format (Zend.NamingConventions.ValidVariableName.NotCamelCaps)
This reports continued usage of the same variable, for example :
$tw_text = '';
:
$tw_text = $_POST['text'];
:
$tw_text = '';
I require just the first report because the second and third are really dependant on the first.
Is there any way to achieve this?