diff --git a/tasks/phpcs.js b/tasks/phpcs.js index 5a5d079..193a474 100644 --- a/tasks/phpcs.js +++ b/tasks/phpcs.js @@ -41,7 +41,7 @@ module.exports = function(grunt) { target = this.target, options = this.options(defaults), execute = path.normalize(options.bin), - files = [].concat.apply([], this.files.map(function(mapping) { return mapping.src; })).sort(); + files = this.filesSrc.sort(); // removes duplicate files files = files.filter(function(file, position) { @@ -70,4 +70,4 @@ module.exports = function(grunt) { done(error); }); }); -}; \ No newline at end of file +};