Closed wickedOne closed 7 years ago
@djoos i don't think i can come up with something nifty for the Use underscores for option names and parameter names.
rule...
unfortunately it isn't as straight forward to, for instance, do a check on array keys as there are plenty of use cases where using camel caps is valid.
$this->findOneBy([
'propertyName' => $value,
]);
for example is likely to be present in many repository classes.
so unless you can come up with something clever to determine whether or not something is a parameter or an option, i'm afraid we have to skip that one
i'm going to close this one as well.
nevertheless, if someone is able to come up with some logic to detect a Use underscores for option names and parameter names.
violation, i'll be happy to work on that...
this issue lists all sniffs currently implemented in this repository as described in the naming conventions segment of the symfony coding standard.
this issue can be marked as resolved once the example class at the bottom triggers all mentioned errors when checked with this standard (be sure to remove all comment lines before checking and ignore the multiple classes per file error).
Naming Conventions