Passed
Push — master ( 146be5...1e12ef )
by ANTHONIUS
06:12
created

BasePCOV6::stop()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 7
nc 2
nop 0
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Doyo\Bridge\CodeCoverage\Driver\Compat;
5
6
7
use SebastianBergmann\CodeCoverage\Driver\Driver;
8
9
class BasePCOV6 implements Driver
10
{
11
    /**
12
     * @inheritDoc
13
     */
14
    public function start(bool $determineUnusedAndDead = true): void
15
    {
16
        \pcov\start();
0 ignored issues
show
Bug introduced by
The function start was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
        /** @scrutinizer ignore-call */ 
17
        \pcov\start();
Loading history...
17
    }
18
19
    /**
20
     * @inheritDoc
21
     */
22
    public function stop(): array
23
    {
24
        \pcov\stop();
0 ignored issues
show
Bug introduced by
The function stop was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
        /** @scrutinizer ignore-call */ 
25
        \pcov\stop();
Loading history...
25
        $waiting = \pcov\waiting();
0 ignored issues
show
Bug introduced by
The function waiting was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

25
        $waiting = /** @scrutinizer ignore-call */ \pcov\waiting();
Loading history...
26
        $collect = [];
27
        if ($waiting) {
28
            $collect = \pcov\collect(\pcov\inclusive, $waiting);
0 ignored issues
show
Bug introduced by
The function collect was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

28
            $collect = /** @scrutinizer ignore-call */ \pcov\collect(\pcov\inclusive, $waiting);
Loading history...
Bug introduced by
The constant pcov\inclusive was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
29
            \pcov\clear();
0 ignored issues
show
Bug introduced by
The function clear was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

29
            /** @scrutinizer ignore-call */ 
30
            \pcov\clear();
Loading history...
30
        }
31
        return $collect;
32
    }
33
}
34