From 57a609da396ca437075701827c889f987dedbcec Mon Sep 17 00:00:00 2001 From: Grayside Date: Sat, 16 May 2015 15:17:42 -0700 Subject: [PATCH] List files via standard grunt processing. --- tasks/phpcs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +};