Tag: Code Sniffer

Generic autoloader for classes named in WordPress coding style

Generic autoloader for classes named in WordPress coding style

if ( ! class_exists( ‘RT_WP_Autoload’ ) ){ /** * Generic autoloader for classes named in WordPress coding style. */ class RT_WP_Autoload { /** * @var string Current directory absolute path */ public $dir; /** * @param string $dir optional, default value is current */ function 

PHP CodeSniffer – Coding standards

PHP CodeSniffer – Coding standards

PHP CodeSniffer scan PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. To install phpcs on ubuntu pear install PHP_CodeSniffer To list all installed coding standards phpcs -i I found great article on rtCamp site. you can read it