BasePCOV5::stop()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 7
nc 2
nop 0
dl 0
loc 11
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the doyo/code-coverage project.
5
 *
6
 * (c) Anthonius Munthi <https://itstoni.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Bridge\CodeCoverage\Driver\Compat;
15
16
use SebastianBergmann\CodeCoverage\Driver\Driver;
17
18
class BasePCOV5 implements Driver
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function start($determineUnusedAndDead = true)
24
    {
25
        \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

25
        /** @scrutinizer ignore-call */ 
26
        \pcov\start();
Loading history...
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function stop(): array
32
    {
33
        \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

33
        /** @scrutinizer ignore-call */ 
34
        \pcov\stop();
Loading history...
34
        $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

34
        $waiting = /** @scrutinizer ignore-call */ \pcov\waiting();
Loading history...
35
        $collect = [];
36
        if ($waiting) {
37
            $collect = \pcov\collect(\pcov\inclusive, $waiting);
0 ignored issues
show
Bug introduced by
The constant pcov\inclusive was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
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

37
            $collect = /** @scrutinizer ignore-call */ \pcov\collect(\pcov\inclusive, $waiting);
Loading history...
38
            \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

38
            /** @scrutinizer ignore-call */ 
39
            \pcov\clear();
Loading history...
39
        }
40
41
        return $collect;
42
    }
43
}
44