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

BasePCOV5   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A stop() 0 10 2
A start() 0 3 1
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