@@ -56,8 +56,6 @@ final class CodeCoverage
5656
5757 private bool $ includeUncoveredFiles = true ;
5858
59- private bool $ processUncoveredFiles = false ;
60-
6159 private bool $ ignoreDeprecatedCode = false ;
6260
6361 /**
@@ -121,12 +119,8 @@ public function filter(): Filter
121119 */
122120 public function getData (bool $ raw = false ): ProcessedCodeCoverageData
123121 {
124- if (!$ raw ) {
125- if ($ this ->processUncoveredFiles ) {
126- $ this ->processUncoveredFilesFromFilter ();
127- } elseif ($ this ->includeUncoveredFiles ) {
128- $ this ->addUncoveredFilesFromFilter ();
129- }
122+ if (!$ raw && $ this ->includeUncoveredFiles ) {
123+ $ this ->addUncoveredFilesFromFilter ();
130124 }
131125
132126 return $ this ->data ;
@@ -292,16 +286,6 @@ public function excludeUncoveredFiles(): void
292286 $ this ->includeUncoveredFiles = false ;
293287 }
294288
295- public function processUncoveredFiles (): void
296- {
297- $ this ->processUncoveredFiles = true ;
298- }
299-
300- public function doNotProcessUncoveredFiles (): void
301- {
302- $ this ->processUncoveredFiles = false ;
303- }
304-
305289 public function enableAnnotationsForIgnoringCode (): void
306290 {
307291 $ this ->useAnnotationsForIgnoringCode = true ;
@@ -472,27 +456,6 @@ private function addUncoveredFilesFromFilter(): void
472456 }
473457 }
474458
475- /**
476- * @throws UnintentionallyCoveredCodeException
477- */
478- private function processUncoveredFilesFromFilter (): void
479- {
480- $ uncoveredFiles = array_diff (
481- $ this ->filter ->files (),
482- $ this ->data ->coveredFiles ()
483- );
484-
485- $ this ->driver ->start ();
486-
487- foreach ($ uncoveredFiles as $ uncoveredFile ) {
488- if (is_file ($ uncoveredFile )) {
489- include_once $ uncoveredFile ;
490- }
491- }
492-
493- $ this ->append ($ this ->driver ->stop (), self ::UNCOVERED_FILES );
494- }
495-
496459 /**
497460 * @throws UnintentionallyCoveredCodeException
498461 * @throws ReflectionException
0 commit comments