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

Timer   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1

2 Methods

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