Completed
Push — master ( 0bf9f7...c747ed )
by Antonio Carlos
04:02
created

Timer::stop()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 6
ccs 4
cts 4
cp 1
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PragmaRX\Health\Support;
4
5
class Timer
6
{
7 1
    public static function start()
8
    {
9 1
        info (class_exists('SebastianBergmann\Timer\Timer') ? 'yes' : 'no');
10
11 1
        return class_exists('SebastianBergmann\Timer\Timer')
12 1
            ? \SebastianBergmann\Timer\Timer::start()
13 1
            : \PHP_Timer::start();
14
    }
15
16 1
    public static function stop()
17
    {
18 1
        return class_exists('SebastianBergmann\Timer\Timer')
19 1
            ? \SebastianBergmann\Timer\Timer::stop()
20 1
            : \PHP_Timer::stop();
21
    }
22
}
23