Skip to content

Commit b2e6fd7

Browse files
committed
Merge pull request #10 from codeclimate/gd-batch
Run one file at a time
2 parents 63426c8 + d8bcb7c commit b2e6fd7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: Runner.php

+8-6
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ public function run($files)
102102
);
103103
}
104104

105-
$phpmd->processFiles(
106-
implode(",", $files),
107-
$rulesets,
108-
array($renderer),
109-
$ruleSetFactory
110-
);
105+
foreach ($files as &$file) {
106+
$phpmd->processFiles(
107+
$file,
108+
$rulesets,
109+
array($renderer),
110+
$ruleSetFactory
111+
);
112+
}
111113

112114
return $resultFile;
113115
}

0 commit comments

Comments
 (0)