'use strict';

module.exports = function ($fs, matchers) {
  matchers = matchers.map(function (matcher) {
    return matcher($fs);
  });

  return function (file, code) {
    var matches = [];

    matchers.forEach(function (matcher) {
      matches = matches.concat(matcher(file, code));
    });

    return matches;
  };
};

@@ -172,30 +172,14 @@
     
-var matches = %5B%5D;%0A%0A   
+return
  mat
@@ -188,15 +188,14 @@
 ers.
-forEach
+reduce
 (fun
@@ -193,32 +193,37 @@
 educe(function (
+arr, 
 matcher) %7B%0A     
@@ -227,25 +227,18 @@
     
-matches = matches
+return arr
 .con
@@ -272,30 +272,13 @@
    %7D
-);%0A%0A    return matches
+, %5B%5D)
 ;%0A  

Use reduce instead of forEach.