Permalink
Browse files

Install php-cs-fixer globally

  • Loading branch information...
JustCarmen committed Oct 6, 2018
1 parent 53d7406 commit 7b7219b1720d13621c2dfd268cc98b28f3d133c7
Showing with 6 additions and 2 deletions.
  1. +6 −2 Gruntfile.js
@@ -97,7 +97,7 @@ module.exports = function(grunt) {
'assets/js/src/jquery.treeview.js'
],
dest: 'assets/js/page.js'
},
}
},

// ========================================================================================
@@ -121,14 +121,18 @@ module.exports = function(grunt) {
//
// Source: https://github.com/FriendsOfPHP/PHP-CS-Fixer //
// Configurator: https://mlocati.github.io/php-cs-fixer-configurator/
//
// To install php-cs-fixer globally use: composer global require friendsofphp/php-cs-fixer
// ========================================================================================

phpcsfixer: {
app: {
dir: ''
},
options: {
bin: '../../vendor/bin/php-cs-fixer',
// use path to global composer directory
cwd: '~/.composer/vendor/bin/',
bin: 'php-cs-fixer',
configfile: '.php_cs',
quiet: true
}

0 comments on commit 7b7219b

Please sign in to comment.