PHP code example of schnittstabil / sugared-php_codesniffer
1. Go to this page and download the library: Download schnittstabil/sugared-php_codesniffer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
schnittstabil / sugared-php_codesniffer example snippets
$ composer
json
{
...
"scripts": {
"lint": "sugared-rim-phpcs"
},
"extra": {
"sugared-rim/php_codesniffer": {
"default_standard": ["PSR1", "PSR2"],
"files": {
"in": ["."],
"name": ["*.php"],
"files": true,
"exclude": [
"build",
"bower_components",
"node_modules",
"vendor"
],
"ignoreDotFiles": true,
"ignoreVCS": true
}
}
}
}