@@ -406,33 +406,6 @@ public function merge(self $that): void
406406 $ this ->report = null ;
407407 }
408408
409- /**
410- * Determine the priority for a line
411- *
412- * 1 = the line is not set
413- * 2 = the line has not been tested
414- * 3 = the line is dead code
415- * 4 = the line has been tested
416- *
417- * During a merge, a higher number is better.
418- *
419- * @param array $data
420- * @param int $line
421- * @return int
422- */
423- protected function getLinePriority ($ data , $ line )
424- {
425- if (!\array_key_exists ($ line , $ data )) {
426- return 1 ;
427- } elseif (\is_array ($ data [$ line ]) && \count ($ data [$ line ]) === 0 ) {
428- return 2 ;
429- } elseif ($ data [$ line ] === null ) {
430- return 3 ;
431- }
432-
433- return 4 ;
434- }
435-
436409 public function setCacheTokens (bool $ flag ): void
437410 {
438411 $ this ->cacheTokens = $ flag ;
@@ -488,6 +461,38 @@ public function setUnintentionallyCoveredSubclassesWhitelist(array $whitelist):
488461 $ this ->unintentionallyCoveredSubclassesWhitelist = $ whitelist ;
489462 }
490463
464+ /**
465+ * Determine the priority for a line
466+ *
467+ * 1 = the line is not set
468+ * 2 = the line has not been tested
469+ * 3 = the line is dead code
470+ * 4 = the line has been tested
471+ *
472+ * During a merge, a higher number is better.
473+ *
474+ * @param array $data
475+ * @param int $line
476+ *
477+ * @return int
478+ */
479+ private function getLinePriority ($ data , $ line )
480+ {
481+ if (!\array_key_exists ($ line , $ data )) {
482+ return 1 ;
483+ }
484+
485+ if (\is_array ($ data [$ line ]) && \count ($ data [$ line ]) === 0 ) {
486+ return 2 ;
487+ }
488+
489+ if ($ data [$ line ] === null ) {
490+ return 3 ;
491+ }
492+
493+ return 4 ;
494+ }
495+
491496 /**
492497 * Applies the @covers annotation filtering.
493498 *
0 commit comments