tasks/lib/phpcsfixer.js
function(paths) {

        var appends = [];

        if (grunt.option("quiet") || config.quiet) {
            appends.push("--quiet");
        }

        if (grunt.option("verbose") || config.verbose) {
            appends.push("--verbose");
        }

        if (grunt.option("rules") || config.rules) {
            var rules = _.isString(config.rules) ? config.rules.split(",") : config.rules;
            appends.push("--rules=" + rules.join(","));
        }

        if (grunt.option("dryRun") || config.dryRun) {
            appends.push("--dry-run");
        }

        if (grunt.option("diff") || config.diff) {
            appends.push("--diff");
        }

        if (grunt.option("allowRisky") || config.allowRisky) {
            appends.push("--allow-risky yes");
        }

        if (grunt.option("usingCache") || config.usingCache) {
            appends.push("--using-cache " + config.usingCache);
        }

        if (grunt.option("configfile") || config.configfile) {
            appends.push("--config=" + config.configfile);
        }

        var bin = path.normalize(config.bin),
            append = appends.join(" "),
            cmds = [];

        if (paths.length) {
            cmds = _.map(paths, function(thePath) {
                return bin + " fix " + thePath + " " + append;
            });
        }

        if (grunt.option("configfile") || config.configfile) {
            cmds.push(bin + " fix " + append);
        }

        return cmds;
    }
function(paths) {

        var appends = [];

        if (grunt.option("quiet") || config.quiet) {
            appends.push("--quiet");
        }

        if (grunt.option("verbose") || config.verbose) {
            appends.push("--verbose");
        }

        if (grunt.option("rules") || config.rules) {
            var rules = _.isString(config.rules) ? config.rules.split(",") : config.rules;
            appends.push("--rules=" + rules.join(","));
        }

        if (grunt.option("dryRun") || config.dryRun) {
            appends.push("--dry-run");
        }

        if (grunt.option("diff") || config.diff) {
            appends.push("--diff");
        }

        if (grunt.option("allowRisky") || config.allowRisky) {
            appends.push("--allow-risky yes");
        }

        if (grunt.option("usingCache") || config.usingCache) {
            appends.push("--using-cache " + config.usingCache);
        }

        if (grunt.option("configfile") || config.configfile) {
            appends.push("--config=" + config.configfile);
        }

        var bin = path.normalize(config.bin),
            append = appends.join(" "),
            cmds = [];

        if (paths.length) {
            cmds = _.map(paths, function(thePath) {
                return bin + " fix " + thePath + " " + append;
            });
        }

        if (grunt.option("configfile") || config.configfile) {
            cmds.push(bin + " fix " + append);
        }

        return cmds;
    }
function ( paths ) { var appends = [ ] ; if ( grunt . option ( "quiet" ) || config . quiet ) { appends . push ( "--quiet" ) ; } if ( grunt . option ( "verbose" ) || config . verbose ) { appends . push ( "--verbose" ) ; } if ( grunt . option ( "rules" ) || config . rules ) { var rules = _ . isString ( config . rules ) ? config . rules . split ( "," ) : config . rules ; appends . push ( "--rules=" + rules . join ( "," ) ) ; } if ( grunt . option ( "dryRun" ) || config . dryRun ) { appends . push ( "--dry-run" ) ; } if ( grunt . option ( "diff" ) || config . diff ) { appends . push ( "--diff" ) ; } if ( grunt . option ( "allowRisky" ) || config . allowRisky ) { appends . push ( "--allow-risky yes" ) ; } if ( grunt . option ( "usingCache" ) || config . usingCache ) { appends . push ( "--using-cache " + config . usingCache ) ; } if ( grunt . option ( "configfile" ) || config . configfile ) { appends . push ( "--config=" + config . configfile ) ; } var bin = path . normalize ( config . bin ) , append = appends . join ( " " ) , cmds = [ ] ; if ( paths . length ) { cmds = _ . map ( paths , function ( thePath ) { return bin + " fix " + thePath + " " + append ; } ) ; } if ( grunt . option ( "configfile" ) || config . configfile ) { cmds . push ( bin + " fix " + append ) ; } return cmds ; }
Builds phpunit command

@return string
Builds phpunit command