diff --git a/src/Tools/Analyzer/PhpMetricsV2.php b/src/Tools/Analyzer/PhpMetricsV2.php index 166b4458..30a1040f 100644 --- a/src/Tools/Analyzer/PhpMetricsV2.php +++ b/src/Tools/Analyzer/PhpMetricsV2.php @@ -20,6 +20,13 @@ public function __invoke() $args['report-html'] = $this->options->toFile('phpmetrics/'); $args['report-violations'] = $this->options->toFile('phpmetrics.xml'); } + if ($git = $this->config->value('phpmetrics.git')) { + if (is_bool($git)) { + $args[] = '--git'; + } else { + $args['git'] = $git; + } + } $args[] = $this->options->getAnalyzedDirs(','); return $args; }