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

BasePCOV5::start()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
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 BasePCOV5 implements Driver
10
{
11
    /**
12
     * @inheritDoc
13
     */
14
    public function start($determineUnusedAndDead = true)
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