Drupal Coding Standards
An overview of coding best practices and standards as they are applied in the Drupal community can be found here:
https://www.drupal.org/docs/develop/standards
These coding standards, detailed for every area in which code might be produced during Drupal development, represent the broadly established best practices of the community. Adhering to these best practices will make development go more smoothly, and your contributions to Drupal core or modules to be more readily and easily accepted. If you are working on a project with Acquia technical support, these are the coding standards to which pull requests must adhere.