Developers must code using Drupal standard codes, coder sniffer helps to check php code from developers. PHP coder sniffer commands must be used in local machine.
https://www.drupal.org/node/1419988
composer global require drupal/coder
phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer
composer global show -P
cd /web/modules/custom
phpcs -i
$ The installed coding standards are PHPCS, MySource, Squiz, PEAR, Zend, PSR1, PSR2, Drupal and DrupalPractice
phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md web/modules/custom/aftership_entity
phpcs --standard=Drupal web/modules/custom/aftership_entity.module
phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md /file/to/drupal/example_module