@@ -205,6 +205,21 @@ public function generateReports(Printer $printer, Configuration $configuration):
205
205
return ;
206
206
}
207
207
208
+ if ($ configuration ->hasCoveragePhp ()) {
209
+ $ this ->codeCoverageGenerationStart ($ printer , 'PHP ' );
210
+
211
+ try {
212
+ $ writer = new PhpReport ;
213
+ $ writer ->process ($ this ->codeCoverage (), $ configuration ->coveragePhp ());
214
+
215
+ $ this ->codeCoverageGenerationSucceeded ($ printer );
216
+
217
+ unset($ writer );
218
+ } catch (CodeCoverageException $ e ) {
219
+ $ this ->codeCoverageGenerationFailed ($ printer , $ e );
220
+ }
221
+ }
222
+
208
223
if ($ configuration ->hasCoverageClover ()) {
209
224
$ this ->codeCoverageGenerationStart ($ printer , 'Clover XML ' );
210
225
@@ -289,21 +304,6 @@ public function generateReports(Printer $printer, Configuration $configuration):
289
304
}
290
305
}
291
306
292
- if ($ configuration ->hasCoveragePhp ()) {
293
- $ this ->codeCoverageGenerationStart ($ printer , 'PHP ' );
294
-
295
- try {
296
- $ writer = new PhpReport ;
297
- $ writer ->process ($ this ->codeCoverage (), $ configuration ->coveragePhp ());
298
-
299
- $ this ->codeCoverageGenerationSucceeded ($ printer );
300
-
301
- unset($ writer );
302
- } catch (CodeCoverageException $ e ) {
303
- $ this ->codeCoverageGenerationFailed ($ printer , $ e );
304
- }
305
- }
306
-
307
307
if ($ configuration ->hasCoverageText ()) {
308
308
$ processor = new TextReport (
309
309
Thresholds::default (),
0 commit comments