Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 716 Bytes

File metadata and controls

25 lines (13 loc) · 716 Bytes

ImageCMS PHP CodeSniffer Coding Standard

Installation

Composer

This standard can be installed with the Composer dependency manager.

  1. Install Composer

  2. Install the coding standard as a dependency of your project

     composer require --dev imagecms/coding-standard:>=1.0
    
  3. Add the coding standard to the PHP_CodeSniffer install path

     application/third_party/bin/phpcs --config-set installed_paths application/third_party/imagecms/coding-standard
    
  4. Check the installed coding standards for "ImageCMS"

     application/third_party/bin/phpcs -i
    
  5. Done!

     application/third_party/bin/phpcs /path/to/code