Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

Commit

Permalink
Install php-cs-fixer globally
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCarmen committed Oct 6, 2018
1 parent 53d7406 commit 7b7219b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Gruntfile.js
Expand Up @@ -97,7 +97,7 @@ module.exports = function(grunt) {
'assets/js/src/jquery.treeview.js' 'assets/js/src/jquery.treeview.js'
], ],
dest: 'assets/js/page.js' dest: 'assets/js/page.js'
}, }
}, },


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


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

0 comments on commit 7b7219b

Please sign in to comment.