File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,15 @@ public function runPHPCBF()
194
194
$ this ->config ->showSources = false ;
195
195
$ this ->config ->recordErrors = false ;
196
196
$ this ->config ->reportFile = null ;
197
- $ this ->config ->reports = ['cbf ' => null ];
197
+
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 ;
198
206
199
207
// If a standard tries to set command line arguments itself, some
200
208
// may be blocked because PHPCBF is running, so stop the script
You can’t perform that action at this time.
0 commit comments