Team members may have different backgrounds and code style preferences. In code bases where no formal code style is used, it can become obvious who wrote which code because of different styles being used. Having to work on such code base comes with some drawbacks: developers have to continuously switch their mind around reading code because sometimes brackets are on a new line, sometimes not. Sometimes brackets are required, sometimes not. To ensure a natural flow working with code, a coding standard can be enforced so that the entire code base becomes more uniform to read and work with.
Did you know PhpStorm comes with PHP Code Sniffer integration, displaying its warnings and errors right in the IDE? Read our tutorial on PHP Code Sniffer in PhpStorm to find out more.
Develop with pleasure!
– JetBrains PhpStorm Team