We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6da9eeb + e59ef4b commit 90ea70cCopy full SHA for 90ea70c
src/Runner.php
@@ -194,7 +194,15 @@ public function runPHPCBF()
194
$this->config->showSources = false;
195
$this->config->recordErrors = false;
196
$this->config->reportFile = null;
197
- $this->config->reports = ['cbf' => null];
+
198
+ // Only use the "Cbf" report, but allow for the Performance report as well.
199
+ $originalReports = array_change_key_case($this->config->reports, CASE_LOWER);
200
+ $newReports = ['cbf' => null];
201
+ if (array_key_exists('performance', $originalReports) === true) {
202
+ $newReports['performance'] = $originalReports['performance'];
203
+ }
204
205
+ $this->config->reports = $newReports;
206
207
// If a standard tries to set command line arguments itself, some
208
// may be blocked because PHPCBF is running, so stop the script
0 commit comments