Skip to content

Commit c5f7c79

Browse files
Refactor
1 parent 4e99e1c commit c5f7c79

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Driver/Xdebug.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,14 @@ public function __construct()
5050
*/
5151
public function start($determineUnusedAndDead = true)
5252
{
53+
$options = 0;
54+
5355
if ($determineUnusedAndDead) {
54-
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
55-
} else {
56-
xdebug_start_code_coverage();
56+
$options |= XDEBUG_CC_UNUSED;
57+
$options |= XDEBUG_CC_DEAD_CODE;
5758
}
59+
60+
xdebug_start_code_coverage($options);
5861
}
5962

6063
/**

0 commit comments

Comments
 (0)