...
- it's time to develop a Coding Standard
- find a way to automatically check for any standard violations
- make the "Custom" (Developer Kit) module comply to all standards
- update Unit Config Generator to produce only standard compliant code
I've create a list of replacements, that can be made in PhpStorm to at least start fixing the standards.
Replace This | With This | Is Regular Expression | Replace Options |
---|---|---|---|
Array ( | array( | no | case sensitive, match whole words |
array ( | array( | no | case sensitive, match whole words |
Array( | array( | no | case sensitive, match whole words |
@param kEvent $event | @param kEvent $event Event. | no | case sensitive, match whole words |
[\t]+ \* @access protected\n | yes | ||
=> NULL | => null | no | case sensitive, match whole words |
\tclass | manually remove 1 indention level | ||
P.S.
In fact I've developed a coding standard already, but it's not mature yet to be released.
...